]> git.baikalelectronics.ru Git - kernel.git/commit
net: ifb: support ethtools stats
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Sun, 28 Nov 2021 01:46:31 +0000 (09:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 30 Nov 2021 04:15:03 +0000 (20:15 -0800)
commite2aaf4fdbb6913a082b49241427e31a86c9168da
treed8684b8b4d9801a2502bc13b4c766db71df3ffcc
parent3a7ab4ff6d2a83951c0c2053ab339f3430560d78
net: ifb: support ethtools stats

With this feature, we can use the ethtools to get tx/rx
queues stats. This patch, introduce the ifb_update_q_stats
helper to update the queues stats, and ifb_q_stats to simplify
the codes.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Link: https://lore.kernel.org/r/20211128014631.43627-1-xiangxia.m.yue@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ifb.c