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 80D9343FB2; Tue, 7 May 2024 17:27:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F15D8433B9; Tue, 7 May 2024 17:27:23 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 092B6433B1 for ; Tue, 7 May 2024 17:27:23 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id BC67A21FDD; Tue, 7 May 2024 17:27:22 +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 v3] net/af_packet: make stats reset reliable Date: Tue, 7 May 2024 17:27:20 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F422@smartserver.smartshare.dk> In-Reply-To: <20240503154547.392069-1-ferruh.yigit@amd.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC v3] net/af_packet: make stats reset reliable Thread-Index: AdqdcQOnfRfa+O7cQF+Xou7LcdH4kADGsS5g References: <20240425174617.2126159-1-ferruh.yigit@amd.com> <20240503154547.392069-1-ferruh.yigit@amd.com> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "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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