Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Daniel Borkmann and committed by
David S. Miller
7ec06da8 f55d112e

+8
+8
Documentation/networking/packet_mmap.txt
··· 543 543 In the AF_PACKET fanout mode, packet reception can be load balanced among 544 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 554 Minimal example code by David S. Miller (try things like "./test eth0 hash", 547 555 "./test eth0 lb", etc.): 548 556