From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 444481BA49 for ; Mon, 29 Jan 2018 17:49:20 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jan 2018 08:49:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,432,1511856000"; d="scan'208";a="13819546" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga007.fm.intel.com with ESMTP; 29 Jan 2018 08:49:18 -0800 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.197]) by IRSMSX106.ger.corp.intel.com ([169.254.8.62]) with mapi id 14.03.0319.002; Mon, 29 Jan 2018 16:49:17 +0000 From: "Ananyev, Konstantin" To: Xueming Li , Olivier MATZ CC: "dev@dpdk.org" , "Wu, Jingjing" , Shahaf Shuler , Yongseok Koh , Thomas Monjalon , "Yigit, Ferruh" Thread-Topic: [dpdk-dev] [PATCH v2 1/5] ethdev: introduce Tx generic tunnel offloads Thread-Index: AQHTmROifk2L1w16xUyzxbptmR3iRqOLD3Qg Date: Mon, 29 Jan 2018 16:49:16 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258905654E2@IRSMSX103.ger.corp.intel.com> References: <20180109141110.146250-2-xuemingl@mellanox.com> <20180129150859.71573-1-xuemingl@mellanox.com> In-Reply-To: <20180129150859.71573-1-xuemingl@mellanox.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjM5OGNmMmQtYmQ0YS00NWQ5LTg1Y2UtMDA2MDVhZDZlMjY5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Imx1YjMwckRKZkNGVlJcL3dwTFJKOHhCMmpteFdqVktKOW80SERsVzU1azFzPSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 1/5] ethdev: introduce Tx generic tunnel offloads 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, 29 Jan 2018 16:49:20 -0000 Hi Xueming, >=20 > This patch introduce new TX offloads flag for devices that support > tunnel agnostic checksum and TSO offloads. >=20 > The support from the device is for inner and outer checksums on > IPV4/TCP/UDP and TSO for *any packet with the following format*: >=20 > < some headers > / [optional IPv4/IPv6] / [optional TCP/UDP] / headers> / [optional inner IPv4/IPv6] / [optional TCP/UDP] >=20 > For example the following packets can use this feature: >=20 > 1. eth / ipv4 / udp / VXLAN / ip / tcp > 2. eth / ipv4 / GRE / MPLS / ipv4 / udp So in terms of usage - what is the difference with current TSO types? Konstantin >=20 > Signed-off-by: Xueming Li > --- > lib/librte_ether/rte_ethdev.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) >=20 > diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.= h > index 1a5b4cdc5..d8d08ccb2 100644 > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > @@ -979,6 +979,16 @@ struct rte_eth_conf { > * the same mempool and has refcnt =3D 1. > */ > #define DEV_TX_OFFLOAD_SECURITY 0x00020000 > +/**< Device supports generic tunnel checksum and TSO offloading. > + * Checksum and TSO are done based on following mbuf fields: > + * - Length of each header > + * - Type of outer/inner L3 type, IPv4 or IPv6 > + * - Type of outer/inner L4 type, TCP or UDP. > + * - PKT_TX_TUNNEL_VXLAN implies outer UDP type. > + * - PKT_TX_TCP_SEG implies inner TCP type. > + * Tunnel type is optional except PKT_TX_TUNNEL_VXLAN to hint outer UDP. > + */ > +#define DEV_TX_OFFLOAD_GENERIC_TNL_CKSUM_TSO 0x00040000 >=20 > /* > * If new Tx offload capabilities are defined, they also must be > -- > 2.13.3