diff options
author | Jakub Kicinski <kuba@kernel.org> | 2025-10-07 16:26:47 -0700 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-10-09 11:10:02 +0200 |
commit | 858b78b24af288bd1143f73aed4e29803ebe8d15 (patch) | |
tree | 07866b401c5f12025a38dfd0411a7e177501a594 /rust/helpers/usb.c | |
parent | 613e9e8dcb7e2523943d3cf965f3183c54b32adb (diff) |
eth: fbnic: fix saving stats from XDP_TX rings on close
When rings are freed - stats get added to the device level stat
structs. Save the stats from the XDP_TX ring just as Tx stats.
Previously they would be saved to Rx and Tx stats. So we'd not
see XDP_TX packets as Rx during runtime but after an down/up cycle
the packets would appear in stats.
Correct the helper used by ethtool code which does a runtime
config switch.
Reviewed-by: Simon Horman <horms@kernel.org>
Fixes: 5213ff086344 ("eth: fbnic: Collect packet statistics for XDP")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20251007232653.2099376-4-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/helpers/usb.c')
0 files changed, 0 insertions, 0 deletions