• Eric Dumazet's avatar
    vlan: lockless transmit path · 4af429d2
    Eric Dumazet authored
    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 2e59af3d (vlan: multiqueue vlan
    device)
    Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    Cc: Patrick McHardy <kaber@trash.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4af429d2
vlan_dev.c 24.9 KB