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 7AFE242D46 for ; Sun, 25 Jun 2023 08:45:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 723B942B8B; Sun, 25 Jun 2023 08:45:48 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by mails.dpdk.org (Postfix) with ESMTP id 3E80A40ED8 for ; Sun, 25 Jun 2023 08:45:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QmGEI343NUGV6oZfFtG21HzWts4WdnMyj1ZRC4mPVFYhPF8c78W+l+0/IqENGv13iAv4h0/C65n+8hvaHD7ZcVu2hjbB6f+vQPYtNIi0KSd6+uDM+voW+tLqp4A7MTybvniW9O3J97cpuBGrly+97oBS0H7bHxNI88FwsUiomz+K2qyRvxsunCP74V4Nsz5qfSYVmXMKDupRlHmZBa5Xxq9UNUtHCSVW4OtqNQfHX/rmsX8Wq9ecTTNIYFPrzQgEMAXOljHBdKLZ4XacwjmLrlZXmlsZpo09F4CowKoTNvjmCQUVe8/SzuASAcyu/AhvP7DK94YbhEGB70Rxtb2sUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/UERxPmTvuUVM3GFUME1rZ/8/zdOprpB7U5p/d1eFTU=; b=d0weGf3XaNrPKd6AZVl4wZWNbutmqxhvOGVbNQe12ghmvevY+fLgulkAtN5JoDGEcxsDDzAKuE6bvk5g8DUVCMQZUhvYXH54LSMvaJAMkfs/oQH/gJo3VijL+3H3jDASngJhei/e6f+K1C2JZ+C/Umz9d211lQ6dujKOdRJso8VE3q5ij9yd0MZLdZy1SLBAjn8EYoYVECqEStIOHjuJ3abBHyDd4XdJw6VdYfnH5vOze0nJkXhXa1v+raFEVmnTuqIzuyYjjRUraHERsGwYp1mTLVhuCbJn8f6bxzVX1pUjSd6FaK8OYDbOkhf4ZDW73IKk5AraFb9WsYqzVzW81A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/UERxPmTvuUVM3GFUME1rZ/8/zdOprpB7U5p/d1eFTU=; b=XHrOvhcaDhq3WZv7dUYE5xiPRpyITIFGl4LB2LMrk2RYayC2rS7te/KzigoiRev5sNdwbIrfQzDiiNYD6pz6gpHMulXT0ksPVcxBgQpaROt6Biz/CKW20+dNaGCMIwwit++Pd2AgERX2u0I57pQkxsAXy1uo+0D0Jn2bvYdbUEa0GsA+muGOkTw5VPgFNv6ndhYeFclhLUj5P0wnij7TFHx3GeLYLzAFunhlkGDknrpICaBm9tAZGhYELoL/3mJhqUzWZF9PUlyuR9nAqP/hhFjFmfrss6eiX6VE+eS/Jm3tNfnrRpXRPmXDyeKnF+r1V7pFN4YmPfWDhVEA8xqHUg== Received: from BN9P223CA0021.NAMP223.PROD.OUTLOOK.COM (2603:10b6:408:10b::26) by PH7PR12MB5901.namprd12.prod.outlook.com (2603:10b6:510:1d5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Sun, 25 Jun 2023 06:45:44 +0000 Received: from BN8NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10b:cafe::f0) by BN9P223CA0021.outlook.office365.com (2603:10b6:408:10b::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.32 via Frontend Transport; Sun, 25 Jun 2023 06:45:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT051.mail.protection.outlook.com (10.13.177.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.47 via Frontend Transport; Sun, 25 Jun 2023 06:45:44 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Sat, 24 Jun 2023 23:45:31 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sat, 24 Jun 2023 23:45:30 -0700 From: Xueming Li To: Mingjin Ye CC: Qi Zhang , dpdk stable Subject: patch 'net/ice: fix statistics' has been queued to stable release 22.11.3 Date: Sun, 25 Jun 2023 14:35:30 +0800 Message-ID: <20230625063544.11183-113-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230625063544.11183-1-xuemingl@nvidia.com> References: <20230625063544.11183-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT051:EE_|PH7PR12MB5901:EE_ X-MS-Office365-Filtering-Correlation-Id: 0ccd1fe3-2682-44dd-50ae-08db7547ccfd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eUV2q6cG1mYSfo0H2M94nN36Fv5vRqgZ44ZGqkdRysPfOgA6cGzVJBPPIrKwB2ygRfsvauHkiNhSSqlfhdG/AQTeXWnZzPMQ9+UcsOxfLcyxUSD8ugdoN9kPfzKJxvjJAtJ6wnwKn1F5/RSkRmu5nSMkcjg3OqdJlFtsw642wnM71xf4H6At3e2uV34Mm8bKWHJxWutW2Vic+QSVv5BQ3wKHqDVvnTphEUMN+XDlT5pa7+mRA3p1EOM+dkZGX9wLsvDHkYkIbL/Ov2d4+HLimHqAknFEj905SNfMVDypQmomd3njvJxSNFyfaFOFYfTtcAGp/ClePIc61gVbVLMOQAn1p4U4zaAbNQBY9h3zxcddlXcx/hjAoXDxYBvC+gELwDKXUNcMIeUVl0cK627x/hh+jydc6SyVeo6IR4BVHDyH4Y2R3h7Zd8vwNmRLUS+dXpO2EdF0ly7BEZ1uLkVfv4rPhyBioBytVCArhGDsGv9CMtB4oI1R1GdFd+f68u4jX13M0zCtPasMpLyO77PEdxFaBCNmDfca82QfMIpo01jtLKV4htKrvfrjI3/PyWMpwmMpCSHsT71FxDhrVyojOP8QePPwmYUc3svFHCQbbjmcOBn8w7W0TU8sWkl5E0eq12rYGab2rRQfM9WS+9OKNEKGmQXX1LWM3BAEh0NocwFVNgHLbErjdbT33XE1FQmakgwoeZlNd8AMBE0Mw9R+afW2RX+eJv53qa7XXCqoHo+zCJ5CXBT9w1VW1zoda+BQbrP1fPn0v2i4iNjlq2kVLg== X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(136003)(376002)(39860400002)(396003)(346002)(451199021)(40470700004)(46966006)(36840700001)(82740400003)(5660300002)(8676002)(8936002)(41300700001)(316002)(70586007)(6916009)(70206006)(4326008)(2906002)(54906003)(36860700001)(82310400005)(478600001)(7696005)(1076003)(966005)(53546011)(26005)(40460700003)(186003)(86362001)(6286002)(2616005)(336012)(47076005)(36756003)(16526019)(426003)(55016003)(356005)(40480700001)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2023 06:45:44.3307 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0ccd1fe3-2682-44dd-50ae-08db7547ccfd X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5901 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 22.11.3 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/27/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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=83ad87933a05f5eb8a51cd83cc90d7dbd40412d5 Thanks. Xueming Li --- >From 83ad87933a05f5eb8a51cd83cc90d7dbd40412d5 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 Cc: Xueming Li [ 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 263c80a6eb..4eb7de4ad5 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -2426,6 +2426,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.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-06-25 14:32:01.481598700 +0800 +++ 0112-net-ice-fix-statistics.patch 2023-06-25 14:31:58.565773900 +0800 @@ -1 +1 @@ -From a47ef8640a677a3973de48b8075f1fcd6a0ee68e Mon Sep 17 00:00:00 2001 +From 83ad87933a05f5eb8a51cd83cc90d7dbd40412d5 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit a47ef8640a677a3973de48b8075f1fcd6a0ee68e ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index e03bbd81a1..2345f9f29c 100644 +index 263c80a6eb..4eb7de4ad5 100644 @@ -26 +28 @@ -@@ -2440,6 +2440,9 @@ ice_dev_init(struct rte_eth_dev *dev) +@@ -2426,6 +2426,9 @@ ice_dev_init(struct rte_eth_dev *dev)