commit | 9838b20a7fb28c69fa66ac8e68d967ffe1d0ecad | [log] [tgz] |
---|---|---|
author | Vlad Buslov <vladbu@mellanox.com> | Mon Aug 26 16:45:03 2019 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Aug 26 14:17:43 2019 -0700 |
tree | 9ed88766141671e1bd7f930d7b53746a18d11c37 | |
parent | 11bd634da25735a3f2f12112d02661d462a76792 [diff] |
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>