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 E46C845712; Fri, 2 Aug 2024 13:28:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B750240A80; Fri, 2 Aug 2024 13:28:01 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id EE5544003C for ; Fri, 2 Aug 2024 13:27:59 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id C09AD2099B; Fri, 2 Aug 2024 13:27:59 +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 v5] virtio: optimize stats counters performance Date: Fri, 2 Aug 2024 13:27:56 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F5F0@smartserver.smartshare.dk> X-MimeOLE: Produced By Microsoft Exchange V6.5 In-Reply-To: <677a47da-c6ba-57a9-92c7-a98df739d216@huawei.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v5] virtio: optimize stats counters performance Thread-Index: AdrkgvDMJayWcbqvRTeBdhPL7DU6yAASNSvQ References: <20240731131744.36448-1-mb@smartsharesystems.com> <20240801160312.205281-1-mb@smartsharesystems.com> <677a47da-c6ba-57a9-92c7-a98df739d216@huawei.com> From: =?UTF-8?B?TW9ydGVuIEJyw7hydXA=?= To: "lihuisong (C)" , , Cc: , 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 PiBGcm9tOiBsaWh1aXN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