Skip to content

Commit 15915b4

Browse files
jacob-kelleranguy11
authored andcommitted
ixgbe: downgrade logging of unsupported VF API version to debug
The ixgbe PF driver logs an info message when a VF attempts to negotiate an API version which it does not support: VF 0 requested invalid api version 6 The ixgbevf driver attempts to load with mailbox API v1.5, which is required for best compatibility with other hosts such as the ESX VMWare PF. The Linux PF only supports API v1.4, and does not currently have support for the v1.5 API. The logged message can confuse users, as the v1.5 API is valid, but just happens to not currently be supported by the Linux PF. Downgrade the info message to a debug message, and fix the language to use 'unsupported' instead of 'invalid' to improve message clarity. Long term, we should investigate whether the improvements in the v1.5 API make sense for the Linux PF, and if so implement them properly. This may require yet another API version to resolve issues with negotiating IPSEC offload support. Fixes: 339f289 ("ixgbevf: Add support for new mailbox communication between PF and VF") Reported-by: Yifei Liu <[email protected]> Link: https://lore.kernel.org/intel-wired-lan/[email protected]/ Signed-off-by: Jacob Keller <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Tested-by: Rafal Romanowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent d072531 commit 15915b4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ u32 ixgbe_read_reg(struct ixgbe_hw *hw, u32 reg);
194194
dev_err(&adapter->pdev->dev, format, ## arg)
195195
#define e_dev_notice(format, arg...) \
196196
dev_notice(&adapter->pdev->dev, format, ## arg)
197+
#define e_dbg(msglvl, format, arg...) \
198+
netif_dbg(adapter, msglvl, adapter->netdev, format, ## arg)
197199
#define e_info(msglvl, format, arg...) \
198200
netif_info(adapter, msglvl, adapter->netdev, format, ## arg)
199201
#define e_err(msglvl, format, arg...) \

drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ static int ixgbe_negotiate_vf_api(struct ixgbe_adapter *adapter,
10481048
break;
10491049
}
10501050

1051-
e_info(drv, "VF %d requested invalid api version %u\n", vf, api);
1051+
e_dbg(drv, "VF %d requested unsupported api version %u\n", vf, api);
10521052

10531053
return -1;
10541054
}

0 commit comments

Comments
 (0)