public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH iwl-net 0/2] ice: fix representor stats in switchdev mode
@ 2026-02-12  7:53 Petr Oros
  2026-02-12  7:53 ` [PATCH iwl-net 1/2] ice: fix inverted ready check for VF representors Petr Oros
  2026-02-12  7:53 ` [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: Petr Oros, Tony Nguyen, Przemek Kitszel, Andrew Lunn,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Michal Swiatkowski, Wojciech Drewek, Simon Horman,
	intel-wired-lan, linux-kernel

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:38 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 [PATCH iwl-net 0/2] ice: fix representor stats in switchdev mode Petr Oros
2026-02-12  7:53 ` [PATCH iwl-net 1/2] ice: fix inverted ready check for VF representors Petr Oros
2026-02-12  8:24   ` [Intel-wired-lan] " Loktionov, Aleksandr
2026-02-12  9:47   ` Michal Swiatkowski
2026-03-19  9:10     ` [Intel-wired-lan] " Holda, Patryk
2026-03-19 10:38     ` Holda, Patryk
2026-02-12  7:53 ` [PATCH iwl-net 2/2] ice: use ice_update_eth_stats() for representor stats Petr Oros
2026-02-12  8:24   ` [Intel-wired-lan] " 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