• Vlad Buslov's avatar
    net: sched: act_mirred: remove dependency on rtnl lock · 4e232818
    Vlad Buslov authored
    Re-introduce mirred list spinlock, that was removed some time ago, in order
    to protect it from concurrent modifications, instead of relying on rtnl
    lock.
    
    Use tcf spinlock to protect mirred action private data from concurrent
    modification in init and dump. Rearrange access to mirred data in order to
    be performed only while holding the lock.
    
    Rearrange net dev access to always hold reference while working with it,
    instead of relying on rntl lock.
    Signed-off-by: default avatarVlad Buslov <vladbu@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4e232818
act_mirred.c 11.3 KB