examples/vhost: fix packet length
authorOuyang Changchun <changchun.ouyang@intel.com>
Wed, 5 Nov 2014 07:10:33 +0000 (15:10 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Nov 2014 21:20:32 +0000 (22:20 +0100)
commite44fb8a4306dd4b62f46323d751f67e91ee5a31a
treea538abb49afaa7183e2854828e7d9737042e3bd7
parenta0d395597d41c63b06dbd6ddf53eb436c6433016
examples/vhost: fix packet length

As HW vlan strip will reduce the packet length by minus length of vlan tag,
so it need restore the packet length by plus it.

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