From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8B19C1B2DF for ; Thu, 16 Nov 2017 11:54:38 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Nov 2017 02:54:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,402,1505804400"; d="scan'208";a="2469117" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by FMSMGA003.fm.intel.com with ESMTP; 16 Nov 2017 02:54:35 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.67]) by IRSMSX154.ger.corp.intel.com ([169.254.12.83]) with mapi id 14.03.0319.002; Thu, 16 Nov 2017 10:54:35 +0000 From: "Ananyev, Konstantin" To: Olivier MATZ , "Hanoch Haim (hhaim)" CC: Ilya Matveychikov , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3] mbuf: cleanup rte_pktmbuf_lastseg(), fix atomic usage Thread-Index: AQHTXgLbuPV24Bn4qEG4bjrmfgXN36MVY2yAgABPjoCAASKSIA== Date: Thu, 16 Nov 2017 10:54:34 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772585FABD995@irsmsx105.ger.corp.intel.com> References: <20171115091413.27119-1-hhaim@cisco.com> <1D98684F-B8A9-4037-8534-0D4E3A1FD34C@gmail.com> <20171115173058.mrkrv3usbl5sfw3h@platinum> In-Reply-To: <20171115173058.mrkrv3usbl5sfw3h@platinum> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiN2QyZmJjNDctM2IwMS00NGYzLWEzMWUtODI4YjZiOWY4NzA4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImgyUHhjMW56RzVpbHdoSnV6ZDFcL0JpU0NpZWFBU0g3cHJRMG5ObWpKYU84PSJ9 x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 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 v3] mbuf: cleanup rte_pktmbuf_lastseg(), fix atomic usage 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: Thu, 16 Nov 2017 10:54:39 -0000 SGkgT2xpdmllciwNCg0KPiBJIGFncmVlIHdpdGggS29uc3RhbnRpbidzIGNvbW1lbnQgZG9uZSBp biBhbm90aGVyIHRocmVhZCBbMV06DQo+IA0KPiAgICcnJw0KPiAgIFRoYXQgd291bGQgY2F1c2Ug ZXh0cmEgcmVhZDsgY21wIChhbmQgcG9zc2libGUgc2xvd2Rvd24pIGZvciBhdG9taWMgcmVmY250 Lg0KPiAgIElmIHRoYXQgcmVhbGx5IG5lZWQgdG8gYmUgZml4ZWQgLSBwcm9iYWJseSB3ZSBuZWVk IHRvIGludHJvZHVjZSBhIG5ldyBmdW5jdGlvbg0KPiAgIHRoYXQgd291bGQgZG8gdXBkYXRlIHdp dGhvdXQgdHJ5aW5nIHRvIHJlYWQgcmVmY3RuIGZpcnN0IC0gcnRlX21idWZfcmVmY250X3VwZGF0 ZV9ibGluZCgpIG9yIHNvLg0KPiAgICcnJw0KPiANCj4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