aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorTodd Foggoa (tfoggoa) <tfoggoa@cisco.com>2016-03-28 13:52:32 -0400
committerGerrit Code Review <gerrit@fd.io>2016-03-29 08:52:27 +0000
commitad8b4728cbe40057f9a5809cdb0cd5adc629ad67 (patch)
tree35649c032abf1c9140936dea41baef02007ae043 /vnet
parent4b9fb500109e4c3704ddddcc0cb9af248ae1133c (diff)
Allow vlans to be programmed on 40GE VF interfaces
Change-Id: Ia3a1bf7cb482f0aa98628b23d88de01cf60c46a9 Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/devices/dpdk/device.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vnet/vnet/devices/dpdk/device.c b/vnet/vnet/devices/dpdk/device.c
index dcf95803c84..b7fb4be3b40 100644
--- a/vnet/vnet/devices/dpdk/device.c
+++ b/vnet/vnet/devices/dpdk/device.c
@@ -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)