summaryrefslogtreecommitdiffstats
path: root/include/linux/if_packet.h
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/linux/if_packet.h
parent81b16ba2f1cc93a1ee1dda48be2ea2d91a0cb72e (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/linux/if_packet.h')
-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 84e684e6935..c1486060f5e 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 {