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 0F38744034; Wed, 15 May 2024 11:30:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0C0E4025C; Wed, 15 May 2024 11:30:50 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 30C704021D for ; Wed, 15 May 2024 11:30:49 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id EBBE820568; Wed, 15 May 2024 11:30:48 +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: [PATCH v3 1/7] eal: generic 64 bit counter X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 15 May 2024 11:30:45 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F454@smartserver.smartshare.dk> In-Reply-To: <20240514153845.42489-2-stephen@networkplumber.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v3 1/7] eal: generic 64 bit counter Thread-Index: AdqmFNcwBPiahSQdR1mMuKiYnl1xKAAhMadg References: <20240510050507.14381-1-stephen@networkplumber.org> <20240514153845.42489-1-stephen@networkplumber.org> <20240514153845.42489-2-stephen@networkplumber.org> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Stephen Hemminger" , , =?UTF-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , =?UTF-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , "Ferruh Yigit" , X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive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