examples/vhost: add virtio offload
authorJijiang Liu <jijiang.liu@intel.com>
Fri, 5 Feb 2016 07:31:41 +0000 (15:31 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Feb 2016 21:56:44 +0000 (22:56 +0100)
commit9fd72e3cbd291f54c3261ddcc0e4d977aec4bb5f
treef3189c9a4646092eb38b2170d03f2053fa27eb09
parent691693c6e6653dc887bd7eb5cc868d41082ca17f
examples/vhost: add virtio offload

Change the codes in vhost sample to test virtio offload feature.

These changes include,

1. add two test options: tx-csum and tso.

2. add virtio_tx_offload() function to test vhost TX offload feature
   for VM to NIC case;

however, for VM to VM case, it doesn't need to call this function,
  the reason is explained in patch 2.

Signed-off-by: Jijiang Liu <jijiang.liu@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
examples/vhost/main.c