From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiayu Hu Subject: [PATCH] vhost: support Generic Segmentation Offload Date: Tue, 28 Nov 2017 13:28:33 +0800 Message-ID: <1511846913-72414-1-git-send-email-jiayu.hu@intel.com> Cc: yliu@fridaylinux.org, jianfeng.tan@intel.com, Jiayu Hu To: dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4FDFA1B53 for ; Tue, 28 Nov 2017 06:26:18 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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 1cc81c1..04f54cb 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -204,6 +204,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.7.4