ice: fix representor stats in switchdev mode
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ice: fix inverted ready check for VF representorsdrivers/ | +1 | 4 replies | |
| 2/2 | ice: use ice_update_eth_stats() for representor statsdrivers/ drivers/ | +13 | 4 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Aleksandr Loktionov | Michal Swiatkowski | Patryk Holda |
|---|---|---|---|
| 1/2 | R-b | R-b R-b | T-b T-b |
| 2/2 | R-b R-b | T-b T-b T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH iwl-net 0/2] ice: fix representor stats in switchdev mode
Port representor statistics in switchdev mode are completely broken due to two independent bugs:
1) ice_repr_ready_vf() has inverted logic — it returns "not ready" when the VF is actually ready, causing all ethtool and ndo_get_stats64 callbacks to bail out early.
2) Even with the readiness check fixed, ice_update_vsi_stats() always returns early for VF VSIs because ICE_VSI_DOWN is permanently set. The stats counters are never updated from hardware.
Patch 1 fixes the inverted readiness check.
Patch 2 switches to ice_update_eth_stats() which reads the GLV_* hardware counters directly, matching what ice_get_vf_stats() already does for VF stats in legacy mode.
Petr Oros (2):
ice: fix inverted ready check for VF representors
ice: use ice_update_eth_stats() for representor stats
drivers/net/ethernet/intel/ice/ice_ethtool.c | 14 +++++++++++--- drivers/net/ethernet/intel/ice/ice_repr.c | 5 +++-- 2 files changed, 14 insertions(+), 5 deletions(-)
--
2.52.0