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 59D65A04F0 for ; Tue, 10 Dec 2019 16:01:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 50F371BE80; Tue, 10 Dec 2019 16:01:14 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id C29471BF30 for ; Tue, 10 Dec 2019 16:01:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575990072; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vHB3UF/uzmQFwm3EGnGmGrBzuT+xYSqiwOMbXdrwts0=; b=LIcNtHzgZ2w8nRwefpkaDN+R7Du9t9+7jGl80DQr7yYB9a5LD9OiHYkUZRkcDP25/TnQ+m 48uSYJORdkSxkqq06Cf3d6rlBtyCAW8/2mYpfRZFFgc0L1w2xzGq3oHcQcwbFIu/OMzWTY zCHWmc5Z7x6xrNzYFJ06Wx2CbEF/iA4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-20-d5kK-lCkMF2lcvGZedNU2A-1; Tue, 10 Dec 2019 10:01:00 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C1D04477; Tue, 10 Dec 2019 15:00:58 +0000 (UTC) Received: from rh.redhat.com (ovpn-116-64.ams2.redhat.com [10.36.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id B3A5A5D9C5; Tue, 10 Dec 2019 15:00:57 +0000 (UTC) From: Kevin Traynor To: Somnath Kotur Cc: Ajit Khaparde , dpdk stable Date: Tue, 10 Dec 2019 14:59:11 +0000 Message-Id: <20191210145937.32755-37-ktraynor@redhat.com> In-Reply-To: <20191210145937.32755-1-ktraynor@redhat.com> References: <20191210145937.32755-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: d5kK-lCkMF2lcvGZedNU2A-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'net/bnxt: expose some missing counters in port stats' has been queued to LTS release 18.11.6 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 18.11.6 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/16/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 rebasi= ng (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/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/497f7adf0de7c8c66b= 7e4f99b823320cabce9848 Thanks. Kevin. --- >From 497f7adf0de7c8c66b7e4f99b823320cabce9848 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 e0f70781a..ad88fbfe7 100644 --- a/drivers/net/bnxt/bnxt_stats.c +++ b/drivers/net/bnxt/bnxt_stats.c @@ -81,4 +81,20 @@ static const struct bnxt_xstats_name_off bnxt_rx_stats_s= trings[] =3D { =09{"rx_runt_frames", offsetof(struct rx_port_stats, =09=09=09=09rx_runt_frames)}, +=09{"rx_pfc_ena_frames_pri0", offsetof(struct rx_port_stats, +=09=09=09=09rx_pfc_ena_frames_pri0)}, +=09{"rx_pfc_ena_frames_pri1", offsetof(struct rx_port_stats, +=09=09=09=09rx_pfc_ena_frames_pri1)}, +=09{"rx_pfc_ena_frames_pri2", offsetof(struct rx_port_stats, +=09=09=09=09rx_pfc_ena_frames_pri2)}, +=09{"rx_pfc_ena_frames_pri3", offsetof(struct rx_port_stats, +=09=09=09=09rx_pfc_ena_frames_pri3)}, +=09{"rx_pfc_ena_frames_pri4", offsetof(struct rx_port_stats, +=09=09=09=09rx_pfc_ena_frames_pri4)}, +=09{"rx_pfc_ena_frames_pri5", offsetof(struct rx_port_stats, +=09=09=09=09rx_pfc_ena_frames_pri5)}, +=09{"rx_pfc_ena_frames_pri6", offsetof(struct rx_port_stats, +=09=09=09=09rx_pfc_ena_frames_pri6)}, +=09{"rx_pfc_ena_frames_pri7", offsetof(struct rx_port_stats, +=09=09=09=09rx_pfc_ena_frames_pri7)}, }; =20 @@ -136,4 +152,20 @@ static const struct bnxt_xstats_name_off bnxt_tx_stats= _strings[] =3D { =09{"tx_bytes", offsetof(struct tx_port_stats, =09=09=09=09tx_bytes)}, +=09{"tx_pfc_ena_frames_pri0", offsetof(struct tx_port_stats, +=09=09=09=09tx_pfc_ena_frames_pri0)}, +=09{"tx_pfc_ena_frames_pri1", offsetof(struct tx_port_stats, +=09=09=09=09tx_pfc_ena_frames_pri1)}, +=09{"tx_pfc_ena_frames_pri2", offsetof(struct tx_port_stats, +=09=09=09=09tx_pfc_ena_frames_pri2)}, +=09{"tx_pfc_ena_frames_pri3", offsetof(struct tx_port_stats, +=09=09=09=09tx_pfc_ena_frames_pri3)}, +=09{"tx_pfc_ena_frames_pri4", offsetof(struct tx_port_stats, +=09=09=09=09tx_pfc_ena_frames_pri4)}, +=09{"tx_pfc_ena_frames_pri5", offsetof(struct tx_port_stats, +=09=09=09=09tx_pfc_ena_frames_pri5)}, +=09{"tx_pfc_ena_frames_pri6", offsetof(struct tx_port_stats, +=09=09=09=09tx_pfc_ena_frames_pri6)}, +=09{"tx_pfc_ena_frames_pri7", offsetof(struct tx_port_stats, +=09=09=09=09tx_pfc_ena_frames_pri7)}, }; =20 --=20 2.21.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092019-12-10 14:49:41.599622897 +0000 +++ 0037-net-bnxt-expose-some-missing-counters-in-port-stats.patch=092019-1= 2-10 14:49:39.067457488 +0000 @@ -1 +1 @@ -From bd94753fc79c5a37e249ca440d081fdb7d5dc9fa Mon Sep 17 00:00:00 2001 +From 497f7adf0de7c8c66b7e4f99b823320cabce9848 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit bd94753fc79c5a37e249ca440d081fdb7d5dc9fa ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index fa29f9de1..40b496ac0 100644 +index e0f70781a..ad88fbfe7 100644 @@ -22 +23 @@ -@@ -82,4 +82,20 @@ static const struct bnxt_xstats_name_off bnxt_rx_stats_= strings[] =3D { +@@ -81,4 +81,20 @@ static const struct bnxt_xstats_name_off bnxt_rx_stats_= strings[] =3D { @@ -43 +44 @@ -@@ -137,4 +153,20 @@ static const struct bnxt_xstats_name_off bnxt_tx_stat= s_strings[] =3D { +@@ -136,4 +152,20 @@ static const struct bnxt_xstats_name_off bnxt_tx_stat= s_strings[] =3D {