From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60078.outbound.protection.outlook.com [40.107.6.78]) by dpdk.org (Postfix) with ESMTP id F2C875A6A; Fri, 2 Nov 2018 01:53:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jOxV3YY8IWrVEdpYd47epu5CDPRbcYmj+87I0E2Jciw=; b=lHofvby/6osbz4AJm/KUj5ySXgX0Mb3hKzCSS/df8QdAwvCrjvJJQ9oVwwL951hwI5IOmSb+DypSVSHYfFQcah4GKsoi14seQRcP678t7PlLjSGRq0KXaDvb6ws3NR5u66QOyAewB9XIT25KYXnA6tBzA+s/k5BDPDoSSjb2q4I= Received: from VI1PR08MB3167.eurprd08.prod.outlook.com (52.133.15.142) by VI1PR08MB0864.eurprd08.prod.outlook.com (10.164.93.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Fri, 2 Nov 2018 00:53:24 +0000 Received: from VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::d46a:1de3:53cd:3e49]) by VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::d46a:1de3:53cd:3e49%4]) with mapi id 15.20.1294.024; Fri, 2 Nov 2018 00:53:23 +0000 From: "Gavin Hu (Arm Technology China)" To: Stephen Hemminger CC: "dev@dpdk.org" , "thomas@monjalon.net" , "olivier.matz@6wind.com" , "chaozhu@linux.vnet.ibm.com" , "bruce.richardson@intel.com" , "konstantin.ananyev@intel.com" , "jerin.jacob@caviumnetworks.com" , Honnappa Nagarahalli , "stable@dpdk.org" Thread-Topic: [PATCH v4 2/2] ring: move the atomic load of head above the loop Thread-Index: AQHUccjZCIJwxa2i/k+ilpsv5CToGqU7LFmAgAB01bU= Date: Fri, 2 Nov 2018 00:53:23 +0000 Message-ID: References: <1541066031-29125-1-git-send-email-gavin.hu@arm.com> <1541066031-29125-3-git-send-email-gavin.hu@arm.com>, <20181101102601.7933b8d1@xeon-e3> In-Reply-To: <20181101102601.7933b8d1@xeon-e3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gavin.Hu@arm.com; x-originating-ip: [40.67.249.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR08MB0864; 6:Mhmrj3Y5VnKYiIb7K09XAdfBFTDYTWjhqhkX7wekGltgBY+RJhYkcSBWKQWcnmzgJXDeLfl4WvzB1VJ2NJqsgjFLssS5IN6HoRaNFOBVEsvehs4ON+vndvfT8s3B8s2d2ycYkYhNdPip8VOy31NgL1L9d33vaC3VIDwUcYSmoZEu7KQk84fLbLBzN/AxpkOzQMpAs8MiTDVwSJBH/IYD0Z4Auyhe9Ek9yzYHYzr4w5dLXbMbo41LpkoXOjjijIP9bUKmkMH2KmnR/YO9i6+MTfgIGZuBoqO34WCo+xjGQ/YsP1vpSI6AcZEWLut1E1LH4oilORODskxLT0xCesGVrGA42hdmM01oq/d2kLt50h+WDYwwKAWbeJbFeGy5UwHdEEctGAEuR3U+gkv2b+p+bQvieVSYf8NqsQEGzz49QNfEvRPY28pE8jD22vgLxOGrWz7KRfVYH64VI5rKZe4G4Q==; 5:zbpFEKDvEuZNoY5As4PtW+Ub6LchW/MQfiq+s8wH9TFQHVY/Vv5P34SRlYXW1zMeYtPGXkElKgCjCMB/N+ibzroQdSWJ/rRvWe8DMIaYVIAJAyXcgyFFxRdbLaehBeRD2nBM7TBYg57ETaRWZf154DF1HUhzYQqRqfcr/Iv7Lgk=; 7:BsCLabPFwUSDYi40Wq7B/K3YJEYDZBOaLuPL8Yt0nXuWGA//2Dl+dD/9pLvZ4Qj61KwUmFlYun/P6Ferx62b22ZOOZHrHlT9pBOSN0+1vjaOYIikzY9v+I6dsluEB2F56JSlBEPewdinUzLfFLx+FQ== x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: 96beea6f-f49a-42d4-1b01-08d6405d9795 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR08MB0864; x-ms-traffictypediagnostic: VI1PR08MB0864: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(104084551191319)(228905959029699)(180628864354917)(111885846020525); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231382)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:VI1PR08MB0864; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB0864; x-forefront-prvs: 08444C7C87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(366004)(39860400002)(136003)(199004)(189003)(40434004)(66066001)(74316002)(446003)(5660300001)(476003)(486006)(11346002)(6916009)(106356001)(186003)(105586002)(25786009)(229853002)(33656002)(55016002)(53936002)(478600001)(9686003)(54896002)(6436002)(6246003)(76176011)(7696005)(3846002)(26005)(256004)(5024004)(14444005)(6116002)(8936002)(86362001)(102836004)(6506007)(68736007)(81166006)(81156014)(4326008)(2900100001)(54906003)(99286004)(72206003)(71200400001)(71190400001)(7736002)(316002)(8676002)(14454004)(97736004)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB0864; H:VI1PR08MB3167.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: KvrnFewBXySsdoyI37VZ8BrNGiCqnpO7bH9VRhsk7QB8LK+5OjDYan5fzt3fLFzlInap30Mts72e5hDVw9YvZf+YQitkv8j7mRPas8/88Z/rV/TEte7XMm876FdgKRW8j79esecAeDZyIcT5PAfzrBwMvqsejodnZM4eJbgPGIx++ACOrec9+cAKe1lgN1wozNU3worSc1v0lFyzbZ4bk5PnlbDWZwILKABSf9g1I3gzoFjTbM5QSiXkfW3URAAa/XNGVnVIiQc5OdXPoDlxlNUCtvuOcLf+P6Bma8TpzwbETnTQI0IniXIvV5JzwDH1TPN3B4iD4MpiKqRLBnwEvThBahr4wMumJtLinRdYaX8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96beea6f-f49a-42d4-1b01-08d6405d9795 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 00:53:23.7540 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB0864 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v4 2/2] ring: move the atomic load of head above the loop 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: Fri, 02 Nov 2018 00:53:26 -0000 SGkgU3RlcGhlbiwNCg0KVGhlcmUgaXMgbm8gYXBpIGNoYW5nZXMsIGJ1dCB0aGlzIGlzIGEgc2ln bmlmaWNhbnQgY2hhbmdlIGFzIHJpb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