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
60#define PACKET_FANOUT_CPU 260#define PACKET_FANOUT_CPU 2
61#define PACKET_FANOUT_ROLLOVER 361#define PACKET_FANOUT_ROLLOVER 3
62#define PACKET_FANOUT_RND 462#define PACKET_FANOUT_RND 4
63#define PACKET_FANOUT_QM 5
63#define PACKET_FANOUT_FLAG_ROLLOVER 0x100064#define PACKET_FANOUT_FLAG_ROLLOVER 0x1000
64#define PACKET_FANOUT_FLAG_DEFRAG 0x800065#define PACKET_FANOUT_FLAG_DEFRAG 0x8000
65 66