]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: fix misuse of qcpu->backlog in gnet_stats_add_queue_cpu
authorZhengchao Shao <shaozhengchao@huawei.com>
Mon, 15 Aug 2022 03:08:48 +0000 (11:08 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 17 Aug 2022 02:38:20 +0000 (19:38 -0700)
commit0b11137edc2b976f6a5766b8760e228805fe5a6a
tree97e0be03f20d309b02bda29027a3407a066f2c8a
parentfbc39bbf290e39b9d1de4e4e5275e20ec5636919
net: sched: fix misuse of qcpu->backlog in gnet_stats_add_queue_cpu

In the gnet_stats_add_queue_cpu function, the qstats->qlen statistics
are incorrectly set to qcpu->backlog.

Fixes: a78b94c849c7 ("gen_stats: Add gnet_stats_add_queue()")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20220815030848.276746-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/gen_stats.c