aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-03-21 15:17:33 +0200
committerDavid S. Miller <davem@davemloft.net>2019-03-21 14:32:17 -0700
commite474619a2498c57f7f0ed8b4abb29d6c62e2393b (patch)
tree25c34d5703e6a1d5c76f9983e982a8aa5bedd83f /net/core/net-sysfs.c
parentnfp: remove defines for unused control bits (diff)
downloadwireguard-linux-e474619a2498c57f7f0ed8b4abb29d6c62e2393b.tar.xz
wireguard-linux-e474619a2498c57f7f0ed8b4abb29d6c62e2393b.zip
net: sched: flower: don't check for rtnl on head dereference
Flower classifier only changes root pointer during init and destroy. Cls API implements reference counting for tcf_proto, so there is no danger of concurrent access to tp when it is being destroyed, even without protection provided by rtnl lock. Implement new function fl_head_dereference() to dereference tp->root without checking for rtnl lock. Use it in all flower function that obtain head pointer instead of rtnl_dereference(). Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Reviewed-by: Stefano Brivio <sbrivio@redhat.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-sysfs.c')
0 files changed, 0 insertions, 0 deletions