OSDN Git Service

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)
commita21ee5b2fcb8d6d3973446c5039e966c4cfe40d1
treed8684b8b4d9801a2502bc13b4c766db71df3ffcc
parent09ae03e2fc9d04240c21759ce9f1ef63d7651850
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