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 B2088A04F3 for ; Thu, 19 Dec 2019 15:38:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A62BB1BF7B; Thu, 19 Dec 2019 15:38:47 +0100 (CET) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id 694061BFD0 for ; Thu, 19 Dec 2019 15:38:46 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id z3so6238774wru.3 for ; Thu, 19 Dec 2019 06:38: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=lOxJjQuqqOAjCtwksEnhXS/1oNC6R/vMTFQSSlZVQ2k=; b=YZmMdMsekdIfF2qhF6S5EnyNBzAYZKTB9vTRlWZk7LKz4ygQlVcEGSP7+fXKD4DkCp 9Faja6s1CKetjVMiungUxlHVWz7HY421CFvat6IW9wXMnNmTIBeMbigny1BqH8ZTBjny 2K9XmE1kcuF53UIUgHJmxfH/9zVSDBEJOW/23WTxlqgQ5wZ/8V7rsn6AGFpg/udTQ1/m zg7QeNjuAMWRf8gQ6/OlHT1BGX/7pTjjixOjvPQ/q8DRTCY+dsTwWsdsuoLIK/ZFiX8m ba2CDRW1Vw3I8B4RYHySnazIUDB1T/oHVu4fudiiokhYggJC4qtTPUB4cDlcUnsBf3Nl UK0A== 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=lOxJjQuqqOAjCtwksEnhXS/1oNC6R/vMTFQSSlZVQ2k=; b=nQ9QcMqHRRjxu+sjW1+lMmXyGhHDOC6dD21p0X2byleFa66Nsex6jlmzKD6NQh4KZ6 TRnCUGCdiSsYjmOLRk3kdRu5Bc3IQ+kmHN+nHF1u5yp07P2C40/IgWqxggDmwGhNtana W/R9PjJLswomG4l5SBANZQgt4QwxzXWV06oYB/qQGhhDUXHeG5ktHQ1L73L8M252oLPH VLFINVrJbr01prFUsTVdyGSpU6Urs2QXbNdX9q9fW4S72pKEEnHTtboU7FdJWPG+SWxR YaK6bnVtUgf7Z8xRXJdVwf5ntN/8FBcbOBag0tFEWmb8rPowrQ+rzIdZZlRBtsEUHi2H TM4A== X-Gm-Message-State: APjAAAWlVmyiloyflTXGVJACtzp6btmAfPKXYQENc82brPGfGymiaxfT pEgNc8Suo+w7l9IPo7h5FoPvPhdIYr8= X-Google-Smtp-Source: APXvYqyHI6wVZy8snNdvjwDulQWyHI7DpFkmHP2hd/eVgbT6J8D6ON77tozjmougelEMG/ZWIglf3w== X-Received: by 2002:a05:6000:11c9:: with SMTP id i9mr9576614wrx.164.1576766326095; Thu, 19 Dec 2019 06:38:46 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id v14sm6582856wrm.28.2019.12.19.06.38.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 06:38:45 -0800 (PST) From: luca.boccassi@gmail.com To: Somnath Kotur Cc: Ajit Khaparde , dpdk stable Date: Thu, 19 Dec 2019 14:33:56 +0000 Message-Id: <20191219143447.21506-89-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191219143447.21506-1-luca.boccassi@gmail.com> References: <20191219143447.21506-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/bnxt: expose some missing counters in port stats' has been queued to LTS release 17.11.10 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 LTS release 17.11.10 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/21/19. 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 0b99dc969951865780d8f70f06ef0d440e79d8eb Mon Sep 17 00:00:00 2001 From: Somnath Kotur Date: Thu, 24 Oct 2019 13:14:25 +0530 Subject: [PATCH] net/bnxt: expose some missing counters in port stats [ upstream commit bd94753fc79c5a37e249ca440d081fdb7d5dc9fa ] Rx/Tx Port statistics record PFC enabled frames for each priority. Modify the Rx/Tx port stats array to report these as well. Fixes: bfb9c2260be2 ("net/bnxt: support xstats get/reset") Reviewed-by: Ajit Khaparde Signed-off-by: Somnath Kotur --- drivers/net/bnxt/bnxt_stats.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c index e85db7f6d0..02e8e6ecbd 100644 --- a/drivers/net/bnxt/bnxt_stats.c +++ b/drivers/net/bnxt/bnxt_stats.c @@ -108,6 +108,22 @@ static const struct bnxt_xstats_name_off bnxt_rx_stats_strings[] = { rx_runt_bytes)}, {"rx_runt_frames", offsetof(struct rx_port_stats, rx_runt_frames)}, + {"rx_pfc_ena_frames_pri0", offsetof(struct rx_port_stats, + rx_pfc_ena_frames_pri0)}, + {"rx_pfc_ena_frames_pri1", offsetof(struct rx_port_stats, + rx_pfc_ena_frames_pri1)}, + {"rx_pfc_ena_frames_pri2", offsetof(struct rx_port_stats, + rx_pfc_ena_frames_pri2)}, + {"rx_pfc_ena_frames_pri3", offsetof(struct rx_port_stats, + rx_pfc_ena_frames_pri3)}, + {"rx_pfc_ena_frames_pri4", offsetof(struct rx_port_stats, + rx_pfc_ena_frames_pri4)}, + {"rx_pfc_ena_frames_pri5", offsetof(struct rx_port_stats, + rx_pfc_ena_frames_pri5)}, + {"rx_pfc_ena_frames_pri6", offsetof(struct rx_port_stats, + rx_pfc_ena_frames_pri6)}, + {"rx_pfc_ena_frames_pri7", offsetof(struct rx_port_stats, + rx_pfc_ena_frames_pri7)}, }; static const struct bnxt_xstats_name_off bnxt_tx_stats_strings[] = { @@ -163,6 +179,22 @@ static const struct bnxt_xstats_name_off bnxt_tx_stats_strings[] = { tx_total_collisions)}, {"tx_bytes", offsetof(struct tx_port_stats, tx_bytes)}, + {"tx_pfc_ena_frames_pri0", offsetof(struct tx_port_stats, + tx_pfc_ena_frames_pri0)}, + {"tx_pfc_ena_frames_pri1", offsetof(struct tx_port_stats, + tx_pfc_ena_frames_pri1)}, + {"tx_pfc_ena_frames_pri2", offsetof(struct tx_port_stats, + tx_pfc_ena_frames_pri2)}, + {"tx_pfc_ena_frames_pri3", offsetof(struct tx_port_stats, + tx_pfc_ena_frames_pri3)}, + {"tx_pfc_ena_frames_pri4", offsetof(struct tx_port_stats, + tx_pfc_ena_frames_pri4)}, + {"tx_pfc_ena_frames_pri5", offsetof(struct tx_port_stats, + tx_pfc_ena_frames_pri5)}, + {"tx_pfc_ena_frames_pri6", offsetof(struct tx_port_stats, + tx_pfc_ena_frames_pri6)}, + {"tx_pfc_ena_frames_pri7", offsetof(struct tx_port_stats, + tx_pfc_ena_frames_pri7)}, }; static const struct bnxt_xstats_name_off bnxt_func_stats_strings[] = { -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2019-12-19 14:32:29.892672676 +0000 +++ 0089-net-bnxt-expose-some-missing-counters-in-port-stats.patch 2019-12-19 14:32:26.213299967 +0000 @@ -1,13 +1,14 @@ -From bd94753fc79c5a37e249ca440d081fdb7d5dc9fa Mon Sep 17 00:00:00 2001 +From 0b99dc969951865780d8f70f06ef0d440e79d8eb Mon Sep 17 00:00:00 2001 From: Somnath Kotur Date: Thu, 24 Oct 2019 13:14:25 +0530 Subject: [PATCH] net/bnxt: expose some missing counters in port stats +[ upstream commit bd94753fc79c5a37e249ca440d081fdb7d5dc9fa ] + Rx/Tx Port statistics record PFC enabled frames for each priority. Modify the Rx/Tx port stats array to report these as well. Fixes: bfb9c2260be2 ("net/bnxt: support xstats get/reset") -Cc: stable@dpdk.org Reviewed-by: Ajit Khaparde Signed-off-by: Somnath Kotur @@ -16,10 +17,10 @@ 1 file changed, 32 insertions(+) diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c -index fa29f9de19..40b496ac00 100644 +index e85db7f6d0..02e8e6ecbd 100644 --- a/drivers/net/bnxt/bnxt_stats.c +++ b/drivers/net/bnxt/bnxt_stats.c -@@ -81,6 +81,22 @@ static const struct bnxt_xstats_name_off bnxt_rx_stats_strings[] = { +@@ -108,6 +108,22 @@ static const struct bnxt_xstats_name_off bnxt_rx_stats_strings[] = { rx_runt_bytes)}, {"rx_runt_frames", offsetof(struct rx_port_stats, rx_runt_frames)}, @@ -42,7 +43,7 @@ }; static const struct bnxt_xstats_name_off bnxt_tx_stats_strings[] = { -@@ -136,6 +152,22 @@ static const struct bnxt_xstats_name_off bnxt_tx_stats_strings[] = { +@@ -163,6 +179,22 @@ static const struct bnxt_xstats_name_off bnxt_tx_stats_strings[] = { tx_total_collisions)}, {"tx_bytes", offsetof(struct tx_port_stats, tx_bytes)},