examples/vhost: adapt Tx routing to lib
authorHuawei Xie <huawei.xie@intel.com>
Mon, 20 Oct 2014 04:38:19 +0000 (12:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 23 Oct 2014 11:07:03 +0000 (13:07 +0200)
commit4d50b6acbd95f9ceacdcdc5dded512cacf06d8b1
tree370cfab073a32a5d04fac12e5db8c1b3f0d8843e
parentbe800696c26efe452a664d4eefebe8da23472139
examples/vhost: adapt Tx routing to lib

The packet passed to virtio_tx_route has been allocated
mbuf, so there is no need to allocate mbuf for it.
Use vlan offload to transmit vlan tagged packet.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
[Thomas: remove useless mbuf pool]
examples/vhost/main.c