Allow vlans to be programmed on 40GE VF interfaces

Change-Id: Ia3a1bf7cb482f0aa98628b23d88de01cf60c46a9
Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
This commit is contained in:
Todd Foggoa (tfoggoa)
2016-03-28 13:52:32 -04:00
committed by Gerrit Code Review
parent 4b9fb50010
commit ad8b4728cb

View File

@ -1060,8 +1060,10 @@ dpdk_subif_add_del_function (vnet_main_t * vnm,
if (xd->dev_type != VNET_DPDK_DEV_ETH)
return 0;
/* currently we program VLANS only for IXGBE VF */
if (xd->pmd != VNET_DPDK_PMD_IXGBEVF)
/* currently we program VLANS only for IXGBE VF and I40E VF */
if ((xd->pmd != VNET_DPDK_PMD_IXGBEVF) &&
(xd->pmd != VNET_DPDK_PMD_I40EVF))
return 0;
if (t->sub.eth.flags.no_tags == 1)