]> www.infradead.org Git - users/jedix/linux-maple.git/commit
eth: fbnic: add support for basic qstats
authorStanislav Fomichev <sdf@fomichev.me>
Sat, 10 Aug 2024 05:43:22 +0000 (22:43 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Aug 2024 22:44:23 +0000 (15:44 -0700)
commit8be1bd91db71fb52be17890586f34cf9403ace89
treec45afa87fd716f5269a6e6f2e61bc970b5d420da
parent45d84008ccbe2592206c110bd526c7dc140f7bd8
eth: fbnic: add support for basic qstats

Implement netdev_stat_ops and export the basic per-queue stats.

This interface expect users to set the values that are used
either to zero or to some other preserved value (they are 0xff by
default). So here we export bytes/packets/drops from tx and rx_stats
plus set some of the values that are exposed by queue stats
to zero.

  $ cd tools/testing/selftests/drivers/net && ./stats.py
  [...]
  Totals: pass:4 fail:0 xfail:0 xpass:0 skip:0 error:0

Reviewed-by: Joe Damato <jdamato@fastly.com>
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20240810054322.2766421-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c