]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: take rtnl lock in tc_setup_flow_action()
authorVlad Buslov <vladbu@mellanox.com>
Mon, 26 Aug 2019 13:45:03 +0000 (16:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Aug 2019 21:17:43 +0000 (14:17 -0700)
commitd3a744f37e2e4f025ad75a04d1ad42dca19cb6d9
tree9ed88766141671e1bd7f930d7b53746a18d11c37
parent71d6a1282e1288f046fba488c852d3d894a62618
net: sched: take rtnl lock in tc_setup_flow_action()

In order to allow using new flow_action infrastructure from unlocked
classifiers, modify tc_setup_flow_action() to accept new 'rtnl_held'
argument. Take rtnl lock before accessing tc_action data. This is necessary
to protect from concurrent action replace.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
net/sched/cls_api.c
net/sched/cls_flower.c
net/sched/cls_matchall.c