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 5B16D45713; Thu, 1 Aug 2024 18:17:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D80E440E12; Thu, 1 Aug 2024 18:17:40 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id A147540E03 for ; Thu, 1 Aug 2024 18:17:39 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-70d2ae44790so5151029b3a.2 for ; Thu, 01 Aug 2024 09:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722529059; x=1723133859; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=BvLDAt/wgjyAJaaMxbInAqyDI0XNxOnI1Al3YOuJ7UA=; b=PsoDv3xQlGgz4F8kSgfLqfsRj7J8C9OX4WYlbw9xGqLNADPJ0S1o42FSw/edZjNAXE DBjPZkrP+atVgcXXklaKXkvt42uIRBi6zdFeX6WJFw89Komsi7MTnSDMgMsEKZFD2Yf+ UvMYrXEc/hyZWHs/J02uSF4VFI8GorzU04CPq9/gzigt1QrQuiMcTQXq6aucbYnTO3XJ JXNnVjqUq2JAS8pwSPEWEBQLokStqjyO/Pyxl+pV2PQxC5SDPDqsIW6j+DGoBIrcBCkg /HyE2cnBcSS6BuDdFSs/yX7+N1AZg2o7vLEsOpp+e4ZgjJmBHFYv3D/affHtqHZPC9x5 wYuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722529059; x=1723133859; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BvLDAt/wgjyAJaaMxbInAqyDI0XNxOnI1Al3YOuJ7UA=; b=o41YHwuxiUMDSCV94Nzbv97gcHen0r45bnHvp4wz72oX9+752yipWrSjnMxAnccF1T p0REPgoL0bavcK+aBGI0he94o4k5vvNAVxIIoZf52zitA0S1Van/W+iGcuCPHDTswQ2B qOHGA7i0VH7mwjMAvSjzuK9xpo10KUSTlY+2yitcHGP5Ob4O7DdERDgWuSnM2FtARXwb Nk1fL95Crf1A6Ekm4wDSmg6a34GH8AZqTwd7uRoSKCkgvxfbZ0V4/cAx0DBAdaIktnzb 5Qdzm1Q0L9gqvvmzasvhjQEQUd++IvaoO3501+z1HilqgqkBAFXmP6RJeMog9GhoxTaF 4bhA== X-Forwarded-Encrypted: i=1; AJvYcCXakq061du1653fd0jaTDfWpKNYT6vSmlOsU21w//LisqoiXRJ18BGWB3oD+lgXVkT9KIyyOg9JJ1vysuc= X-Gm-Message-State: AOJu0YzQfXPJMDFDwm2hlh2AhIZTeBZFAuXFpB8TxUEeMZImmTknAf7k jXfFK1te3yN3jlTJg1cbCpM6IvcD4Abs+IoZy1f65wb8ORmbsfg67itRdJNHeU4= X-Google-Smtp-Source: AGHT+IEXI7abkJJ3ZYlST3i5VGvaONRRugKL+Rdqk/cy00A12UUifBwmk1XUv4E2TJeth1YkATK+Tw== X-Received: by 2002:a05:6a00:9282:b0:70e:90fb:49c9 with SMTP id d2e1a72fcca58-7106cf8fcefmr829755b3a.1.1722529058594; Thu, 01 Aug 2024 09:17:38 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7b762e9f2acsm43607a12.3.2024.08.01.09.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 09:17:38 -0700 (PDT) Date: Thu, 1 Aug 2024 09:17:35 -0700 From: Stephen Hemminger To: Morten =?UTF-8?B?QnLDuHJ1cA==?= Cc: maxime.coquelin@redhat.com, chenbox@nvidia.com, dev@dpdk.org Subject: Re: [PATCH v5] virtio: optimize stats counters performance Message-ID: <20240801091735.66ae4871@hermes.local> In-Reply-To: <20240801160312.205281-1-mb@smartsharesystems.com> References: <20240731131744.36448-1-mb@smartsharesystems.com> <20240801160312.205281-1-mb@smartsharesystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 On Thu, 1 Aug 2024 16:03:12 +0000 Morten Br=C3=B8rup wrote: > Optimized the performance of updating the virtio statistics counters by > reducing the number of branches. >=20 > Ordered the packet size comparisons according to the probability with > typical internet traffic mix. >=20 > Signed-off-by: Morten Br=C3=B8rup LGTM Acked-by: Stephen Hemminger I wonder if other software drivers could use similar counters?