Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] ixgbevf: Warn when mailbox API negotiation fails
@ 2026-10-09 20:43 Aadityarangan Shridhar Iyengar
  0 siblings, 0 replies; only message in thread
From: Aadityarangan Shridhar Iyengar @ 2026-10-09 20:43 UTC (permalink / raw)
  To: intel-wired-lan; +Cc: anthony.l.nguyen, przemyslaw.kitszel, netdev, adiyenga

ixgbevf_negotiate_api() tries supported mailbox API versions from newest
to oldest. If all attempts fail, it continues without reporting the
failure, leaving the API version at its reset default. This makes mailbox
communication failures difficult to diagnose.

Warn when the version list is exhausted and include the error from the
final attempt. Do not warn about individual failed attempts, since a PF
rejecting a newer version before accepting an older one is expected.

This is a diagnostic improvement only; negotiation, fallback and recovery
behavior remain unchanged.

This is a diagnostic improvement only.

Signed-off-by: Aadityarangan Shridhar Iyengar <adiyenga@cisco.com>
---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
index 7ce46b4b4821..76c9ac3ac69a 100644
--- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
@@ -2344,6 +2344,10 @@ static void ixgbevf_negotiate_api(struct ixgbevf_adapter *adapter)
 		idx++;
 	}
 
+	if (api[idx] == ixgbe_mbox_api_unknown)
+		netdev_warn(adapter->netdev,
+			    "Mailbox API negotiation with PF failed: %d\n", err);
+
 	ixgbevf_set_features(adapter);
 
 	if (adapter->pf_features & IXGBEVF_PF_SUP_ESX_MBX) {
-- 
2.35.6


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-09 20:43 [PATCH net-next] ixgbevf: Warn when mailbox API negotiation fails Aadityarangan Shridhar Iyengar

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