]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: mana: Add standard counter rx_missed_errors
authorErni Sri Satya Vennela <ernis@linux.microsoft.com>
Fri, 14 Nov 2025 11:43:19 +0000 (03:43 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Nov 2025 03:52:30 +0000 (19:52 -0800)
commitbe4f1d67ec56f23f37714ac73c01094e63c7ff28
tree09cb5279acdbd40378d0cc6b24181be65caae7cb
parente275d9091c01b3b46f3ec534ce4ac77cffc9e3ae
net: mana: Add standard counter rx_missed_errors

Report standard counter stats->rx_missed_errors
using hc_rx_discards_no_wqe from the hardware.

Add a global workqueue to periodically run
mana_query_gf_stats every 2 seconds to get the latest
info in eth_stats and define a driver capability flag
to notify hardware of the periodic queries.

To avoid repeated failures and log flooding, the workqueue
is not rescheduled if mana_query_gf_stats fails on HWC timeout
error and the stats are reset to 0. Other errors are transient
which will not need a VF reset for recovery.

Signed-off-by: Erni Sri Satya Vennela <ernis@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://patch.msgid.link/1763120599-6331-3-git-send-email-ernis@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microsoft/mana/mana_en.c
drivers/net/ethernet/microsoft/mana/mana_ethtool.c
include/net/mana/gdma.h
include/net/mana/mana.h