From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) by dpdk.org (Postfix) with ESMTP id 7822B378B for ; Wed, 15 Nov 2017 13:46:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3806; q=dns/txt; s=iport; t=1510749978; x=1511959578; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=5Yb2/FhHnoF2xwp8errp0kCujpEiRYtEclXmJqYNM/8=; b=a+Kcism9cyZxxE9YI129ehlnRlDs5O2IZTzmS1eCkOaNNHYqlsYRSIFW TGNL1PeCmgdVceuD6GKSVsYsA6QRDlxX9drimY+/yUSiE3YOcdkqPNbf6 leFX3KdEFWtLwsbAsXTvU181iuDyJZdbI+FUQHa6JCoe5mA61ze7G3kre c=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CpAAA7Ngxa/4UNJK1dGQEBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYM2gVInB4N4ih+PHoF9iFuJDoRxghEKhTsCGoRxPxgBAQEBAQE?= =?us-ascii?q?BAQFrKIUeAQEBAQIBIwQNRQUHBAIBCA4DBAEBAQICIwMCAgIfERQBCAgCBA4FC?= =?us-ascii?q?IoEAw0IqBKBbTqHQQ2DSQEBAQEBAQEBAQEBAQEBAQEBAQEBAR2BD4IlggeBVYF?= =?us-ascii?q?pgh2BDYJrgkSCfoJjBYo0l0Y9ApALhHCCHooOhyFIjGCIWAIRGQGBOAEfOIF0e?= =?us-ascii?q?hWDLYJcHIFnd4dQAYEQAQEB?= X-IronPort-AV: E=Sophos;i="5.44,399,1505779200"; d="scan'208";a="319057546" Received: from alln-core-11.cisco.com ([173.36.13.133]) by rcdn-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Nov 2017 12:46:17 +0000 Received: from XCH-RTP-016.cisco.com (xch-rtp-016.cisco.com [64.101.220.156]) by alln-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id vAFCkGoV012382 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 15 Nov 2017 12:46:16 GMT Received: from xch-rtp-017.cisco.com (64.101.220.157) by XCH-RTP-016.cisco.com (64.101.220.156) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 15 Nov 2017 07:46:16 -0500 Received: from xch-rtp-017.cisco.com ([64.101.220.157]) by XCH-RTP-017.cisco.com ([64.101.220.157]) with mapi id 15.00.1320.000; Wed, 15 Nov 2017 07:46:16 -0500 From: "Hanoch Haim (hhaim)" To: Ilya Matveychikov CC: "dev@dpdk.org" , Olivier MATZ Thread-Topic: [dpdk-dev] [PATCH v3] mbuf: cleanup rte_pktmbuf_lastseg(), fix atomic usage Thread-Index: AQHTXg+5U6hJZK650Ei3mGGQZg+VYg== Date: Wed, 15 Nov 2017 12:46:15 +0000 Message-ID: References: <20171115091413.27119-1-hhaim@cisco.com> <1D98684F-B8A9-4037-8534-0D4E3A1FD34C@gmail.com> In-Reply-To: <1D98684F-B8A9-4037-8534-0D4E3A1FD34C@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [64.103.125.33] 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: Wed, 15 Nov 2017 12:46:18 -0000 K09saXZlciwgDQpJbGlhLCBJIGFzc3VtZSB0aGVyZSBpcyBhIHJlYXNvbiB3aHkgT2xpdmVyIGRp ZCB0aGF0LCBJI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