diff options
author | Tom Herbert <therbert@google.com> | 2010-11-21 08:17:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-24 14:44:19 -0500 |
commit | 3853b5841c01a3f492fe137afaad9c209e5162c6 (patch) | |
tree | 6781db9ec592d9798129cd4715ce00dc9007b78c /include/linux/skbuff.h | |
parent | 22f4fbd9bd283ef85126e511171932a4af703776 (diff) |
xps: Improvements in TX queue selection
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: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index e6ba898de61c..19f37a6ee6c4 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -386,9 +386,10 @@ struct sk_buff { | |||
386 | #else | 386 | #else |
387 | __u8 deliver_no_wcard:1; | 387 | __u8 deliver_no_wcard:1; |
388 | #endif | 388 | #endif |
389 | __u8 ooo_okay:1; | ||
389 | kmemcheck_bitfield_end(flags2); | 390 | kmemcheck_bitfield_end(flags2); |
390 | 391 | ||
391 | /* 0/14 bit hole */ | 392 | /* 0/13 bit hole */ |
392 | 393 | ||
393 | #ifdef CONFIG_NET_DMA | 394 | #ifdef CONFIG_NET_DMA |
394 | dma_cookie_t dma_cookie; | 395 | dma_cookie_t dma_cookie; |