]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit7866a621043fbaca3d7389e9b9f69dd1a2e5a855
treed2913952615b3070c6d8f222eed2a84f2f140f85
parent7b4ce694b2030e7bb41f938cba6a0be4947a5aa5
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