History

net: packet: add randomized fanout scheduler

We currently allow for different fanout scheduling policies in pf_packet such as scheduling by skb's rxhash, round-robin, by cpu, and rollover. Also allow for a random, equidistributed selection of the socket from the fanout process group.

Daniel Borkmann committed 13 years ago

Commit 5df0ddf1 parent 48859482 files · +13 −1Browse files

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

Unified · Split

include/uapi/linux/if_packet.h+1−0
@@ -56,6 +56,7 @@ struct sockaddr_ll { · 55 unmodified lines
5656 #define PACKET_FANOUT_LB 1
5757 #define PACKET_FANOUT_CPU 2
5858 #define PACKET_FANOUT_ROLLOVER 3
59+#define PACKET_FANOUT_RND 4
5960 #define PACKET_FANOUT_FLAG_ROLLOVER 0x1000
6061 #define PACKET_FANOUT_FLAG_DEFRAG 0x8000
6162