aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-07-06 01:56:38 -0700
committerDavid S. Miller <davem@davemloft.net>2011-07-06 01:56:38 -0700
commit95ec3eb417115fbb2c73b59e2825f6dd5d2f6cf6 (patch)
tree009ed6c7ee4d693de36990fa30fdaa79939905f0 /include
parentveth: Kill unused tx_dropped (diff)
downloadlinux-dev-95ec3eb417115fbb2c73b59e2825f6dd5d2f6cf6.tar.xz
linux-dev-95ec3eb417115fbb2c73b59e2825f6dd5d2f6cf6.zip
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.h1
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 {
#define PACKET_FANOUT_HASH 0
#define PACKET_FANOUT_LB 1
+#define PACKET_FANOUT_CPU 2
#define PACKET_FANOUT_FLAG_DEFRAG 0x8000
struct tpacket_stats {