packet: Add fanout support.
Fanouts allow packet capturing to be demuxed to a set of AF_PACKET
sockets. Two fanout policies are implemented:
1) Hashing based upon skb->rxhash
2) Pure round-robin
An AF_PACKET socket must be fully bound before it tries to add itself
to a fanout. All AF_PACKET sockets trying to join the same fanout
must all have the same bind settings.
Fanouts are identified (within a network namespace) by a 16-bit ID.
The first socket to try to add itself to a fanout with a particular
ID, creates that fanout. When the last socket leaves the fanout
(which happens only when the socket is closed), that fanout is
destroyed.
Signed-off-by:
David S. Miller <davem@davemloft.net>
Loading
-
mentioned in commit 4e6bee65
-
mentioned in commit 4e2a95fd
-
mentioned in commit 48879d29
-
mentioned in commit 8551d114
-
mentioned in commit c6f1a183
-
mentioned in commit 7f69e880
-
mentioned in commit ea68af67
-
mentioned in commit 02f43049
-
mentioned in commit e521f3de
-
mentioned in commit 2cdf3e96
-
mentioned in commit c421ebb2
-
mentioned in commit ac6a8fa7
-
mentioned in commit 419a0a79
-
mentioned in commit fb32c1a6
-
mentioned in commit 18be9601
-
mentioned in commit aaba28ba
-
mentioned in commit e8be23c4
-
mentioned in commit 6f7cdd4a
-
mentioned in commit 0f22167d
Please sign in to comment