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 7E6E4A0096 for ; Fri, 15 Mar 2019 07:57:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D83E3572; Fri, 15 Mar 2019 07:57:38 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80051.outbound.protection.outlook.com [40.107.8.51]) by dpdk.org (Postfix) with ESMTP id 533992C17 for ; Fri, 15 Mar 2019 07:57:36 +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=3WJ50euGctQEZOEOP6c9lKpMMDaKdNxDz8fpLmB4JTI=; b=IRJL3ubbVgel2+rIJ1XdNNYSqdL4shfQaaN3uRD/T3qI0cDfqrDLIOg+wF1iEgOmq+7Pu68W9TUuZXwPTPzIatEX0JWr6fnS5siHLQ92077jzcH23woLkpp78a/ZMZKh09a2cRI/QJF4VWLkZkV8YQK5XHbK37RyPBSn/dcaGk0= 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:57:35 +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:57:35 +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+EnqFKYJUi4AgALx8hA= Date: Fri, 15 Mar 2019 06:57:35 +0000 Message-ID: References: <1550573288-148384-2-git-send-email-joyce.kong@arm.com> <1552283564-113385-2-git-send-email-joyce.kong@arm.com> <21d2ebe3a220b70561d575372d4efd20f53396b1.camel@marvell.com> In-Reply-To: <21d2ebe3a220b70561d575372d4efd20f53396b1.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: 6dbbae4b-824c-4f0c-caa7-08d6a9138109 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)(39860400002)(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: IgeqNlNiHGKRIf8ztDoqhhlmkKvScEAKbVjfJ8XMXFHAG4Ebi+PL1+wb6uSPhojk5ZxzpE1GYl+GMkj5AMFmhe4eovuu/hrAbTuSUTSfmdAioKiuVCSMeQH1C8H7YOLS0nvUGZZ9uvf1/WR82WKV451rBRPT9VEFmXRhp80GRMu8J9xpb5t7K+LvM1I9EAkrwyMVL43bC0dPqNh8cP3fd/z0ECFSujHlPMW3tyPKOeGCvDDHmoJexk2Hbv9oUmTh+O6EVYxrm0JazilwDfph9Pg1oSAzuOE/XGunmi/x48CE78cYT5ZclhcqCtfbLwtoiyxoLNt6MJReNIVrNzSIG69zJgYpdJjX3L5QYWcgKeuO9sLFdkM3NKzyOdRHMeHuULogBlSfi8v845XHwqj1KP2cGBzNHm4qXbMQljpqDsY= 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: 6dbbae4b-824c-4f0c-caa7-08d6a9138109 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2019 06:57:35.2638 (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: <20190315065735.V1m7OWlYyOY6FaINJpbVtp6w5QxQefoc_2wOeRZjXPY@z> PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBKZXJpbiBKYWNvYiBLb2xsYW51 a2thcmFuIDxqZXJpbmpAbWFydmVsbC5jb20+DQo+IFNlbnQ6IFdlZG5lc2RheSwgTWFyY2ggMTMs IDIwMTkgNTo0MSBQTQ0KPiBUbzogSm95Y2UgS29uZyAoQXJtIFRlY2hub2xvZ3kgQ2hpbmEpIDxK b3ljZS5Lb25nQGFybS5jb20+Ow0KPiBkZXZAZHBkay5vcmcNCj4gQ2M6IHN0ZXBoZW5AbmV0d29y a3BsdW1iZXIub3JnOyBIb25uYXBwYSBOYWdhcmFoYWxsaQ0KPiA8SG9ubmFwcGEuTmFnYXJhaGFs bGlAYXJtLmNvbT47IHRob21hc0Btb25qYWxvbi5uZXQ7IG5kDQo+IDxuZEBhcm0uY29tPjsgamVy aW4uamFjb2JAY2F2aXVtbmV0d29ya3MuY29tOyBHYXZpbiBIdSAoQXJtDQo+IFRlY2hub2xvZ3kg Q2hpbmEpIDxHYXZpbi5IdUBhcm0uY29tPg0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFU Q0ggdjUgMS8yXSBlYWwvdGlja2V0bG9jazogdGlja2V0IGJhc2VkIHRvIGltcHJvdmUNCj4gZmFp cm5lc3MNCj4gDQo+IE9uIE1vbiwgMjAxOS0wMy0xMSBhdCAxMzo1MiArMDgwMCwgSm95Y2UgS29u ZyB3cm90ZToNCj4gPiBUaGUgc3BpbmxvY2sgaW1wbGVtZW50YXRpb24gaXMgdW5mYWlyLCBzb21l IHRocmVhZHMgbWF5IHRha2UgbG9ja3MNCj4gPiBhZ2dyZXNzaXZlbHkgd2hpbGUgbGVhdmluZyB0 a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