From ee1bc7d0dc6cff4396f2b72faab3c15cd3879407 Mon Sep 17 00:00:00 2001 From: Jiayu Hu Date: Tue, 28 Nov 2017 13:28:33 +0800 Subject: [PATCH] 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 --- lib/librte_vhost/vhost.h | 1 + 1 file changed, 1 insertion(+) 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) | \ -- 2.20.1