From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40044.outbound.protection.outlook.com [40.107.4.44]) by dpdk.org (Postfix) with ESMTP id BC9331B3D7 for ; Fri, 12 Apr 2019 22:21:10 +0200 (CEST) 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=PSObT+URMHZAybBNp/rLxVu+r/5/qMEHCJKIBl/6/90=; b=ObpBIxOkQx8/8VImlfzWoVjA8H+i0thkICxJa85dvxNRI/k4H5AcZyhQHZ9xjhhpKZTirI39SrFVYb1yZcrtGvMXSsYg+ul/iCXnFIcwTLn+6Cc8LI52k8yXyojnePC+ova3DwPuHqAJKB2GXlk6Tc05ESFLA+I0enxjOWEnyDc= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.152) by VE1PR08MB4701.eurprd08.prod.outlook.com (10.255.114.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.18; Fri, 12 Apr 2019 20:21:08 +0000 Received: from VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::e0ae:ecad:ec5:8177]) by VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::e0ae:ecad:ec5:8177%2]) with mapi id 15.20.1792.016; Fri, 12 Apr 2019 20:21:08 +0000 From: Honnappa Nagarahalli To: "paulmck@linux.ibm.com" CC: "konstantin.ananyev@intel.com" , "stephen@networkplumber.org" , "marko.kovacevic@intel.com" , "dev@dpdk.org" , "Gavin Hu (Arm Technology China)" , Dharmik Thakkar , Malvika Gupta , nd , nd Thread-Topic: [PATCH v4 1/3] rcu: add RCU library supporting QSBR mechanism Thread-Index: AQHU78lDsy4W0sThdUi8p6MItiPVFqY2RtWAgADPY4CAANKj8A== Date: Fri, 12 Apr 2019 20:21:08 +0000 Message-ID: References: <20181122033055.3431-1-honnappa.nagarahalli@arm.com> <20190410112006.21644-1-honnappa.nagarahalli@arm.com> <20190410112006.21644-2-honnappa.nagarahalli@arm.com> <20190410181432.GO14111@linux.ibm.com> <20190411152613.GZ14111@linux.ibm.com> In-Reply-To: <20190411152613.GZ14111@linux.ibm.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=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1da5ed42-b893-4a3e-0bfa-08d6bf84661c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VE1PR08MB4701; x-ms-traffictypediagnostic: VE1PR08MB4701: nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(366004)(376002)(39860400002)(136003)(189003)(199004)(229853002)(11346002)(106356001)(446003)(26005)(7696005)(3846002)(97736004)(186003)(305945005)(81156014)(68736007)(486006)(81166006)(86362001)(476003)(2351001)(76176011)(6506007)(71200400001)(71190400001)(105586002)(1730700003)(93886005)(72206003)(256004)(8676002)(478600001)(102836004)(14454004)(6436002)(5640700003)(5660300002)(33656002)(14444005)(7736002)(74316002)(316002)(6916009)(6246003)(4326008)(55016002)(2906002)(66066001)(2501003)(30864003)(8936002)(54906003)(6116002)(99286004)(53936002)(53946003)(9686003)(52536014)(25786009)(579004); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4701; H:VE1PR08MB5149.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: Zn3L6oPKogdeMaaRzYOIjrLAwsqbbLUsvL1sTpD00MrB/evMYMIjRIqjq5sroc9EIIj0Uzn+gIZipOTtDq5yQae4oSZG26HdlGnIsi+n9O2QQEuzZJ901g1/+SwOB3UgJPXo8EJ4BTp2K7d1OL5KIAde4JZs0OH3E/Zpth/HpPEhytKhGZzmI/oMsPau4ppafGA3HGQGGaDK1IXxcr6RW2848keUGwA5fS49n3GZ9dR9+kCTYj9VHjoYoTIMC6AETmvWf3QwdQ9xuCLzU64J4ocJ0DjtI1L4y+YpcOJ3eE5gySBwty0uRRp0zRzqTW00fndrei0NdkfhZQyUZ2jq3QNA7/80PrlcdrsuruPjLsRGBHdUiSbZao+pAD0qgoGj3/6nGFS/JXeRqFuNH6NeCMQQLVb8hcvBHXI+ORXGjDE= 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: 1da5ed42-b893-4a3e-0bfa-08d6bf84661c X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 20:21:08.7875 (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: VE1PR08MB4701 Subject: Re: [dpdk-dev] [PATCH v4 1/3] rcu: add RCU library supporting QSBR mechanism 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, 12 Apr 2019 20:21:11 -0000 PHNuaXA+DQoNCj4gPiA+DQo+ID4gPiBPbiBXZWQsIEFwciAxMCwgMjAxOSBhdCAwNjoyMDowNEFN IC0wNTAw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HNvIHVubGVzcyBD UFUgY29yZSBjbG9jayByYXRlcyBtYW5hZ2UgdG8gZ28gdXAgYW5vdGhlciBvcmRlciBvZg0KPiBt YWduaXR1ZGUsIHdlIHNob3VsZCBiZSBqdXN0IGZpbmUuDQo+IA0KPiBGYW1vdXMgbGFzdCB3b3Jk cyEgIDstKQ0KPiANCj4gPiA+IE1vcmUgc2VyaW91c2x5LCBhIGNvbW1lbnQgd2FybmluZyBwZW9w bGUgbm90IHRvIG1ha2UgdGhlIGNvdW50ZXINCj4gYmUNCj4gPiA+IDMyIGJpdHMgaXMgaW4gb3Jk ZXIuDQo+ID4gQWdyZWUsIEkgd2lsbCBhZGQgaXQgaW4gdGhlIHN0cnVjdHVyZSBkZWZpbml0aW9u Lg0KPiANCj4gU291bmRzIGdvb2QhDQpEb25lIGluIFY1DQoNCjxzbmlwPg0KDQo= 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 D79EDA0096 for ; Fri, 12 Apr 2019 22:21:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A34C01B3E0; Fri, 12 Apr 2019 22:21:15 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40044.outbound.protection.outlook.com [40.107.4.44]) by dpdk.org (Postfix) with ESMTP id BC9331B3D7 for ; Fri, 12 Apr 2019 22:21:10 +0200 (CEST) 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=PSObT+URMHZAybBNp/rLxVu+r/5/qMEHCJKIBl/6/90=; b=ObpBIxOkQx8/8VImlfzWoVjA8H+i0thkICxJa85dvxNRI/k4H5AcZyhQHZ9xjhhpKZTirI39SrFVYb1yZcrtGvMXSsYg+ul/iCXnFIcwTLn+6Cc8LI52k8yXyojnePC+ova3DwPuHqAJKB2GXlk6Tc05ESFLA+I0enxjOWEnyDc= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.152) by VE1PR08MB4701.eurprd08.prod.outlook.com (10.255.114.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.18; Fri, 12 Apr 2019 20:21:08 +0000 Received: from VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::e0ae:ecad:ec5:8177]) by VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::e0ae:ecad:ec5:8177%2]) with mapi id 15.20.1792.016; Fri, 12 Apr 2019 20:21:08 +0000 From: Honnappa Nagarahalli To: "paulmck@linux.ibm.com" CC: "konstantin.ananyev@intel.com" , "stephen@networkplumber.org" , "marko.kovacevic@intel.com" , "dev@dpdk.org" , "Gavin Hu (Arm Technology China)" , Dharmik Thakkar , Malvika Gupta , nd , nd Thread-Topic: [PATCH v4 1/3] rcu: add RCU library supporting QSBR mechanism Thread-Index: AQHU78lDsy4W0sThdUi8p6MItiPVFqY2RtWAgADPY4CAANKj8A== Date: Fri, 12 Apr 2019 20:21:08 +0000 Message-ID: References: <20181122033055.3431-1-honnappa.nagarahalli@arm.com> <20190410112006.21644-1-honnappa.nagarahalli@arm.com> <20190410112006.21644-2-honnappa.nagarahalli@arm.com> <20190410181432.GO14111@linux.ibm.com> <20190411152613.GZ14111@linux.ibm.com> In-Reply-To: <20190411152613.GZ14111@linux.ibm.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=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1da5ed42-b893-4a3e-0bfa-08d6bf84661c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VE1PR08MB4701; x-ms-traffictypediagnostic: VE1PR08MB4701: nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(366004)(376002)(39860400002)(136003)(189003)(199004)(229853002)(11346002)(106356001)(446003)(26005)(7696005)(3846002)(97736004)(186003)(305945005)(81156014)(68736007)(486006)(81166006)(86362001)(476003)(2351001)(76176011)(6506007)(71200400001)(71190400001)(105586002)(1730700003)(93886005)(72206003)(256004)(8676002)(478600001)(102836004)(14454004)(6436002)(5640700003)(5660300002)(33656002)(14444005)(7736002)(74316002)(316002)(6916009)(6246003)(4326008)(55016002)(2906002)(66066001)(2501003)(30864003)(8936002)(54906003)(6116002)(99286004)(53936002)(53946003)(9686003)(52536014)(25786009)(579004); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4701; H:VE1PR08MB5149.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: Zn3L6oPKogdeMaaRzYOIjrLAwsqbbLUsvL1sTpD00MrB/evMYMIjRIqjq5sroc9EIIj0Uzn+gIZipOTtDq5yQae4oSZG26HdlGnIsi+n9O2QQEuzZJ901g1/+SwOB3UgJPXo8EJ4BTp2K7d1OL5KIAde4JZs0OH3E/Zpth/HpPEhytKhGZzmI/oMsPau4ppafGA3HGQGGaDK1IXxcr6RW2848keUGwA5fS49n3GZ9dR9+kCTYj9VHjoYoTIMC6AETmvWf3QwdQ9xuCLzU64J4ocJ0DjtI1L4y+YpcOJ3eE5gySBwty0uRRp0zRzqTW00fndrei0NdkfhZQyUZ2jq3QNA7/80PrlcdrsuruPjLsRGBHdUiSbZao+pAD0qgoGj3/6nGFS/JXeRqFuNH6NeCMQQLVb8hcvBHXI+ORXGjDE= 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: 1da5ed42-b893-4a3e-0bfa-08d6bf84661c X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 20:21:08.7875 (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: VE1PR08MB4701 Subject: Re: [dpdk-dev] [PATCH v4 1/3] rcu: add RCU library supporting QSBR mechanism 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: <20190412202108.1l1cURvOaRe8KVGoiVnP-vAOe5HPF4rKdXZHj2JGnBw@z> PHNuaXA+DQoNCj4gPiA+DQo+ID4gPiBPbiBXZWQsIEFwciAxMCwgMjAxOSBhdCAwNjoyMDowNEFN IC0wNTAwLCBIb25uYXBwYSBOYWdhcmFoYWxsaQ0KPiB3cm90ZToNCj4gPiA+ID4gQWRkIFJDVSBs aWJyYXJ5IHN1cHBvcnRpbmcgcXVpZXNjZW50IHN0YXRlIGJhc2VkIG1lbW9yeQ0KPiA+ID4gPiBy ZWNsYW1hdGlvbg0KPiA+ID4gbWV0aG9kLg0KPiA+ID4gPiBUaGlzIGxpYnJhcnkgaGVscHMgaWRl bnRpZnkgdGhlIHF1aWVzY2VudCBzdGF0ZSBvZiB0aGUgcmVhZGVyDQo+ID4gPiA+IHRocmVhZHMg c28gdGhhdCB0aGUgd3JpdGVycyBjYW4gZnJlZSB0aGUgbWVtb3J5IGFzc29jaWF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