dpdk: refactor device setup
[vpp.git] / src / plugins / dpdk / device / device.c
index b841827..c9061a9 100644 (file)
@@ -547,7 +547,7 @@ dpdk_subif_add_del_function (vnet_main_t * vnm,
     xd->num_subifs--;
 
   /* currently we program VLANS only for IXGBE VF */
-  if (xd->pmd != VNET_DPDK_PMD_IXGBEVF)
+  if (xd->driver->program_vlans == 0)
     goto done;
 
   if (t->sub.eth.flags.no_tags == 1)