]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: act_pedit: remove dependency on rtnl lock
authorVlad Buslov <vladbu@mellanox.com>
Fri, 10 Aug 2018 17:51:46 +0000 (20:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 19:37:09 +0000 (12:37 -0700)
commit44d9a0b1de5ab4d44e2249f4e4d797b8f49a47fc
tree9d6c7ac8e208e58c25902642184af2085f863bfe
parentf81b0bd474a5490ff85e9e2a45b5cd72dbb54579
net: sched: act_pedit: remove dependency on rtnl lock

Rearrange pedit init code to only access pedit action data while holding
tcf spinlock. Change keys allocation type to atomic to allow it to execute
while holding tcf spinlock. Take tcf spinlock in dump function when
accessing pedit action data.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_pedit.c