aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/act_tunnel_key.c
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2018-07-05 17:24:31 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-08 12:42:29 +0900
commitcae422f379f37fe9105d2a113259788f989e7df5 (patch)
tree1bc0e47b7a5217a4694d4b9a09be5aefb870b3b4 /net/sched/act_tunnel_key.c
parentnet: sched: don't release reference on action overwrite (diff)
downloadlinux-dev-cae422f379f37fe9105d2a113259788f989e7df5.tar.xz
linux-dev-cae422f379f37fe9105d2a113259788f989e7df5.zip
net: sched: use reference counting action init
Change action API to assume that action init function always takes reference to action, even when overwriting existing action. This is necessary because action API continues to use action pointer after init function is done. At this point action becomes accessible for concurrent modifications, so user must always hold reference to it. Implement helper put list function to atomically release list of actions after action API init code is done using them. Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions