From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 344A12BFA for ; Thu, 27 Dec 2018 07:58:10 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wBR6uFFR024804; Wed, 26 Dec 2018 22:58:07 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=pfpt0818; bh=rookQ2ftdO3dSouFOkVDYlv5l43OGb+VAjNiYrFvjZA=; b=QsXSH3JRLMPSvYHHp/lCJqAYC8T9P40vGuqbZCFUH8M/e9/kjJcwWqkIXh6tSPc2kfMc oLjhy8ZmEGYWfYzRGxMAK1H/AuDzX+PF4QRuyQbbWuwf1omQTGCiAj4VzuM0LaHuNmKt M3EzqBwsCrNF4SLPCE22VZUqFXFvZ30BTEAoTh7RlJJcSIBfWGOVG8mFc98XdM3mliSk dnhBeU7fwWsgniB2caFFxikWl7hPPYRTEZAjmi4Fkp9RgF6WceVBefcuEZ96r5oj/17L Nt+t5zpFVrZOTU8znf36ZORq3nU2IlEDqmyfsZMopgPsqfcurVIIiMT7UuxnVaL3XjS9 lA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2pm2ysx05y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 26 Dec 2018 22:58:07 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 26 Dec 2018 22:58:06 -0800 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (104.47.40.54) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 26 Dec 2018 22:58:05 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rookQ2ftdO3dSouFOkVDYlv5l43OGb+VAjNiYrFvjZA=; b=rTeICic2xzpT0XrkgW1QDjpSgu82BB6pI2XJV7jd8fHv37iTjazpgiSMOp1nwMj3utysbHQnhQCpthh0+SBrC8sBOAut8/ejqbyTjMMaZU0Ea5YdCyv0MT2eZO7q/aMig8w0tSftyTJB30Tzj5v5QB8N/byl7Tfpo3VrFRIbwSE= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2936.namprd18.prod.outlook.com (20.179.59.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1471.20; Thu, 27 Dec 2018 06:58:03 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::1d21:75dc:c1d9:65f1]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::1d21:75dc:c1d9:65f1%2]) with mapi id 15.20.1471.019; Thu, 27 Dec 2018 06:58:03 +0000 From: Jerin Jacob Kollanukkaran To: "gavin.hu@arm.com" , "dev@dpdk.org" CC: "david.marchand@redhat.com" , "chaozhu@linux.vnet.ibm.com" , "nd@arm.com" , "bruce.richardson@intel.com" , "thomas@monjalon.net" , "joyce.kong@arm.com" , "hemant.agrawal@nxp.com" , "stephen@networkplumber.org" , "Honnappa.Nagarahalli@arm.com" Thread-Topic: [EXT] [PATCH v3 6/6] spinlock: ticket based to improve fairness Thread-Index: AQHUnZqomFBNE9TEfU6Nc1HRrILB+6WSJ3OA Date: Thu, 27 Dec 2018 06:58:02 +0000 Message-ID: <47217c425060db295626c741b9e83f17b63a39bd.camel@marvell.com> References: <20181227041349.3058-1-gavin.hu@arm.com> <20181227041349.3058-7-gavin.hu@arm.com> In-Reply-To: <20181227041349.3058-7-gavin.hu@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [106.208.111.21] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR18MB2936; 20:vz0HzTYImrzt0NYhLs910MUSMX7VEYr27CbeYGezRwmgjKEuTifpA5AuvG8RBCae3YN73Dchkk6jMnqu2FbrJGC3P6jEwEkNb91J/mg1ZiIV6w45O/yzxOJb7taqM19FNLQNqQuCHi7XGfS6+VVRTPxFlelP+cEcNBUYLRaGvZY= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 4c436b62-397f-4888-3528-08d66bc8a549 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:BYAPR18MB2936; x-ms-traffictypediagnostic: BYAPR18MB2936: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231475)(944501520)(52105112)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:BYAPR18MB2936; BCL:0; PCL:0; RULEID:; SRVR:BYAPR18MB2936; x-forefront-prvs: 0899B47777 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(136003)(376002)(396003)(366004)(39850400004)(189003)(199004)(110136005)(54906003)(476003)(486006)(14454004)(76176011)(446003)(11346002)(26005)(7736002)(102836004)(6506007)(186003)(305945005)(106356001)(105586002)(478600001)(316002)(2616005)(81166006)(81156014)(2501003)(6486002)(6436002)(229853002)(8676002)(966005)(14444005)(256004)(8936002)(99286004)(3846002)(6116002)(36756003)(6246003)(68736007)(4001150100001)(86362001)(6306002)(53936002)(97736004)(25786009)(2906002)(4326008)(7416002)(5660300001)(6512007)(71190400001)(66066001)(78486014)(71200400001)(118296001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2936; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: w6BL6SJJyRmn0PVwiafjNGNh3zvcGvBHRofR0Jre6B1i7fBodRTNjrmqK5kJvzn59MQLQOs+JcXqWSz6WFjcDMH3Hem8xnCXzZk/pvM2OBeAGxjQpUjWdgOL7rKSh8VDuVJSAFTNgUI8qVpDebfEYyCF8hWwThKLJXBYgpzXZefGQJMI1QW5mCtKsIeSSLmlgtPt8ybZnOJuE3gJ34N1sLs06S6Et4ofwKagtfG8o4GFKivTWDS0IPdPGPmLPGt21wCrz8+fCPCYAk//7nrW5wuzBh6YVe/i1lqI8q+HkGS6xUjqwvlQa8m9c5cAkiza spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <6B1A82EE6A1BDA40AC8CAA939E863924@namprd18.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 4c436b62-397f-4888-3528-08d66bc8a549 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Dec 2018 06:58:02.8432 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2936 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-12-27_05:, , signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=949 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812270065 Subject: Re: [dpdk-dev] [EXT] [PATCH v3 6/6] spinlock: 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: , X-List-Received-Date: Thu, 27 Dec 2018 06:58:11 -0000 T24gVGh1LCAyMDE4LTEyLTI3IGF0IDEyOjEzICswODAwLCBHYXZpbiBIdSB3cm90ZToNCj4gLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLQ0KPiAtLS0NCj4gRnJvbTogSm95Y2UgS29uZyA8am95Y2Uua29uZ0Bhcm0uY29tPg0K PiANCj4gVGhlIG9sZCBpbXBsZW1lbnRhdGlvbiBpcyB1bmZhaXIsIHNvbWUgdGhyZWFkcyBtYXkg dGFrZSBsb2Nrcw0KPiBhZ2dyZXNzaXZlbHkNCg0KSSB0aGluaywgb25lIGlzc3VlIGhlcmUgaXMg eDg2IGFuZCBwcGMgZm9sbG93cyB0cmFkaXRpb25hbCBzcGlubG9jayBhbmQNCmFybTY0IHdpbGwg YmUgZm9sbG93aW5nIHRpY2tldCBsb2NrIGZvciBzcGlubG9jayBpbXBsZW1lbnRhdGlvbi4NClRo aXMgd291bGQgY2hhbmdlIGFwcGxpY2F0aW9uIGJlaGF2aW91ciBvbiBhcm02NCBjb21wYXJlZCB0 byB4ODYgYW5kDQpwcGMuDQoNCkhvdyBhYm91dCBoYXZpbmcgYSBzZXBhcmF0ZSBBUEkgZm9yIHRp Y2t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