Adds virtio offload support in us-vhost. The patch set adds the negotiation support between us-vhost and vanilla Linux virtio guest for TX offload(checksum and TSO), and add the offload support in the vhost libs and change vhost sample to test these changes.
v4 change: remove virtio-net change, only keep vhost changes. add guest TX offload capabilities to support VM to VM case. split the cleanup code as a seperate patch. v3 change: rebase latest codes. v2 change: fill virtio device information for TX offloads. *** BLURB HERE *** Jijiang Liu (8): add virtual addr of virtio net header store vir address of virtio hdr add vhost TX offload capabilities(CSUM/TSO) add dequeue offload handle in vhost lib remove ip_hdr defination in vhost sample change vhost app to support virtio offload test add guest offload(CSUM/TSO) add guest tx offload handle in vhost lib drivers/net/virtio/virtio_ethdev.c | 3 + drivers/net/virtio/virtqueue.h | 1 + examples/vhost/main.c | 125 ++++++++++++++++++++++++++---- lib/librte_vhost/vhost_rxtx.c | 149 +++++++++++++++++++++++++++++++++++- lib/librte_vhost/virtio-net.c | 9 ++- 5 files changed, 266 insertions(+), 21 deletions(-) -- 1.7.7.6