Skip to contentSkip to conversation

be2net: don't report EVB for older chipsets when SR-IOV is disabled

PATCH Applied Ivan Vecera 3 participants 3 messages Feb 11, 2016

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

PATCH v2 1/1 be2net: don't report EVB for older chipsets when SR-IOV is disabled

The EVB (virtual bridge) functionality should be disabled on older BE3 and Lancer chips if SR-IOV is disabled in the NIC's BIOS. This setting is identified by the zero value of total VFs reported by the card. The GET_HSW_CONFIG command cannot be used as it is not supported by these older chipset's FW.

v2: added the comment

Cc Sathya Perla <[email protected]>
Cc Ajit Khaparde <[email protected]>
Cc Padmanabh Ratnakar <[email protected]>
Cc Sriharsha Basavapatna <[email protected]>
Cc Somnath Kotur <[email protected]>
---
 drivers/net/ethernet/emulex/benet/be_main.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/emulex/benet/be_main.c +3 -0
index 9c1fc9d..10a0ad5 100644
@@ -4588,6 +4588,9 @@ static int be_ndo_bridge_getlink(struct sk_buff *skb, u32 pid, u32 seq,
 
 	/* BE and Lancer chips support VEB mode only */
 	if (BEx_chip(adapter) || lancer_chip(adapter)) {
+		/* VEB is disabled in non-SR-IOV profiles on BE3/Lancer */
+		if (!pci_sriov_get_totalvfs(adapter->pdev))
+			return 0;
 		hsw_mode = PORT_FWD_TYPE_VEB;
 	} else {
 		status = be_cmd_get_hsw_config(adapter, NULL, 0,
Signature · 1 line
2.4.10
Acked-by on v2 1/1
#1 lore raw
Quoted 7 lines · Ivan Vecera

The EVB (virtual bridge) functionality should be disabled on older BE3 and Lancer chips if SR-IOV is disabled in the NIC's BIOS. This setting is identified by the zero value of total VFs reported by the card. The GET_HSW_CONFIG command cannot be used as it is not supported by these older chipset's FW.

v2: added the comment

maintainer Applied
#2 lore raw
In reply to Ivan Vecera

From: Ivan Vecera <[email protected]>
Date: Thu, 11 Feb 2016 12:42:26 +0100

Quoted 6 lines

The EVB (virtual bridge) functionality should be disabled on older BE3 and Lancer chips if SR-IOV is disabled in the NIC's BIOS. This setting is identified by the zero value of total VFs reported by the card. The GET_HSW_CONFIG command cannot be used as it is not supported by these older chipset's FW.

Quoted 8 lines

v2: added the comment

Cc Sathya Perla <[email protected]>
Cc Ajit Khaparde <[email protected]>
Cc Padmanabh Ratnakar <[email protected]>
Cc Sriharsha Basavapatna <[email protected]>
Cc Somnath Kotur <[email protected]>

Applied, thanks.