Skip to content
  • Tomasz Grobelny's avatar
    dccp: Policy-based packet dequeueing infrastructure · 871a2c16
    Tomasz Grobelny authored
    
    
    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: default avatarTomasz Grobelny <tomasz@grobelny.oswiecenia.net>
    Signed-off-by: default avatarGerrit Renker <gerrit@erg.abdn.ac.uk>
    871a2c16