public inbox for intel-wired-lan@osuosl.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH iwl-net 0/2] ice: fix representor stats in switchdev mode
@ 2026-02-12  7:53 Petr Oros
  2026-02-12  7:53 ` [Intel-wired-lan] [PATCH iwl-net 1/2] ice: fix inverted ready check for VF representors Petr Oros
  2026-02-12  7:53 ` [Intel-wired-lan] [PATCH iwl-net 2/2] ice: use ice_update_eth_stats() for representor stats Petr Oros
  0 siblings, 2 replies; 11+ messages in thread
From: Petr Oros @ 2026-02-12  7:53 UTC (permalink / raw)
  To: netdev
  Cc: Wojciech Drewek, Przemek Kitszel, Eric Dumazet, linux-kernel,
	Andrew Lunn, Tony Nguyen, Simon Horman, Michal Swiatkowski,
	Jakub Kicinski, Paolo Abeni, David S. Miller, intel-wired-lan

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-03-19 10:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-12  7:53 [Intel-wired-lan] [PATCH iwl-net 0/2] ice: fix representor stats in switchdev mode Petr Oros
2026-02-12  7:53 ` [Intel-wired-lan] [PATCH iwl-net 1/2] ice: fix inverted ready check for VF representors Petr Oros
2026-02-12  8:24   ` Loktionov, Aleksandr
2026-02-12  9:47   ` Michal Swiatkowski
2026-03-19  9:10     ` Holda, Patryk
2026-03-19 10:38     ` Holda, Patryk
2026-02-12  7:53 ` [Intel-wired-lan] [PATCH iwl-net 2/2] ice: use ice_update_eth_stats() for representor stats Petr Oros
2026-02-12  8:24   ` Loktionov, Aleksandr
2026-03-19  9:27     ` Holda, Patryk
2026-03-19 10:37     ` Holda, Patryk
2026-03-19  9:12   ` Holda, Patryk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox