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)
commit9838b20a7fb28c69fa66ac8e68d967ffe1d0ecad
tree9ed88766141671e1bd7f930d7b53746a18d11c37
parent11bd634da25735a3f2f12112d02661d462a76792
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