]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fbff6b518561fb31d2230277beddfb3505bd864
treed2913952615b3070c6d8f222eed2a84f2f140f85
parentd0398f4281178fd27cfbf7b05ef14f50a5a19bae
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>
include/linux/netdevice.h
net/core/dev.c