* [PATCH net-next v2] be2net: don't report EVB for older chipsets when SR-IOV is disabled
@ 2016-02-11 11:42 Ivan Vecera
2016-02-11 12:22 ` Sathya Perla
2016-02-11 16:35 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Ivan Vecera @ 2016-02-11 11:42 UTC (permalink / raw)
To: netdev
Cc: Sathya Perla, Ajit Khaparde, Padmanabh Ratnakar,
Sriharsha Basavapatna, Somnath Kotur
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 <sathya.perla@broadcom.com>
Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>
Cc: Padmanabh Ratnakar <padmanabh.ratnakar@broadcom.com>
Cc: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Cc: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
drivers/net/ethernet/emulex/benet/be_main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index 9c1fc9d..10a0ad5 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -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,
--
2.4.10
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next v2] be2net: don't report EVB for older chipsets when SR-IOV is disabled
2016-02-11 11:42 [PATCH net-next v2] be2net: don't report EVB for older chipsets when SR-IOV is disabled Ivan Vecera
@ 2016-02-11 12:22 ` Sathya Perla
2016-02-11 16:35 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Sathya Perla @ 2016-02-11 12:22 UTC (permalink / raw)
To: Ivan Vecera
Cc: netdev, Ajit Khaparde, Padmanabh Ratnakar, Sriharsha Basavapatna,
Somnath Kotur
On Thu, Feb 11, 2016 at 12:42 PM, Ivan Vecera <ivecera@redhat.com> wrote:
> 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
Acked-by: Sathya Perla <sathya.perla@broadcom.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next v2] be2net: don't report EVB for older chipsets when SR-IOV is disabled
2016-02-11 11:42 [PATCH net-next v2] be2net: don't report EVB for older chipsets when SR-IOV is disabled Ivan Vecera
2016-02-11 12:22 ` Sathya Perla
@ 2016-02-11 16:35 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-02-11 16:35 UTC (permalink / raw)
To: ivecera
Cc: netdev, sathya.perla, ajit.khaparde, padmanabh.ratnakar,
sriharsha.basavapatna, somnath.kotur
From: Ivan Vecera <ivecera@redhat.com>
Date: Thu, 11 Feb 2016 12:42:26 +0100
> 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 <sathya.perla@broadcom.com>
> Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>
> Cc: Padmanabh Ratnakar <padmanabh.ratnakar@broadcom.com>
> Cc: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
> Cc: Somnath Kotur <somnath.kotur@broadcom.com>
> Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-11 16:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-11 11:42 [PATCH net-next v2] be2net: don't report EVB for older chipsets when SR-IOV is disabled Ivan Vecera
2016-02-11 12:22 ` Sathya Perla
2016-02-11 16:35 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).