aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-08-28 16:13:11 -0400
committerDavid S. Miller <davem@davemloft.net>2013-08-29 16:43:29 -0400
commit7ec06da81d2b98859b558d8d551a0c4e3d9516a3 (patch)
tree719e25530713271eca895eea63e34f58030b6a57
parentf55d112e529386af3667fac3a507132a361b2154 (diff)
net: packet: document available fanout policies
Update documentation to add fanout policies that are available. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--Documentation/networking/packet_mmap.txt8
1 files changed, 8 insertions, 0 deletions
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:
543In the AF_PACKET fanout mode, packet reception can be load balanced among 543In the AF_PACKET fanout mode, packet reception can be load balanced among
544processes. This also works in combination with mmap(2) on packet sockets. 544processes. This also works in combination with mmap(2) on packet sockets.
545 545
546Currently implemented fanout policies are:
547
548 - PACKET_FANOUT_HASH: schedule to socket by skb's rxhash
549 - PACKET_FANOUT_LB: schedule to socket by round-robin
550 - PACKET_FANOUT_CPU: schedule to socket by CPU packet arrives on
551 - PACKET_FANOUT_RND: schedule to socket by random selection
552 - PACKET_FANOUT_ROLLOVER: if one socket is full, rollover to another
553
546Minimal example code by David S. Miller (try things like "./test eth0 hash", 554Minimal example code by David S. Miller (try things like "./test eth0 hash",
547"./test eth0 lb", etc.): 555"./test eth0 lb", etc.):
548 556