]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2efb0de5e7d193b472aac079836174e623159129
treed6dbb13c5f9133a57c5f417f506d7dbae8b58f7a
parente62660fc65031d27e4b285bc015285b37fd445cd
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