From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 47C26A051C for ; Tue, 11 Feb 2020 12:24:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3F35D2B9C; Tue, 11 Feb 2020 12:24:48 +0100 (CET) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 987C71BF9E for ; Tue, 11 Feb 2020 12:24:46 +0100 (CET) Received: by mail-wr1-f65.google.com with SMTP id u6so11911590wrt.0 for ; Tue, 11 Feb 2020 03:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OmGBqsCyPcw/KUYeVkZlOk/tyLhZzgNeDLnRVIld/Cc=; b=Q7Cd9cJ01FywLUA0i3QiqNrsp4YC2+DPTDu85bU+6HT3V7UMM/IY9irWR8oIDF1BLT Baykc29fXDJQiDeDC5jktAK/wwKmS+I2ZSCPMZeV+qJSzqL3PGlh221/l9QuuduiPSGH 1ELAnGy7+mGQOFlnOb9rzi2PldbSaQBTG0g1RxYhoLEcyCv2NGQlZL7ZlyrLvbHBY2Q5 Wrp2WK4NdapX0RhUiFoldoUEymckjIZCJrKDvt5Lh/nx859E0e4tD9/mQaXNUPPI1M5i VrlscvjWgciXUq1H8XjYncFoI+ngMWbf8ee+Halc5pJo4s3cpucqpM5OEv0OrsfKOqiW fphQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OmGBqsCyPcw/KUYeVkZlOk/tyLhZzgNeDLnRVIld/Cc=; b=jvBbPA++TZwwlV7hh2km+/IGMnxtn4oIR7XtoM+jGHz0FYVuFdZAKkxQc6rDlBH0aY gyIU34yqVbuMK2XkeEKs0mFY/XyIr6zzhplZtiwS+Fz2LuLXMsbmM8jdMQTqzPHaTZni SkwwYlFjwkR0dYEzIB5CVkkAzIKm06ACmkRruyH8WfG4a+fVHGWGpswEKObdKVQascXk FHbCmhttZUDTubQV68fr87kyaERAlLUgAlkdcochzWwl3aiV2nNsCOb9kUZx1YePlogX 8am2sj3dnrvZ1F8UuqCN2jdCBGooDz1VVBqEewaFXx0Zsr7cm23XzyYCxTsHiAThpN70 Wryg== X-Gm-Message-State: APjAAAUbir7gC50TB+PwMI7g7L2pvBvWqayTiXX6EHWNvuEhgltea1HJ bVUNWmizfs77dBO9/rY0AcyMl+ozT8c= X-Google-Smtp-Source: APXvYqyF1TJIDntqbfqKis8m1i/hjihcg375HMPBfPWh0t32LhlAylbKPv0tXWePaRTRY9FBviPrAg== X-Received: by 2002:adf:fd91:: with SMTP id d17mr8742719wrr.340.1581420286358; Tue, 11 Feb 2020 03:24:46 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id m9sm4884801wrx.55.2020.02.11.03.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 03:24:45 -0800 (PST) From: luca.boccassi@gmail.com To: Jiaqi Min Cc: Jingjing Wu , dpdk stable Date: Tue, 11 Feb 2020 11:19:38 +0000 Message-Id: <20200211112216.3929-32-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200211112216.3929-1-luca.boccassi@gmail.com> References: <20200211112216.3929-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/iavf: fix Rx total stats' has been queued to stable release 19.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/13/20. 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. Thanks. Luca Boccassi --- >From 7169a84d1248725bbb70b24ec6074ad3a34c127b Mon Sep 17 00:00:00 2001 From: Jiaqi Min Date: Fri, 13 Dec 2019 01:23:29 +0000 Subject: [PATCH] net/iavf: fix Rx total stats [ upstream commit e71ffcc1008eeb67d585174dfb10066e9e3df2f7 ] Rx total stats is the total number of successfully received packets, so exclude the number of rx_discards for Rx total stats. Fixes: f4a41a6953af ("net/avf: support stats") Signed-off-by: Jiaqi Min Acked-by: Jingjing Wu --- drivers/net/iavf/iavf_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index a39ba1466c..f544303c05 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -1068,7 +1068,7 @@ iavf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) if (ret == 0) { iavf_update_stats(vsi, pstats); stats->ipackets = pstats->rx_unicast + pstats->rx_multicast + - pstats->rx_broadcast; + pstats->rx_broadcast - pstats->rx_discards; stats->opackets = pstats->tx_broadcast + pstats->tx_multicast + pstats->tx_unicast; stats->imissed = pstats->rx_discards; -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-11 11:17:40.262020426 +0000 +++ 0032-net-iavf-fix-Rx-total-stats.patch 2020-02-11 11:17:38.344000300 +0000 @@ -1,13 +1,14 @@ -From e71ffcc1008eeb67d585174dfb10066e9e3df2f7 Mon Sep 17 00:00:00 2001 +From 7169a84d1248725bbb70b24ec6074ad3a34c127b Mon Sep 17 00:00:00 2001 From: Jiaqi Min Date: Fri, 13 Dec 2019 01:23:29 +0000 Subject: [PATCH] net/iavf: fix Rx total stats +[ upstream commit e71ffcc1008eeb67d585174dfb10066e9e3df2f7 ] + Rx total stats is the total number of successfully received packets, so exclude the number of rx_discards for Rx total stats. Fixes: f4a41a6953af ("net/avf: support stats") -Cc: stable@dpdk.org Signed-off-by: Jiaqi Min Acked-by: Jingjing Wu