dccp: Policy-based packet dequeueing infrastructure
This patch adds a generic infrastructure for policy-based dequeueing of TX packets and provides two policies: * a simple FIFO policy (which is the default) and * a priority based policy (set via socket options). Both policies honour the tx_qlen sysctl for the maximum size of the write queue (can be overridden via socket options). The priority policy uses skb->priority internally to assign an u32 priority identifier, using the same ranking as SO_PRIORITY. The skb->priority field is set to 0 when the packet leaves DCCP. The priority is supplied as ancillary data using cmsg(3), the patch also provides the requisite parsing routines. Signed-off-by:Tomasz Grobelny <tomasz@grobelny.oswiecenia.net> Signed-off-by:
Gerrit Renker <gerrit@erg.abdn.ac.uk>
Showing
- Documentation/networking/dccp.txt 20 additions, 0 deletionsDocumentation/networking/dccp.txt
- include/linux/dccp.h 21 additions, 0 deletionsinclude/linux/dccp.h
- net/dccp/Makefile 2 additions, 2 deletionsnet/dccp/Makefile
- net/dccp/dccp.h 12 additions, 0 deletionsnet/dccp/dccp.h
- net/dccp/output.c 3 additions, 4 deletionsnet/dccp/output.c
- net/dccp/proto.c 64 additions, 3 deletionsnet/dccp/proto.c
- net/dccp/qpolicy.c 126 additions, 0 deletionsnet/dccp/qpolicy.c
Loading
Please register or sign in to comment