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
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -60,6 +60,7 @@ struct sockaddr_ll { · 59 unmodified lines | ||
| 60 | 60 | #define PACKET_FANOUT_CPU 2 |
| 61 | 61 | #define PACKET_FANOUT_ROLLOVER 3 |
| 62 | 62 | #define PACKET_FANOUT_RND 4 |
| 63 | +#define PACKET_FANOUT_QM 5 | |
| 63 | 64 | #define PACKET_FANOUT_FLAG_ROLLOVER 0x1000 |
| 64 | 65 | #define PACKET_FANOUT_FLAG_DEFRAG 0x8000 |
| 65 | 66 | |