eth: fbnic: wrap tx queue stats in a struct
authorJakub Kicinski <kuba@kernel.org>
Tue, 11 Feb 2025 18:13:53 +0000 (10:13 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 13 Feb 2025 00:38:51 +0000 (16:38 -0800)
commit93d2f2f36ea993841d2efec4caef1cc95f4baa84
tree15d5a3f186f1d226db6f29510192dfddd2b505a0
parent34eea78a1112afc3579e06abb510a9f57521adaf
eth: fbnic: wrap tx queue stats in a struct

The queue stats struct is used for Rx and Tx queues. Wrap
the Tx stats in a struct and a union, so that we can reuse
the same space for Rx stats on Rx queues.

This also makes it easy to add an assert to the stat handling
code to catch new stats not being aggregated on shutdown.

Acked-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://patch.msgid.link/20250211181356.580800-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
drivers/net/ethernet/meta/fbnic/fbnic_txrx.h