• Breno Leitao's avatar
    net: ip6_tunnel: Leverage core stats allocator · 6752fb18
    Breno Leitao authored
    With commit 34d21de9 ("net: Move {l,t,d}stats allocation to core and
    convert veth & vrf"), stats allocation could be done on net core
    instead of in this driver.
    
    With this new approach, the driver doesn't have to bother with error
    handling (allocation failure checking, making sure free happens in the
    right spot, etc). This is core responsibility now.
    
    Remove the allocation in the ip6_tunnel driver and leverage the network
    core allocation instead.
    Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6752fb18
ip6_tunnel.c 57.5 KB