net/bnxt: check VLANs from pool map only for VMDq

Fixes: 75cd6fb1d9 ("net/bnxt: fix the association of a MACVLAN per VNIC")
Cc: stable@dpdk.org

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
Ajit Khaparde 2017-10-24 16:19:53 -05:00 committed by Ferruh Yigit
parent 8159471a3a
commit bb102e1368

View File

@ -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);