• Eric Dumazet's avatar
    macvlan: lockless tx path · 8ffab51b
    Eric Dumazet authored
    macvlan 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 rx_stats to pcpu_stats.
    
    Note : this reverts commit 2c114553 (macvlan: add multiqueue
    capability)
    
    Note : rx_errors converted to a 32bit counter, like tx_dropped, since
    they dont need 64bit range.
    Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    Cc: Patrick McHardy <kaber@trash.net>
    Cc: Ben Greear <greearb@candelatech.com>
    Cc: Ben Hutchings <bhutchings@solarflare.com>
    Acked-by: default avatarPatrick McHardy <kaber@trash.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8ffab51b
macvlan.c 20.9 KB