Skip to content

ice: fix representor stats in switchdev mode

Petr Oros intel-wired-lan lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ice: fix inverted ready check for VF representorsdrivers/net/ethernet/intel/ice/ice_repr.c+1 -14 replies
2/2ice: use ice_update_eth_stats() for representor statsdrivers/net/ethernet/intel/ice/ice_ethtool.c drivers/net/ethernet/intel/ice/ice_repr.c+13 -44 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAleksandr LoktionovMichal SwiatkowskiPatryk Holda
1/2R-b R-b R-b T-b T-b
2/2R-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.

Read the v1 thread

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