aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/dpdk/device/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index 22ea659094b..7e5cc08f597 100644
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -1372,6 +1372,12 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
/* default per-device config items */
foreach_dpdk_device_config_item
+ /* copy vlan_strip config from default device */
+ if (devconf->vlan_strip_offload == 0 &&
+ conf->default_devconf.vlan_strip_offload > 0)
+ devconf->vlan_strip_offload =
+ conf->default_devconf.vlan_strip_offload;
+
/* add DPDK EAL whitelist/blacklist entry */
if (num_whitelisted > 0 && devconf->is_blacklisted == 0)
{