From: Jiayu Hu Date: Tue, 28 Nov 2017 05:28:33 +0000 (+0800) Subject: vhost: support Generic Segmentation Offload X-Git-Tag: spdx-start~525 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ee1bc7d0dc6cff4396f2b72faab3c15cd3879407;p=dpdk.git vhost: support Generic Segmentation Offload In virtio, Generic Segmentation Offload (GSO) is the feature for the backend, which means the backend can receive packets with any GSO type. Virtio-net enables the GSO feature by default, and vhost-net supports it. To make live migration from vhost-net to vhost-user possible, this patch enables GSO for vhost-user. Signed-off-by: Jiayu Hu Tested-by: Lei Yao Acked-by: Yuanhan Liu --- diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index b8682dd4d4..27989e889e 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -175,6 +175,7 @@ struct vhost_msg { (1ULL << VIRTIO_F_VERSION_1) | \ (1ULL << VHOST_F_LOG_ALL) | \ (1ULL << VHOST_USER_F_PROTOCOL_FEATURES) | \ + (1ULL << VIRTIO_NET_F_GSO) | \ (1ULL << VIRTIO_NET_F_HOST_TSO4) | \ (1ULL << VIRTIO_NET_F_HOST_TSO6) | \ (1ULL << VIRTIO_NET_F_CSUM) | \