packet: Add 'cpu' fanout policy.
Unfortunately we have to use a real modulus here as the multiply trick won't work as effectively with cpu numbers as it does with rxhash values. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
81b16ba2f1
commit
95ec3eb417
2 changed files with 29 additions and 37 deletions
|
|
@ -53,6 +53,7 @@ struct sockaddr_ll {
|
|||
|
||||
#define PACKET_FANOUT_HASH 0
|
||||
#define PACKET_FANOUT_LB 1
|
||||
#define PACKET_FANOUT_CPU 2
|
||||
#define PACKET_FANOUT_FLAG_DEFRAG 0x8000
|
||||
|
||||
struct tpacket_stats {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue