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
56#define PACKET_FANOUT_LB 156#define PACKET_FANOUT_LB 1
57#define PACKET_FANOUT_CPU 257#define PACKET_FANOUT_CPU 2
58#define PACKET_FANOUT_ROLLOVER 358#define PACKET_FANOUT_ROLLOVER 3
59#define PACKET_FANOUT_RND 4
59#define PACKET_FANOUT_FLAG_ROLLOVER 0x100060#define PACKET_FANOUT_FLAG_ROLLOVER 0x1000
60#define PACKET_FANOUT_FLAG_DEFRAG 0x800061#define PACKET_FANOUT_FLAG_DEFRAG 0x8000
61 62