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 E706342CBC for ; Thu, 15 Jun 2023 03:35:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF63A42D63; Thu, 15 Jun 2023 03:35:49 +0200 (CEST) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mails.dpdk.org (Postfix) with ESMTP id 645D240DDA for ; Thu, 15 Jun 2023 03:35:47 +0200 (CEST) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-3f8d258f203so11202995e9.1 for ; Wed, 14 Jun 2023 18:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686792947; x=1689384947; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+G8uVxYHNXJiGsdDux2B/b1fUa+S4y8c6Cx3dK3CrfE=; b=Yr6flxKSMHAjL+LE9wBrT69wWpEi3dBaWQPKgvPeNmRivl9nZJKTkLth+yweznWqWR NL6HnajJl7uRhDpL4+qzM1DJV+khthoF/6BeWwRCGH8oXaaVqrwNExRS9PW7+FBayr0W R/oL16iaEkKDD3sWojc3qXeD3jC6m2Ed0aRm50Sk/sUD20MUUPupg0GLgEnhEbV4SMf1 SAUqY5MkA6yX7oU14lMcd/1oVDe5Zu2+v41DrBsALO8hdXfvO4ufLiYzF4C2/iTnbuLq fmErh2R0P9mH4HC5XaNAiz3BKjk4mfmrhkyMf9S3Ho7WvgxBY6sruACWWPAMe78jMqv2 tGZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686792947; x=1689384947; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+G8uVxYHNXJiGsdDux2B/b1fUa+S4y8c6Cx3dK3CrfE=; b=ix6cMJEVQa2FSC/xqvHTndNPYeoDazqFDAtapsaemkMX4jYikN479cpa5qewEQFvdM hxCCCmX0A7eoi5+i1da2S3bAYZ8HW85rRhCZY7y1Ax+WbcdRQE03vTpqhdLMaciXv2+2 LJq6fvaPYu56rEqCYBWP6lAzagWQg1U+fd+04v0YMLlnJexKzPjlmJ0l0fK1S1w6m+7h lztTHfPegvKqyRrnkiKjB46biQ1FmUz6vQeVFx0q3i4PwtdGymF1sAxS65lSTS0mvvdA R0Oay4oAri4dd8KNMYaQF2g8SqmOU3F6r6Q5i8pePvKIrsThfTsdBtrPrlaXjGOhTGrT IZQg== X-Gm-Message-State: AC+VfDz5q3vZNqQmasdZ9F90yyHicQ0Llc0FUeZ/Pd15TfusaW4x6OpQ MFfN82Clsi3jnpdAifERrPoMlbeQb8+e9fIt X-Google-Smtp-Source: ACHHUZ6Of2JpaYzGcODXnG3x6zRlOc69G72hAip1w/RSiIjJDAs0wk7sNHic9VwDLNG+WGRvVtuQvw== X-Received: by 2002:a7b:c047:0:b0:3f8:1b55:ac08 with SMTP id u7-20020a7bc047000000b003f81b55ac08mr6565902wmc.28.1686792947036; Wed, 14 Jun 2023 18:35:47 -0700 (PDT) Received: from localhost ([2a01:4b00:d307:1000:f1d3:eb5e:11f4:a7d9]) by smtp.gmail.com with ESMTPSA id t12-20020adfeb8c000000b0030ae6432504sm19631317wrn.38.2023.06.14.18.35.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 18:35:46 -0700 (PDT) From: luca.boccassi@gmail.com To: Mingjin Ye Cc: Qi Zhang , dpdk stable Subject: patch 'net/ice: fix statistics' has been queued to stable release 20.11.9 Date: Thu, 15 Jun 2023 02:32:49 +0100 Message-Id: <20230615013258.1439718-54-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615013258.1439718-1-luca.boccassi@gmail.com> References: <20230615013258.1439718-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 20.11.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/17/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/6efe1ac8a1a08841673939090a57690e50af34bf Thanks. Luca Boccassi --- >From 6efe1ac8a1a08841673939090a57690e50af34bf Mon Sep 17 00:00:00 2001 From: Mingjin Ye Date: Thu, 11 May 2023 02:10:55 +0000 Subject: [PATCH] net/ice: fix statistics [ upstream commit a47ef8640a677a3973de48b8075f1fcd6a0ee68e ] When the stats_get api is called for the first time in pmd, the offset of the stats register is not recorded. That results in all the obtained count values being 0. This patch adds reset statistics before dev_init returning. That avoids some noise being counted. Fixes: 12443386a0b0 ("net/ice: support flex Rx descriptor RxDID22") Signed-off-by: Mingjin Ye Acked-by: Qi Zhang --- drivers/net/ice/ice_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 8db05c998a..5a49868855 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -2270,6 +2270,9 @@ ice_dev_init(struct rte_eth_dev *dev) pf->supported_rxdid = ice_get_supported_rxdid(hw); + /* reset all stats of the device, including pf and main vsi */ + ice_stats_reset(dev); + return 0; err_flow_init: -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-06-15 01:56:37.438664928 +0100 +++ 0054-net-ice-fix-statistics.patch 2023-06-15 01:56:34.707544363 +0100 @@ -1 +1 @@ -From a47ef8640a677a3973de48b8075f1fcd6a0ee68e Mon Sep 17 00:00:00 2001 +From 6efe1ac8a1a08841673939090a57690e50af34bf Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit a47ef8640a677a3973de48b8075f1fcd6a0ee68e ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -23 +24 @@ -index e03bbd81a1..2345f9f29c 100644 +index 8db05c998a..5a49868855 100644 @@ -26 +27 @@ -@@ -2440,6 +2440,9 @@ ice_dev_init(struct rte_eth_dev *dev) +@@ -2270,6 +2270,9 @@ ice_dev_init(struct rte_eth_dev *dev)