From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 7BB931B28D for ; Wed, 27 Dec 2017 15:35:00 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 13CB120D90; Wed, 27 Dec 2017 09:34:59 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 27 Dec 2017 09:35:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=97UX3xP+lL8df0ZaHDzDpJaVglejyAxOC4r2cVr0NJo=; b=W2E6xsK5 JEeLFpY+j0psLIz7FHr2BX9C10ayc+C6ZjJGcN4YQGY7y6e7Inljquv41Eny3WjC x8tSM1UWtc9snRk6AFJQLv94Rddr349cXIB7WQm5jHhBhIS1tu8laGXT+OIvF/bJ heIysqsKy+78ZZxWB3oaWy7N7+PVw1d/ngHo3OP7K2r0b1VF8ZShv3VMBFPmDwqv supry2HoWV/k7INbhtswDdimUODSihG9cJk/bfKzNiRO1bd+6gBnHj5yOXLpf5hQ NSMChZ9ZQc7+sfYw82YO66uJGeG3ffEq3iwhYJpraMG1agOQ+eVCy7R7XD6QWG1W NZrGYTVhN/KcYQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=97UX3xP+lL8df0ZaHDzDpJaVglejy AxOC4r2cVr0NJo=; b=ZsN4CoQJF4vvEG0QzwCtOHJM08IH6kgIYb26Fj79c12JE l8kAG4aZaKNKjt+02WoNM8KPmwrlOEiqBSKpPG5Kp/fqBxSXEO5VGpko8Fm5WD0i e1sE0YQsVy4O/eGn6IkcxomZ4EMZWeLD6ZqC9uG+A/fSibydyRikJ0YM0ywxCd7p MPvRztDDCIAKAPYXXHBKKFFfxIiP87R9Eh/JY42T15z0keUert60jsxbHigFADGa DkjGmsDXED2htYEWgr4CdjVVemXctiyOrmSe1Ki2SKCEojFHNe19M/RkiG1GDrW5 dbtsVaQl52n8Wmt5lnJk3l5RaYE0Z6bYwZp3JXXQg== X-ME-Sender: Received: from yliu-mob (unknown [115.150.27.225]) by mail.messagingengine.com (Postfix) with ESMTPA id 3641A7E1D2; Wed, 27 Dec 2017 09:34:57 -0500 (EST) Date: Wed, 27 Dec 2017 22:34:54 +0800 From: Yuanhan Liu To: Jiayu Hu , Olivier MATZ Cc: dev@dpdk.org, jianfeng.tan@intel.com Message-ID: <20171227143454.GH8818@yliu-mob> References: <1511247412-130965-1-git-send-email-jiayu.hu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1511247412-130965-1-git-send-email-jiayu.hu@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [dpdk-dev] [PATCH] vhost: support UDP Fragmentation 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: Wed, 27 Dec 2017 14:35:00 -0000 On Tue, Nov 21, 2017 at 02:56:52PM +0800, Jiayu Hu wrote: > In virtio, UDP Fragmentation Offload (UFO) includes two parts: host UFO > and guest UFO. Guest UFO means the frontend can receive large UDP packets, > and host UFO means the backend can receive large UDP packets. This patch > supports host UFO and guest UFO for vhost-user. > > Signed-off-by: Jiayu Hu > --- > lib/librte_mbuf/rte_mbuf.h | 7 +++++++ > lib/librte_vhost/vhost.h | 2 ++ > lib/librte_vhost/virtio_net.c | 10 ++++++++++ > 3 files changed, 19 insertions(+) > > diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h > index ce8a05d..3d8cfc9 100644 > --- a/lib/librte_mbuf/rte_mbuf.h > +++ b/lib/librte_mbuf/rte_mbuf.h > @@ -209,6 +209,13 @@ extern "C" { > /* add new TX flags here */ > > /** > + * UDP Fragmentation Offload flag. This flag is used for enabling UDP > + * fragmentation in SW or in HW. When use UFO, mbuf->tso_segsz is used > + * to store the MSS of UDP fragments. > + */ > +#define PKT_TX_UDP_SEG (1ULL << 42) This patch added a new mbuf flag, Olivier, do you have objections? --yliu