diff mbox series

net/bnxt: remove workaround for default VNIC

Message ID 20210718053059.16194-1-kalesh-anakkur.purayil@broadcom.com (mailing list archive)
State Accepted, archived
Delegated to: Ajit Khaparde
Headers show
Series net/bnxt: remove workaround for default VNIC | expand

Checks

Context Check Description
ci/intel-Testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/github-robot success github build: passed
ci/checkpatch success coding style OK

Commit Message

Kalesh Anakkur Purayil July 18, 2021, 5:30 a.m. UTC
From: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>

On older Wh+ firmware versions, HWRM_FUNC_QCFG returns zero
for the parent default vnic. Commit "3fb93bc7c349" added a
temporary Wh+-specific workaround in the PMD.
This has been fixed in latest firmware and hence removing
the workaround.

Fixes: 3fb93bc7c349 ("net/bnxt: initialize parent PF information")
Cc: stable@dpdk.org

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
---
 drivers/net/bnxt/bnxt_hwrm.c | 10 ----------
 1 file changed, 10 deletions(-)

Comments

Ajit Khaparde July 20, 2021, 9:36 p.m. UTC | #1
On Sat, Jul 17, 2021 at 10:10 PM Kalesh A P <
kalesh-anakkur.purayil@broadcom.com> wrote:

> From: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
>
> On older Wh+ firmware versions, HWRM_FUNC_QCFG returns zero
> for the parent default vnic. Commit "3fb93bc7c349" added a
> temporary Wh+-specific workaround in the PMD.
> This has been fixed in latest firmware and hence removing
> the workaround.
>
> Fixes: 3fb93bc7c349 ("net/bnxt: initialize parent PF information")
> Cc: stable@dpdk.org
>
> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
> Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
>
Patch applied to dpdk-next-net-brcm


> ---
>  drivers/net/bnxt/bnxt_hwrm.c | 10 ----------
>  1 file changed, 10 deletions(-)
>
> diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c
> index e6c46d4..73deb41 100644
> --- a/drivers/net/bnxt/bnxt_hwrm.c
> +++ b/drivers/net/bnxt/bnxt_hwrm.c
> @@ -3390,16 +3390,6 @@ int bnxt_hwrm_parent_pf_qcfg(struct bnxt *bp)
>         bp->parent->fid = rte_le_to_cpu_16(resp->fid);
>         bp->parent->port_id = rte_le_to_cpu_16(resp->port_id);
>
> -       /* FIXME: Temporary workaround - remove when firmware issue is
> fixed. */
> -       if (bp->parent->vnic == 0) {
> -               PMD_DRV_LOG(DEBUG, "parent VNIC unavailable.\n");
> -               /* Use hard-coded values appropriate for current Wh+ fw. */
> -               if (bp->parent->fid == 2)
> -                       bp->parent->vnic = 0x100;
> -               else
> -                       bp->parent->vnic = 1;
> -       }
> -
>         HWRM_UNLOCK();
>
>         return 0;
> --
> 2.10.1
>
>
diff mbox series

Patch

diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c
index e6c46d4..73deb41 100644
--- a/drivers/net/bnxt/bnxt_hwrm.c
+++ b/drivers/net/bnxt/bnxt_hwrm.c
@@ -3390,16 +3390,6 @@  int bnxt_hwrm_parent_pf_qcfg(struct bnxt *bp)
 	bp->parent->fid = rte_le_to_cpu_16(resp->fid);
 	bp->parent->port_id = rte_le_to_cpu_16(resp->port_id);
 
-	/* FIXME: Temporary workaround - remove when firmware issue is fixed. */
-	if (bp->parent->vnic == 0) {
-		PMD_DRV_LOG(DEBUG, "parent VNIC unavailable.\n");
-		/* Use hard-coded values appropriate for current Wh+ fw. */
-		if (bp->parent->fid == 2)
-			bp->parent->vnic = 0x100;
-		else
-			bp->parent->vnic = 1;
-	}
-
 	HWRM_UNLOCK();
 
 	return 0;