examples/vhost: avoid inserting vlan twice
authorOuyang Changchun <changchun.ouyang@intel.com>
Mon, 9 Feb 2015 01:14:09 +0000 (09:14 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Feb 2015 18:18:56 +0000 (19:18 +0100)
commit8b9bb988f78cfd930b653e7626591544fd846ec8
tree1c90c4bd22b148546997a8d0511a5b33a696d992
parent894bb9cb0e284e5d610de8e2b135eec6837deabe
examples/vhost: avoid inserting vlan twice

Check if it has already been vlan-tagged packet, if true, avoid inserting a
duplicated vlan tag into it.

This is a possible case when guest has the capability of inserting vlan tag.

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
examples/vhost/main.c