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 8A9ABA0096 for ; Fri, 15 Mar 2019 07:58:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 684234CA6; Fri, 15 Mar 2019 07:58:15 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80071.outbound.protection.outlook.com [40.107.8.71]) by dpdk.org (Postfix) with ESMTP id F25B711A4 for ; Fri, 15 Mar 2019 07:58:13 +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=KE37G3AIgfETIGACSTh9aWnZzEzkPMaxlL+MJG+o1p0=; b=a9pmykz5VGZ59ULfwhUaUYxy3jjeEUgyyVdaovjyvzW09gpVmt8WHfN7hlETL9IWKV0iArsp//AFsoXeVy83NhVPFeqKTYqkzW+asPYCyEyKgkavqfQfwKu56f5ac0gEmZq2vDBOsDwwofqnmBk3sNJMKjO7JbO0H/JRBussyqg= Received: from AM0PR08MB3587.eurprd08.prod.outlook.com (20.177.110.157) by AM0SPR01MB16.eurprd08.prod.outlook.com (52.134.126.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Fri, 15 Mar 2019 06:58:12 +0000 Received: from AM0PR08MB3587.eurprd08.prod.outlook.com ([fe80::15ac:4778:f687:3e6c]) by AM0PR08MB3587.eurprd08.prod.outlook.com ([fe80::15ac:4778:f687:3e6c%3]) with mapi id 15.20.1709.011; Fri, 15 Mar 2019 06:58:12 +0000 From: "Joyce Kong (Arm Technology China)" To: "jerinj@marvell.com" , "dev@dpdk.org" CC: "stephen@networkplumber.org" , Honnappa Nagarahalli , "thomas@monjalon.net" , nd , "jerin.jacob@caviumnetworks.com" , "Gavin Hu (Arm Technology China)" Thread-Topic: [dpdk-dev] [PATCH v5 1/2] eal/ticketlock: ticket based to improve fairness Thread-Index: AQHU187Q6OFJtGP6QUSjO2J1+EnqFKYJtVkAgAKOvRA= Date: Fri, 15 Mar 2019 06:58:12 +0000 Message-ID: References: <1550573288-148384-2-git-send-email-joyce.kong@arm.com> <1552283564-113385-2-git-send-email-joyce.kong@arm.com> <2d837f0c69c6255abe8c113cf89cc2b0414ca202.camel@marvell.com> In-Reply-To: <2d837f0c69c6255abe8c113cf89cc2b0414ca202.camel@marvell.com> 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=Joyce.Kong@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c6498be-d8fe-414f-28a8-08d6a913975a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0SPR01MB16; x-ms-traffictypediagnostic: AM0SPR01MB16: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 09778E995A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(396003)(346002)(39850400004)(136003)(189003)(199004)(13464003)(8936002)(6436002)(97736004)(102836004)(6116002)(5660300002)(2906002)(2501003)(68736007)(66066001)(3846002)(486006)(76176011)(229853002)(186003)(11346002)(6506007)(53546011)(55236004)(71200400001)(71190400001)(26005)(476003)(7696005)(9686003)(25786009)(72206003)(478600001)(55016002)(14444005)(86362001)(446003)(256004)(74316002)(106356001)(305945005)(4326008)(7736002)(6246003)(99286004)(316002)(110136005)(54906003)(52536014)(105586002)(81156014)(81166006)(8676002)(33656002)(53936002)(14454004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0SPR01MB16; H:AM0PR08MB3587.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: z4lvekQ2MGSQnkQMwi52LADAcsKuvIETANtT43OLCEjwM+dDxuxZnmIqrZNol9neJ4gOi1i7gOsiWWP+xl2m5KA3riDRBacLQTfZ8DaVQGF52fUeKAckyzxyFCfQ+gAEcleZpPs//9v1iK7JJU86DlZz3efzFFxOg726r2pYPctKwioD9LGTsxScyc7N/wMU+jRDYzaEnnShplIlKp6aq/IfGtRQ8cTw08i6h/OCw3slulbJzOIk+Pub/Qqwoy+NUlkyhiBwFFdtCVvq5yuDHXubHWJ4wTa/lB+VXDA6ytmHURZc8kV3syfVTDBoJs+TQCZRTRG0Y4OWcRhObbH9mipqFaBzW00dsY5ZRYdbNRYfVVib+1rCL7UmBga9sGQrXPBeXQNA2/RfPIeAHXTGq1yO7alYzBOZfg/Xqc21I/E= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c6498be-d8fe-414f-28a8-08d6a913975a X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2019 06:58:12.7224 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0SPR01MB16 Subject: Re: [dpdk-dev] [PATCH v5 1/2] eal/ticketlock: ticket based to improve fairness 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" Message-ID: <20190315065812.PnXbyc3qkNjUyJx_nPMZP6wRaF9unaqDJ-MpXHewkIA@z> PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBKZXJpbiBKYWNvYiBLb2xsYW51 a2thcmFuIDxqZXJpbmpAbWFydmVsbC5jb20+DQo+IFNlbnQ6IFdlZG5lc2RheSwgTWFyY2ggMTMs IDIwMTkgMTE6MzYgUE0NCj4gVG86IEpveWNlIEtvbmcgKEFybSBUZWNobm9sb2d5IENoaW5hKSA8 Sm95Y2UuS29uZ0Bhcm0uY29tPjsNCj4gZGV2QGRwZGsub3JnDQo+IENjOiBzdGVwaGVuQG5ldHdv cmtwbHVtYmVyLm9yZzsgSG9ubmFwcGEgTmFnYXJhaGFsbGkNCj4gPEhvbm5hcHBhLk5hZ2FyYWhh bGxpQGFybS5jb20+OyB0aG9tYXNAbW9uamFsb24ubmV0OyBuZA0KPiA8bmRAYXJtLmNvbT47IGpl cmluLmphY29iQGNhdml1bW5ldHdvcmtzLmNvbTsgR2F2aW4gSHUgKEFybQ0KPiBUZWNobm9sb2d5 IENoaW5hKSA8R2F2aW4uSHVAYXJtLmNvbT4NCj4gU3ViamVjdDogUmU6IFtkcGRrLWRldl0gW1BB VENIIHY1IDEvMl0gZWFsL3RpY2tldGxvY2s6IHRpY2tldCBiYXNlZCB0byBpbXByb3ZlDQo+IGZh aXJuZXNzDQo+IA0KPiBPbiBNb24sIDIwMTktMDMtMTEgYXQgMTM6NTIgKzA4MDAsIEpveWNlIEtv bmcgd3JvdGU6DQo+ID4gVGhlIHNwaW5sb2NrIGltcGxlbWVudGF0aW9uIGlzIHVuZmFpciwgc29t ZSB0aHJlYWRzIG1heSB0YWtlIGxvY2tzDQo+ID4gYWdncmVzc2l2ZWx5IHdoaWxlIGxlYXZpbmcg dGhlIG90aGVyIHRocmVhZH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