summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorSalam Noureddine <noureddine@arista.com>2015-01-27 11:35:48 -0800
committerDavid S. Miller <davem@davemloft.net>2015-01-29 14:41:39 -0800
commit7866a621043fbaca3d7389e9b9f69dd1a2e5a855 (patch)
treed2913952615b3070c6d8f222eed2a84f2f140f85 /include/linux/netdevice.h
parent7b4ce694b2030e7bb41f938cba6a0be4947a5aa5 (diff)
downloadop-kernel-dev-7866a621043fbaca3d7389e9b9f69dd1a2e5a855.zip
op-kernel-dev-7866a621043fbaca3d7389e9b9f69dd1a2e5a855.tar.gz
dev: add per net_device packet type chains
When many pf_packet listeners are created on a lot of interfaces the current implementation using global packet type lists scales poorly. This patch adds per net_device packet type lists to fix this problem. The patch was originally written by Eric Biederman for linux-2.6.29. Tested on linux-3.16. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Salam Noureddine <noureddine@arista.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 642d426..3d37c6e 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1514,6 +1514,8 @@ struct net_device {
struct list_head napi_list;
struct list_head unreg_list;
struct list_head close_list;
+ struct list_head ptype_all;
+ struct list_head ptype_specific;
struct {
struct list_head upper;
OpenPOWER on IntegriCloud