]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: implement action API that deletes action by index
authorVlad Buslov <vladbu@mellanox.com>
Thu, 5 Jul 2018 14:24:27 +0000 (17:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Jul 2018 03:42:28 +0000 (12:42 +0900)
commit301dcd416c3b199d18543eadce5e18ae303950f5
tree858f37c4b6f35c1fe8303f3229cd234b0b3044d7
parent954775284501129c45a17d163f812b5d1d074abc
net: sched: implement action API that deletes action by index

Implement new action API function that atomically finds and deletes action
from idr by index. Intended to be used by lockless actions that do not rely
on rtnl lock.

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>
include/net/act_api.h
net/sched/act_api.c