diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-02-11 10:55:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 13:41:33 -0500 |
commit | fe2923afc12490e92237d23fc0b29f31da72a4f9 (patch) | |
tree | 5bcb097d9029d658b8a500bdb534eea13924edc9 /Kbuild | |
parent | 4dbfa766440c6dfe3d10f077cde966a7d11b58f1 (diff) | |
download | lwn-fe2923afc12490e92237d23fc0b29f31da72a4f9.tar.gz lwn-fe2923afc12490e92237d23fc0b29f31da72a4f9.zip |
net: sched: traverse classifiers in chain with tcf_get_next_proto()
All users of chain->filters_chain rely on rtnl lock and assume that no new
classifier instances are added when traversing the list. Use
tcf_get_next_proto() to traverse filters list without relying on rtnl
mutex. This function iterates over classifiers by taking reference to
current iterator classifier only and doesn't assume external
synchronization of filters list.
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions