]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: avoid unnecessary seqcount operation for lockless qdisc
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 22 Jun 2021 06:49:55 +0000 (14:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jun 2021 19:17:35 +0000 (12:17 -0700)
commite77d2d42b258ca7dd3d43b87c35302117af77635
treeb40d4c10c3406f24480ee664c88f138aa1e3b569
parent4532f43a712db6db016456e10576af4eedf963fa
net: sched: avoid unnecessary seqcount operation for lockless qdisc

qdisc->running seqcount operation is mainly used to do heuristic
locking on q->busylock for locked qdisc, see qdisc_is_running()
and __dev_xmit_skb().

So avoid doing seqcount operation for qdisc with TCQ_F_NOLOCK
flag.

Acked-by: Jakub Kicinski <kuba@kernel.org>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> # flexcan
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h