]> 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)
commitc02784bf5f66cda46f588a3e62c8aa3f262e1db3
treed2913952615b3070c6d8f222eed2a84f2f140f85
parent65531e2f26ddfba49d277dcceb55366448d8460f
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