]> 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)
commit12ef7f12def9b2879ca4f5141679b5987d8b7d25
treed6dbb13c5f9133a57c5f417f506d7dbae8b58f7a
parentdf39fad5c5ce9882a8063c1264009b76f839c4d8
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