]> 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)
commitbc5052d8e47fbc5cdd4944ea444617ad3590578c
tree9ed88766141671e1bd7f930d7b53746a18d11c37
parentcbfe5381a6a03c7199116f1eb8d7122ec9e87d71
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