]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: act_nat: remove dependency on rtnl lock
authorVlad Buslov <vladbu@mellanox.com>
Mon, 3 Sep 2018 07:09:20 +0000 (10:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Sep 2018 17:18:25 +0000 (10:18 -0700)
commit5d5bea0211b1bb48c29fbc996ca647615b151fd5
treed2f8e7d03b7aa532e494ccd9fdabc106de3c7bac
parentbf7078387c466988d3873b9f0aa6fa4ab530f118
net: sched: act_nat: remove dependency on rtnl lock

According to the new locking rule, we have to take tcf_lock for both
->init() and ->dump(), as RTNL will be removed.

Use tcf spinlock to protect private nat action data from concurrent
modification during dump. (nat init already uses tcf spinlock when changing
action state)

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