• Tom Herbert's avatar
    xps: Improvements in TX queue selection · 3853b584
    Tom Herbert authored
    In dev_pick_tx, don't do work in calculating queue
    index or setting
    the index in the sock unless the device has more than one queue.  This
    allows the sock to be set only with a queue index of a multi-queue
    device which is desirable if device are stacked like in a tunnel.
    
    We also allow the mapping of a socket to queue to be changed.  To
    maintain in order packet transmission a flag (ooo_okay) has been
    added to the sk_buff structure.  If a transport layer sets this flag
    on a packet, the transmit queue can be changed for the socket.
    Presumably, the transport would set this if there was no possbility
    of creating OOO packets (for instance, there are no packets in flight
    for the socket).  This patch includes the modification in TCP output
    for setting this flag.
    Signed-off-by: default avatarTom Herbert <therbert@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3853b584
tcp_output.c 81.5 KB