aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_basic.c
diff options
context:
space:
mode:
authorVlad Buslov <[email protected]>2019-02-11 08:55:40 +0000
committerDavid S. Miller <[email protected]>2019-02-12 18:41:33 +0000
commitfe2923afc12490e92237d23fc0b29f31da72a4f9 (patch)
tree5bcb097d9029d658b8a500bdb534eea13924edc9 /net/sched/cls_basic.c
parentnet: sched: introduce reference counting for tcf_proto (diff)
downloadkernel-fe2923afc12490e92237d23fc0b29f31da72a4f9.tar.gz
kernel-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 <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_basic.c')
0 files changed, 0 insertions, 0 deletions