Skip to content

Commit 7ec06da

Browse files
Daniel Borkmanndavem330
authored andcommitted
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>
1 parent f55d112 commit 7ec06da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Documentation/networking/packet_mmap.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,14 @@ TPACKET_V2 --> TPACKET_V3:
543543
In the AF_PACKET fanout mode, packet reception can be load balanced among
544544
processes. This also works in combination with mmap(2) on packet sockets.
545545

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+
546554
Minimal example code by David S. Miller (try things like "./test eth0 hash",
547555
"./test eth0 lb", etc.):
548556

0 commit comments

Comments
 (0)