History

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

Neil Horman committed 12 years ago

Commit 2d360971 parent b414ac92 files · +12 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/if_packet.h+1−0
@@ -60,6 +60,7 @@ struct sockaddr_ll { · 59 unmodified lines
6060 #define PACKET_FANOUT_CPU 2
6161 #define PACKET_FANOUT_ROLLOVER 3
6262 #define PACKET_FANOUT_RND 4
63+#define PACKET_FANOUT_QM 5
6364 #define PACKET_FANOUT_FLAG_ROLLOVER 0x1000
6465 #define PACKET_FANOUT_FLAG_DEFRAG 0x8000
6566