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 72142462BA for ; Tue, 25 Feb 2025 17:17:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D3744025E; Tue, 25 Feb 2025 17:17:41 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 38DC94025E for ; Tue, 25 Feb 2025 17:17:40 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-22100006bc8so103687375ad.0 for ; Tue, 25 Feb 2025 08:17:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1740500259; x=1741105059; 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=NiXF3PjtH4vbdU5xFZBwOI0T7YIdbluG+AM0OPowtH0=; b=c937J0qQIh1Y5aSwpqYEhFUh4+I0sOGFA4X04V8rvw9Xv0r4z0ESzji3iE6woy8F96 1rM60PqlLbTSaqI4IxYkl/Vb6r1DBRcbaazzLj/tfhpF7+2c23s/KGyqcG+KiJ8Oh5Ur BTB5H5u2SKDtFSm5gnHJQPtm2qPl8xligEoBEl8X41nIHtxSNPtpxbJ+Yc9fqQe2UKKI ZuNvME16fdxKI/yiN7tH096lh0kuaz94iOmYk7LUB0kIKNunVi3CMoziKa2q2IM1bs80 hqo0tVHszoX9/8tM+RR6hd1WLhb9G+njGm5JJN0r7Xf5XGtpweLw/4CoZh/x6Keb4m7N /9cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740500259; x=1741105059; 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=NiXF3PjtH4vbdU5xFZBwOI0T7YIdbluG+AM0OPowtH0=; b=uYk7r3fMuh46+u4txS/qQWQlwZ6x9GLk02pTXMUs1eQNyrCKBHxhaaeiKy/NyK7f16 K/KPoxv0ZJNyr8N6EgdtiRvFIWpL/QFMbIyvuEHClwJS2kWW+2EyiOIS+n02NihkRkxm /7vcvYYCKcrmxHsH7Rp9muyyGlhO61w/+rxhzIvjkxzpQ2fp45vAq5gppuJmEa1snSNs jgKuSMRTrbI/B/84Oz3HxL6REamebdd5gNXdiUkUzx67DTo9+oJWvbvAcOH58r+Y5CUr gfibxvtQoTcnRiEylItdIOxtjeDdxZkT6lVgD33gVxi5PwXK/XcVPcmuG8gEotliCb0Q RLUg== X-Forwarded-Encrypted: i=1; AJvYcCXexz0aWtrJTtU+EYZBgc+2ipYhkPzr6VxJ3MNGRcsjiG8GahrgmCNWb09R3KjUxK5XpYXkR5Y=@dpdk.org X-Gm-Message-State: AOJu0Yy/d4eIQEqiWhHatve02V7X6mcwVduRqFVJlLaEavE4JMuDikYA ODR4reekkLtOqJ1naWGstz1alk+eT9T2LLwPZTqSFAXKi5qG9l2waPz2QErtILE= X-Gm-Gg: ASbGncsSWCsiIjaL2UPvNZok3gUkWr8MJ3xCLgZQZ9GzQpw4ItcacJ2VdhjVgNmDJ5L eWTkBnrdb7QMteP8pfsdwzB6AUcCcZoZtTap7ntYRo0EA/d8IABDiw9inMTX/OciC/Q1HSRJoYp mniLop9MDSmu9hJu/RhtZkahWH9SDCez5adQheh9Zi3tvWek3WG3jd2LNO05gmlwLDBuMwfDdxd SbBsDe3P+OU96EWFlcl4YhrPIAzSYi9mhJBJKk57n+tSVMpzl5E0037G2dC61ADeKHDoEqtEorm JMqlaX/137yw5cGe7s+r57vHbmqdIw+0Nb074Te65gRoni41uioJTWUVVqzFkq8yzKaxFws6Rsd K3fw= X-Google-Smtp-Source: AGHT+IFssfcTPQ8aG2UzCsEbACqaROpRXr56uk9Soo/BWIHYdHNsD7/6Se1vymDrRLS6rbVhh6DQGA== X-Received: by 2002:a17:902:f645:b0:21f:61a5:67a5 with SMTP id d9443c01a7336-22307e67516mr65178035ad.42.1740500259126; Tue, 25 Feb 2025 08:17:39 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2230a000536sm16106905ad.45.2025.02.25.08.17.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2025 08:17:38 -0800 (PST) Date: Tue, 25 Feb 2025 08:17:37 -0800 From: Stephen Hemminger To: Chaoyong He Cc: dev@dpdk.org, oss-drivers@corigine.com, Long Wu , peng.zhang@corigine.com, stable@dpdk.org Subject: Re: [PATCH] net/nfp: fix get represetor wrong port stats Message-ID: <20250225081737.09e63d56@hermes.local> In-Reply-To: <20250225013454.442170-1-chaoyong.he@corigine.com> References: <20250225013454.442170-1-chaoyong.he@corigine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Tue, 25 Feb 2025 09:34:54 +0800 Chaoyong He wrote: > From: Long Wu > > The 'ipackets'/'opackets' are used to record the number > of packets on represetor port received/sent. But the > code does not consider concurrent calculation of > 'ipackets'/'opackets'. If multiple queues are calculated > 'ipackets'/'opackets' simultaneously, it will result in > incorrect results. > > The previous logic has recorded the number of packets on > each queue, therefore driver only needs to add the data of > all queues to obtain the data of the representor port. > > Based on this, modify code to fix the issue. > > Fixes: 636e133ec891 ("net/nfp: update Tx and Rx for multiple PF") > Fixes: 82a2c286f35a ("net/nfp: support xstats for flower firmware") > Cc: peng.zhang@corigine.com > Cc: chaoyong.he@corigine.com > Cc: stable@dpdk.org > > Signed-off-by: Long Wu Applied to next-net and fixed spelling in commit message.