]> git.baikalelectronics.ru Git - kernel.git/commit
sch_htb: Stats for offloaded HTB
authorMaxim Mikityanskiy <maximmi@mellanox.com>
Tue, 19 Jan 2021 12:08:14 +0000 (14:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 04:41:29 +0000 (20:41 -0800)
commiteb09025f0529c03bbda0f4ba8bc48d38d59daf0d
treef8a04154178cea519c3280b1304e3497bb5c4216
parenta6b1a5bd82e5c93e9c794eec90b3a1e3d833cdf0
sch_htb: Stats for offloaded HTB

This commit adds support for statistics of offloaded HTB. Bytes and
packets counters for leaf and inner nodes are supported, the values are
taken from per-queue qdiscs, and the numbers that the user sees should
have the same behavior as the software (non-offloaded) HTB.

Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_htb.c