aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk
diff options
context:
space:
mode:
authorChenmin Sun <chenmin.sun@intel.com>2019-05-27 22:05:42 +0800
committerDamjan Marion <dmarion@me.com>2019-05-27 10:05:22 +0000
commitd28374a0658c26ecb3f550a638450923ce6126e3 (patch)
treeeb07c54641db15aae1b179b935d96ae01be6f2a4 /src/plugins/dpdk
parente70577cec18148cfc15263cbaea9f501796f5682 (diff)
dpdk: vlan strip config does not take effect in default device
copy vlan strip config from default device Change-Id: I4ad1c159bad964fd1900b5ae4960b7014dd9f9b1 Signed-off-by: Chenmin Sun <chenmin.sun@intel.com>
Diffstat (limited to 'src/plugins/dpdk')
-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)
{