summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorjerryian <gu.jian1@zte.com.cn>2016-11-18 11:20:19 +0800
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-18 13:39:24 +0000
commit5165cbc7135db46e95476b37e81547210344f246 (patch)
treea46a28fc03fe0be32c625f82ee9b2cda8a2a1a84 /vnet
parent4015b1958675eeae464fdfc5ff2b2046b6e745a7 (diff)
Fix bug in configure 'vlan-strip-offload on' first, then configure "set interface mtu" command,
vlan-strip-offload option will be changed to off. Change-Id: I1f39628fc8cde4e46ed5b2e3208253a07327de81 Signed-off-by: jerryian <gu.jian1@zte.com.cn>
Diffstat (limited to 'vnet')
-rwxr-xr-x[-rw-r--r--]vnet/vnet/devices/dpdk/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vnet/vnet/devices/dpdk/init.c b/vnet/vnet/devices/dpdk/init.c
index 7ca3dedeee3..cf5f3297e43 100644..100755
--- a/vnet/vnet/devices/dpdk/init.c
+++ b/vnet/vnet/devices/dpdk/init.c
@@ -784,6 +784,7 @@ dpdk_lib_init (dpdk_main_t * dm)
int vlan_off;
vlan_off = rte_eth_dev_get_vlan_offload (xd->device_index);
vlan_off |= ETH_VLAN_STRIP_OFFLOAD;
+ xd->port_conf.rxmode.hw_vlan_strip = vlan_off;
if (rte_eth_dev_set_vlan_offload (xd->device_index, vlan_off) == 0)
clib_warning ("VLAN strip enabled for interface\n");
else