From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v3 1/5] gso: add Generic Segmentation Offload API framework Date: Thu, 14 Sep 2017 19:33:12 +0100 Message-ID: References: <1504598270-60080-1-git-send-email-jiayu.hu@intel.com> <1505184211-36728-1-git-send-email-jiayu.hu@intel.com> <1505184211-36728-2-git-send-email-jiayu.hu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: konstantin.ananyev@intel.com, mark.b.kavanagh@intel.com, jianfeng.tan@intel.com To: Jiayu Hu , dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 08CFE2F7D for ; Thu, 14 Sep 2017 20:33:15 +0200 (CEST) In-Reply-To: <1505184211-36728-2-git-send-email-jiayu.hu@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/12/2017 3:43 AM, Jiayu Hu wrote: > Generic Segmentation Offload (GSO) is a SW technique to split large > packets into small ones. Akin to TSO, GSO enables applications to > operate on large packets, thus reducing per-packet processing overhead. > > To enable more flexibility to applications, DPDK GSO is implemented > as a standalone library. Applications explicitly use the GSO library > to segment packets. This patch introduces the GSO API framework to DPDK. > > The GSO library provides a segmentation API, rte_gso_segment(), for > applications. It splits an input packet into small ones in each > invocation. The GSO library refers to these small packets generated > by rte_gso_segment() as GSO segments. Each of the newly-created GSO > segments is organized as a two-segment MBUF, where the first segment is a > standard MBUF, which stores a copy of packet header, and the second is an > indirect MBUF which points to a section of data in the input packet. > rte_gso_segment() reduces the refcnt of the input packet by 1. Therefore, > when all GSO segments are freed, the input packet is freed automatically. > Additionally, since each GSO segment has multiple MBUFs (i.e. 2 MBUFs), > the driver of the interface which the GSO segments are sent to should > support to transmit multi-segment packets. > > Signed-off-by: Jiayu Hu > Signed-off-by: Mark Kavanagh > --- > config/common_base | 5 ++ > lib/Makefile | 2 + > lib/librte_gso/Makefile | 49 ++++++++++++++ > lib/librte_gso/rte_gso.c | 50 ++++++++++++++ > lib/librte_gso/rte_gso.h | 133 +++++++++++++++++++++++++++++++++++++ > lib/librte_gso/rte_gso_version.map | 7 ++ > mk/rte.app.mk | 1 + Can you please update documentation for new library: - library documentation "doc/guides/prog_guide/xxx.rst" - api documentation: doc/api/doxy-api.conf, doc/api/doxy-api-index.md - release notes update to announce new library - release notes, "Shared Library Versions" section with new library. <...>