dev: add per net_device packet type chains
authorSalam Noureddine <noureddine@arista.com>
Tue, 27 Jan 2015 19:35:48 +0000 (11:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jan 2015 22:41:39 +0000 (14:41 -0800)
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>
include/linux/netdevice.h
net/core/dev.c

Simple merge
diff --cc net/core/dev.c
Simple merge