examples/vhost: fix VLAN tag
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 25 Mar 2016 07:58:52 +0000 (15:58 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 25 Mar 2016 18:53:00 +0000 (19:53 +0100)
commit1a95fe0be196ba80a29d5fc74481060a3c9b31b8
treecd96ee7c88148a36ad7d3776d2dc053ee8f08c58
parentdf40169ac0e2f82847812b4082258dee518572fb
examples/vhost: fix VLAN tag

While the last arg of virtio_tx_route() asks a vlan tag, we currently
feed it with device_fh, which is wrong. Fix it.

Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application")

Reported-by: Qian Xu <qian.q.xu@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
examples/vhost/main.c