]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: ingress: set 'unlocked' flag for clsact Qdisc ops
authorVlad Buslov <vladbu@mellanox.com>
Thu, 13 Jun 2019 16:12:05 +0000 (19:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 02:32:56 +0000 (19:32 -0700)
commit5a360654adc8cc05acd50084928b5154a202abc8
tree2610c5c2f7f923e4272ca89889e14c95219a19c3
parent3856a6ef32057f920bdd7c351233b5310cdd3c72
net: sched: ingress: set 'unlocked' flag for clsact Qdisc ops

To remove rtnl lock dependency in tc filter update API when using clsact
Qdisc, set QDISC_CLASS_OPS_DOIT_UNLOCKED flag in clsact Qdisc_class_ops.

Clsact Qdisc ops don't require any modifications to be used without rtnl
lock on tc filter update path. Implementation never changes its q->block
and only releases it when Qdisc is being destroyed. This means it is enough
for RTM_{NEWTFILTER|DELTFILTER|GETTFILTER} message handlers to hold clsact
Qdisc reference while using it without relying on rtnl lock protection.
Unlocked Qdisc ops support is already implemented in filter update path by
unlocked cls API patch set.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_ingress.c