From: Ajit Khaparde Date: Tue, 24 Oct 2017 21:19:53 +0000 (-0500) Subject: net/bnxt: check VLANs from pool map only for VMDq X-Git-Tag: spdx-start~1095 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bb102e136816d85901fceeaf2aaf7138cb581e87;p=dpdk.git net/bnxt: check VLANs from pool map only for VMDq Fixes: 75cd6fb1d901 ("net/bnxt: fix the association of a MACVLAN per VNIC") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index c130ce884b..6e0e40f82b 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -367,7 +367,8 @@ int bnxt_hwrm_set_l2_filter(struct bnxt *bp, uint16_t j = dst_id - 1; //TODO: Is there a better way to add VLANs to each VNIC in case of VMDQ - if (conf->pool_map[j].pools & (1UL << j)) { + if ((dev_conf->rxmode.mq_mode & ETH_MQ_RX_VMDQ_FLAG) && + conf->pool_map[j].pools & (1UL << j)) { RTE_LOG(DEBUG, PMD, "Add vlan %u to vmdq pool %u\n", conf->pool_map[j].vlan_id, j);