vlan: lockless transmit path
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 10 Nov 2010 23:42:00 +0000 (23:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2010 19:15:08 +0000 (11:15 -0800)
commit4af429d29b341bb1735f04c2fb960178ed5d52e7
treeb5179224883dc56cde57058014480e4bcf22b75b
parent8ffab51b3dfc54876f145f15b351c41f3f703195
vlan: lockless transmit path

vlan is a stacked device, like tunnels. We should use the lockless
mechanism we are using in tunnels and loopback.

This patch completely removes locking in TX path.

tx stat counters are added into existing percpu stat structure, renamed
from vlan_rx_stats to vlan_pcpu_stats.

Note : this partially reverts commit 2e59af3dcbdf (vlan: multiqueue vlan
device)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c
net/8021q/vlan.h
net/8021q/vlan_core.c
net/8021q/vlan_dev.c
net/8021q/vlan_netlink.c