From: Daniel Borkmann Date: Wed, 28 Aug 2013 20:13:11 +0000 (+0200) Subject: net: packet: document available fanout policies X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7ec06da81d2b98859b558d8d551a0c4e3d9516a3;p=linux-beck.git net: packet: document available fanout policies Update documentation to add fanout policies that are available. Signed-off-by: Daniel Borkmann Signed-off-by: David S. Miller --- diff --git a/Documentation/networking/packet_mmap.txt b/Documentation/networking/packet_mmap.txt index 8572796b1eb6..c01223628a87 100644 --- a/Documentation/networking/packet_mmap.txt +++ b/Documentation/networking/packet_mmap.txt @@ -543,6 +543,14 @@ TPACKET_V2 --> TPACKET_V3: In the AF_PACKET fanout mode, packet reception can be load balanced among processes. This also works in combination with mmap(2) on packet sockets. +Currently implemented fanout policies are: + + - PACKET_FANOUT_HASH: schedule to socket by skb's rxhash + - PACKET_FANOUT_LB: schedule to socket by round-robin + - PACKET_FANOUT_CPU: schedule to socket by CPU packet arrives on + - PACKET_FANOUT_RND: schedule to socket by random selection + - PACKET_FANOUT_ROLLOVER: if one socket is full, rollover to another + Minimal example code by David S. Miller (try things like "./test eth0 hash", "./test eth0 lb", etc.):