diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-08-28 16:13:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-29 16:43:29 -0400 |
commit | 7ec06da81d2b98859b558d8d551a0c4e3d9516a3 (patch) | |
tree | 719e25530713271eca895eea63e34f58030b6a57 | |
parent | f55d112e529386af3667fac3a507132a361b2154 (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.txt | 8 |
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: | |||
543 | In the AF_PACKET fanout mode, packet reception can be load balanced among | 543 | In the AF_PACKET fanout mode, packet reception can be load balanced among |
544 | processes. This also works in combination with mmap(2) on packet sockets. | 544 | processes. This also works in combination with mmap(2) on packet sockets. |
545 | 545 | ||
546 | Currently 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 | |||
546 | Minimal example code by David S. Miller (try things like "./test eth0 hash", | 554 | Minimal example code by David S. Miller (try things like "./test eth0 hash", |
547 | "./test eth0 lb", etc.): | 555 | "./test eth0 lb", etc.): |
548 | 556 | ||