net: sched: change tcf block offload counter type to atomic_t
authorVlad Buslov <vladbu@mellanox.com>
Mon, 26 Aug 2019 13:44:58 +0000 (16:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Aug 2019 21:17:43 +0000 (14:17 -0700)
commit97394bef5622cb32fd1e5d152251090da6c238b9
treed6dbb13c5f9133a57c5f417f506d7dbae8b58f7a
parent4f8116c85057239ff37519debdd5d45b38ad8130
net: sched: change tcf block offload counter type to atomic_t

As a preparation for running proto ops functions without rtnl lock, change
offload counter type to atomic. This is necessary to allow updating the
counter by multiple concurrent users when offloading filters to hardware
from unlocked classifiers.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/cls_api.c