]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36b73cc99410e3c9accfbe61927e57c46d2ee77e
treeb5179224883dc56cde57058014480e4bcf22b75b
parentd45627f6f3681d48db5c95efb9c6c7e703554f0c
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 d3b4788194a7 (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