From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 502C8A046B for ; Mon, 24 Jun 2019 14:59:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 437991BEB5; Mon, 24 Jun 2019 14:59:49 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 6D19A1BEAB for ; Mon, 24 Jun 2019 14:59:47 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jun 2019 05:59:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,412,1557212400"; d="scan'208";a="184125578" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by fmsmga004.fm.intel.com with ESMTP; 24 Jun 2019 05:59:45 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.143]) by IRSMSX102.ger.corp.intel.com ([169.254.2.159]) with mapi id 14.03.0439.000; Mon, 24 Jun 2019 13:59:44 +0100 From: "Ananyev, Konstantin" To: Andrew Rybchenko , Ivan Malov , Olivier Matz CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] mbuf: outer offsets must be zero for non-tunnel packets Thread-Index: AQHVKC3hvBnZDp+JrkCKvDTU/hNE4KaqyMcQ Date: Mon, 24 Jun 2019 12:59:43 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725801689E3F8B@IRSMSX104.ger.corp.intel.com> References: <20190412150542.12026-1-ivan.malov@oktetlabs.ru> <20190621103419.11626-1-ivan.malov@oktetlabs.ru> <2601191342CEEE43887BDE71AB97725801689E31B2@IRSMSX104.ger.corp.intel.com> <4462101f-5250-12f8-db88-0c3af619017a@solarflare.com> In-Reply-To: <4462101f-5250-12f8-db88-0c3af619017a@solarflare.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTBjNTk3YTAtM2Y3ZC00ZTVlLTg3ZGItODE4MjlmYjE0MzUzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNTFKc0ExcWtNVmY4RDg3NjUwb0RQbXBveXN5QWN5Qk05QlJcL1pLYTQza1dOK0Q3T25sYndvSHduRXk2RmZsbGkifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] mbuf: outer offsets must be zero for non-tunnel packets 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgQW5kcmV3LA0KDQo+IEhpIEtvbnN0YW50aW4sDQo+IA0KPiBPbiA2LzIxLzE5IDI6MTAgUE0s IEFuYW55ZXYsIEtvbnN0YW50aW4gd3JvdGU6DQo+IEhpIEl2YW4sDQo+IA0KPiBNYWtlIHN1cmUg dGhhdCBvdXRlciBMMiBhbmQgTDMgaGVhZGVyIGxlbmd0aCBmaWVsZHMgYXJlDQo+IGVxdWFsIHRv I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