diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2014-01-23 01:01:44 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-23 05:35:50 +0400 |
commit | 2d36097d26b5991d71a2cf4a20c1a158f0f1bfcd (patch) | |
tree | 86ad219b1481a17780efec984c314e1b0f6bc87e /include | |
parent | b414ac9a3ea8a547e4a413160d36bffefb2ba5c7 (diff) | |
download | linux-2d36097d26b5991d71a2cf4a20c1a158f0f1bfcd.tar.xz |
af_packet: Add Queue mapping mode to af_packet fanout operation
This patch adds a queue mapping mode to the fanout operation of af_packet
sockets. This allows user space af_packet users to better filter on flows
ingressing and egressing via a specific hardware queue, and avoids the potential
packet reordering that can occur when FANOUT_CPU is being used and irq affinity
varies.
Tested successfully by myself. applies to net-next
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/if_packet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h index 1988a02842cc..bac27fa05f5b 100644 --- a/include/uapi/linux/if_packet.h +++ b/include/uapi/linux/if_packet.h @@ -60,6 +60,7 @@ struct sockaddr_ll { #define PACKET_FANOUT_CPU 2 #define PACKET_FANOUT_ROLLOVER 3 #define PACKET_FANOUT_RND 4 +#define PACKET_FANOUT_QM 5 #define PACKET_FANOUT_FLAG_ROLLOVER 0x1000 #define PACKET_FANOUT_FLAG_DEFRAG 0x8000 |