Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2021 22:19:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 236983] bnxt(4) VLAN not operational unless explicit "ifconfig promisc" is used on the physical IF
Message-ID:  <bug-236983-7501-dG2HZsbLjq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236983-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236983-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236983

misho@elwix.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |misho@elwix.org

--- Comment #22 from misho@elwix.org ---
This patch fix promisc mode issue about VLAN on bnxt interface

diff --git a/sys/dev/bnxt/if_bnxt.c b/sys/dev/bnxt/if_bnxt.c
index 7811f4fdebf..f4a53cd4d93 100644
--- a/sys/dev/bnxt/if_bnxt.c
+++ b/sys/dev/bnxt/if_bnxt.c
@@ -588,7 +588,8 @@ bnxt_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs,
        softc->vnic_info.def_ring_grp =3D (uint16_t)HWRM_NA_SIGNATURE;
        softc->vnic_info.cos_rule =3D (uint16_t)HWRM_NA_SIGNATURE;
        softc->vnic_info.lb_rule =3D (uint16_t)HWRM_NA_SIGNATURE;
-       softc->vnic_info.rx_mask =3D HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCA=
ST;
+       softc->vnic_info.rx_mask =3D HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCA=
ST |=20
+               HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN;
        softc->vnic_info.mc_list_count =3D 0;
        softc->vnic_info.flags =3D BNXT_VNIC_FLAG_DEFAULT;
        rc =3D iflib_dma_alloc(ctx, BNXT_MAX_MC_ADDRS * ETHER_ADDR_LEN,
@@ -1392,8 +1393,7 @@ bnxt_promisc_set(if_ctx_t ctx, int flags)
                    HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN;
        else
                softc->vnic_info.rx_mask &=3D
-                   ~(HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_PROMISCUOUS |
-                   HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN);
+                   ~(HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_PROMISCUOUS);

        rc =3D bnxt_hwrm_cfa_l2_set_rx_mask(softc, &softc->vnic_info);

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236983-7501-dG2HZsbLjq>