From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4F49143FCF; Tue, 7 May 2024 21:20:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B998743460; Tue, 7 May 2024 21:19:59 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 96A93402DF for ; Tue, 7 May 2024 21:19:58 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 5A36A209B2; Tue, 7 May 2024 21:19:58 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Subject: RE: [RFC v2] net/af_packet: make stats reset reliable Date: Tue, 7 May 2024 21:19:57 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F425@smartserver.smartshare.dk> In-Reply-To: <238675d1-b0bb-41df-8338-a1052c1a88c1@lysator.liu.se> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC v2] net/af_packet: make stats reset reliable Thread-Index: AdqgT4Llel0dMSw6RCaqSoB+otfcpQAWzIUQ References: <20240425174617.2126159-1-ferruh.yigit@amd.com> <20240426143848.2280689-1-ferruh.yigit@amd.com> <108e0c40-33e7-4eed-83de-eaedee454480@lysator.liu.se> <238675d1-b0bb-41df-8338-a1052c1a88c1@lysator.liu.se> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: =?UTF-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , "Ferruh Yigit" , "John W. Linville" Cc: "Thomas Monjalon" , , =?UTF-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , "Stephen Hemminger" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org PiBGcm9tOiBNYXR0aWFzIFLDtm5uYmxvbSBbbWFpbHRvOmhvZm9yc0BseXNhdG9yLmxpdS5zZV0N Cj4gU2VudDogVHVlc2RheSwgNyBNYXkgMjAyNCAwOS4yNA0KPiANCj4gT24gMjAyNC0wNC0yOCAx NzoxMSwgTWF0dGlhcyBSw7ZubmJsb20gd3JvdGU6DQo+ID4gT24gMjAyNC0wNC0yNiAxNjozOCwg RmVycnVoIFlpZ2l0IHdyb3RlOg0KDQpbLi4uXQ0KDQo+ID4gc3RhdGljIHVpbnQ2NF90DQo+ID4g Y291bnRlcl92YWx1ZShzdHJ1Y3QgY291bnRlciAqY291bnRlcikNCj4gPiB7DQo+ID4gIMKgwqDC oMKgdWludDY0X3QgY291bnQgPSBfX2F0b21pY19sb2FkX24oJmNvdW50ZXItPmNvdW50LA0KPiBf X0FUT01JQ19SRUxBWEVEKTsNCj4gPiAgwqDCoMKgwqB1aW50NjRfdCBvZmZzZXQgPSBfX2F0b21p Y19sb2FkX24oJmNvdW50ZXItPm9mZnNldCwNCj4gX19BVE9NSUNfUkVMQVhFRCk7DQo+ID4NCj4g DQo+IFNpbmNlIHRoZSBjb3VudCBhbmQgdGhlIG9mZnNldCBhcmUgd3JpdHRlbiB0byBpbmRlcGVu ZGVudGx5LCB3aXRob3V0IGFueQ0KPiBvcmRlcmluZyByZXN0cmljdGlvbnMsIGFuIHVwZGF0ZSBh bmQgYSByZXNldCBpbiBxdWljayBzdWNjZXNzaW9uIG1heQ0KPiBjYXVzZSB0aGUgb2Zmc2V0IHN0 b3JlIHRvIGJlIGdsb2JhbGx5IHZpc2libGUgYmVmb3JlIHRoZSBuZXcgY291bnQuDQoNCkdvb2Qg Y2F0Y2guDQpUaGlzIG1heSBoYXBwZ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