]> www.infradead.org Git - users/jedix/linux-maple.git/commit
eth: fbnic: add basic rtnl stats
authorJakub Kicinski <kuba@kernel.org>
Sat, 10 Aug 2024 05:43:21 +0000 (22:43 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Aug 2024 22:44:23 +0000 (15:44 -0700)
commit45d84008ccbe2592206c110bd526c7dc140f7bd8
tree7a099cd1e2b88e051d40ba16e765b9c7d5f13770
parentfe1f433555d5ba80fd8b2085f737b16b4197da6f
eth: fbnic: add basic rtnl stats

Count packets, bytes and drop on the datapath, and report
to the user. Since queues are completely freed when the
device is down - accumulate the stats in the main netdev struct.
This means that per-queue stats will only report values since
last reset (per qstat recommendation).

Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20240810054322.2766421-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c
drivers/net/ethernet/meta/fbnic/fbnic_netdev.h
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
drivers/net/ethernet/meta/fbnic/fbnic_txrx.h