Skip to contentSkip to conversation

ixgbevf: Warn when mailbox API negotiation fails

PATCH In review Aadityarangan Shridhar Iyengar 2 participants 2 messages Oct 9 – Oct 27

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgbevf: Warn when mailbox API negotiation fails

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.

---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +4 -0
index 7ce46b4b4821..76c9ac3ac69a 100644
@@ -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) {
Signature · 1 line
2.35.6
Tested-by on v1 1/1
#1 lore raw
Quoted 43 lines

-----Original Message-----
From: Aadityarangan Shridhar Iyengar <[email protected]>
Sent: Friday, October 9, 2026 10:44 PM
To: [email protected]
Cc: Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; [email protected]; [email protected]
Subject: [PATCH net-next] ixgbevf: Warn when mailbox API negotiation fails

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.

---
 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +4 -0
index 7ce46b4b4821..76c9ac3ac69a 100644
@@ -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);
 
Quoted 3 lines

if (adapter->pf_features & IXGBEVF_PF_SUP_ESX_MBX) {
--
2.35.6