From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 10D3D1B680 for ; Mon, 25 Dec 2017 02:53:32 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Dec 2017 17:53:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,452,1508828400"; d="scan'208";a="4630388" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 24 Dec 2017 17:53:32 -0800 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 24 Dec 2017 17:53:32 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 24 Dec 2017 17:53:31 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.159]) by shsmsx102.ccr.corp.intel.com ([169.254.2.189]) with mapi id 14.03.0319.002; Mon, 25 Dec 2017 09:53:30 +0800 From: "Yao, Lei A" To: "Hu, Jiayu" , "dev@dpdk.org" CC: "yliu@fridaylinux.org" , "Tan, Jianfeng" , "Hu, Jiayu" Thread-Topic: [dpdk-dev] [PATCH] vhost: support Generic Segmentation Offload Thread-Index: AQHTaAl89a27izUir0mimZl+l8OkxKNTdYGA Date: Mon, 25 Dec 2017 01:53:29 +0000 Message-ID: <2DBBFF226F7CF64BAFCA79B681719D953A30617A@SHSMSX101.ccr.corp.intel.com> References: <1511846913-72414-1-git-send-email-jiayu.hu@intel.com> In-Reply-To: <1511846913-72414-1-git-send-email-jiayu.hu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjFiZjI1YjktZjJiNC00YzYyLTgzOTEtNTc1MTk4YjY4OGE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkcxOTBwV0daVXhSaFV1ZnhHU1gwUmNJcGRsTjRBR2JNc09WQlFPMG16MjQ9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] vhost: support Generic Segmentation Offload X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Dec 2017 01:53:33 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jiayu Hu > Sent: Tuesday, November 28, 2017 1:29 PM > To: dev@dpdk.org > Cc: yliu@fridaylinux.org; Tan, Jianfeng ; Hu, Jia= yu > > Subject: [dpdk-dev] [PATCH] vhost: support Generic Segmentation Offload >=20 > In virtio, Generic Segmentation Offload (GSO) is the feature for the > backend, which means the backend can receive packets with any GSO > type. >=20 > 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. >=20 > Signed-off-by: Jiayu Hu Tested-by: Lei Yao This patch has been tested on my server, after add csum=3Don, gso=3Don to q= emu cmdline, Following offload are active in vm: udp-fragmentation-offload: on tx-tcp-segmentation: on tx-tcp-ecn-segmentation: on tx-tcp6-segmentation: on > --- > lib/librte_vhost/vhost.h | 1 + > 1 file changed, 1 insertion(+) >=20 > 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