diff options
author | David S. Miller <davem@davemloft.net> | 2011-07-06 04:56:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-06 04:56:38 -0400 |
commit | 95ec3eb417115fbb2c73b59e2825f6dd5d2f6cf6 (patch) | |
tree | 009ed6c7ee4d693de36990fa30fdaa79939905f0 /include | |
parent | 81b16ba2f1cc93a1ee1dda48be2ea2d91a0cb72e (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if_packet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_packet.h b/include/linux/if_packet.h index 84e684e6935c..c1486060f5ed 100644 --- a/include/linux/if_packet.h +++ b/include/linux/if_packet.h | |||
@@ -53,6 +53,7 @@ struct sockaddr_ll { | |||
53 | 53 | ||
54 | #define PACKET_FANOUT_HASH 0 | 54 | #define PACKET_FANOUT_HASH 0 |
55 | #define PACKET_FANOUT_LB 1 | 55 | #define PACKET_FANOUT_LB 1 |
56 | #define PACKET_FANOUT_CPU 2 | ||
56 | #define PACKET_FANOUT_FLAG_DEFRAG 0x8000 | 57 | #define PACKET_FANOUT_FLAG_DEFRAG 0x8000 |
57 | 58 | ||
58 | struct tpacket_stats { | 59 | struct tpacket_stats { |