net: sched: flower: add reference counter to flower mask
authorVlad Buslov <vladbu@mellanox.com>
Thu, 21 Mar 2019 13:17:37 +0000 (15:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2019 21:32:17 +0000 (14:32 -0700)
commitf48ef4d5b083c9273d754246e2220d98f3aedd7d
tree25f46635f8d4f4486844d6b23975cf9c627a6fa1
parentb2552b8c40fa89210070c6e3487b35f10608d6c5
net: sched: flower: add reference counter to flower mask

Extend fl_flow_mask structure with reference counter to allow parallel
modification without relying on rtnl lock. Use rcu read lock to safely
lookup mask and increment reference counter in order to accommodate
concurrent deletes.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flower.c