aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/pkt_cls.h
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2020-02-17 12:12:11 +0200
committerDavid S. Miller <davem@davemloft.net>2020-02-17 14:17:02 -0800
commit107f2d50916500985b9fffd7c77d8c14809f9802 (patch)
treed99a6519c6c2b5f32fccd320dae79635cc9d0bfe /include/net/pkt_cls.h
parentnet: sched: refactor police action helpers to require tcf_lock (diff)
downloadlinux-dev-107f2d50916500985b9fffd7c77d8c14809f9802.tar.xz
linux-dev-107f2d50916500985b9fffd7c77d8c14809f9802.zip
net: sched: refactor ct action helpers to require tcf_lock
In order to remove rtnl lock dependency from flow_action representation translator, change rtnl_dereference() to rcu_dereference_protected() in ct action helpers that provide external access to zone and action values. This is safe to do because the functions are not called from anywhere else outside flow_action infrastructure which was modified to obtain tcf_lock when accessing action data in one of previous patches in the series. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_cls.h')
0 files changed, 0 insertions, 0 deletions