From: Joe Damato <jdamato@fastly.com>
To: Sanman Pradhan <sanman.p211993@gmail.com>
Cc: netdev@vger.kernel.org, alexanderduyck@fb.com, kuba@kernel.org,
kernel-team@meta.com, davem@davemloft.net, edumazet@google.com,
pabeni@redhat.com, horms@kernel.org, corbet@lwn.net,
mohsin.bashr@gmail.com, sanmanpradhan@meta.com,
andrew+netdev@lunn.ch, vadim.fedorenko@linux.dev,
sdf@fomichev.me, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v5] eth: fbnic: Add PCIe hardware statistics
Date: Mon, 11 Nov 2024 12:25:51 -0800 [thread overview]
Message-ID: <ZzJoT-YLUHuvK1wk@LQ3V64L9R2> (raw)
In-Reply-To: <20241111195715.1619855-1-sanman.p211993@gmail.com>
On Mon, Nov 11, 2024 at 11:57:15AM -0800, Sanman Pradhan wrote:
> Add PCIe hardware statistics support to the fbnic driver. These stats
> provide insight into PCIe transaction performance and error conditions.
>
> Which includes, read/write and completion TLP counts and DWORD counts and
> debug counters for tag, completion credit and NP credit exhaustion
>
> The stats are exposed via debugfs and can be used to monitor PCIe
> performance and debug PCIe issues.
>
> Signed-off-by: Sanman Pradhan <sanman.p211993@gmail.com>
> ---
> v5:
> - Add missing fbnic_dbg_init, fbnic_dbg_exit, fbnic_dbg_fbd_init and fbnic_dbg_fbd_exit functions
> - Add missing entry in fbnic.h
> - Tested on 1-NIC 2-Host system
> - Test Logs:
> Without ping <remote_host>
> # cat /sys/kernel/debug/fbnic/0000\:01\:00.0/pcie_stats
> ob_rd_tlp: 88724
> ob_rd_dword: 1363273
> ob_wr_tlp: 980410
> ob_wr_dword: 105006453
> ob_cpl_tlp: 98665
> ob_cpl_dword: 1363273
> ob_rd_no_tag: 0
> ob_rd_no_cpl_cred: 0
> ob_rd_no_np_cred: 0
> With ping <remote_host>
> # cat /sys/kernel/debug/fbnic/0000\:01\:00.0/pcie_stats
> ob_rd_tlp: 114081
> ob_rd_dword: 1902295
> ob_wr_tlp: 1098457
> ob_wr_dword: 112936622
> ob_cpl_tlp: 128409
> ob_cpl_dword: 1902295
> ob_rd_no_tag: 0
> ob_rd_no_cpl_cred: 0
> ob_rd_no_np_cred: 0
> v4:
> - https://patchwork.kernel.org/project/netdevbpf/patch/20241109025905.1531196-1-sanman.p211993@gmail.com/
> - Fix indentations
> - Adding missing updates for previous versions
> v3:
> - https://patchwork.kernel.org/project/netdevbpf/patch/20241108204640.3165724-1-sanman.p211993@gmail.com/
> - Moved PCIe stats to debugfs
> v2:
> - https://patchwork.kernel.org/project/netdevbpf/patch/20241107020555.321245-1-sanman.p211993@gmail.com/
> - Removed unnecessary code blocks
> - Rephrased the commit message
> v1:
> - https://patchwork.kernel.org/project/netdevbpf/patch/20241106002625.1857904-1-sanman.p211993@gmail.com/
> ---
> .../device_drivers/ethernet/meta/fbnic.rst | 26 ++++
> drivers/net/ethernet/meta/fbnic/Makefile | 1 +
> drivers/net/ethernet/meta/fbnic/fbnic.h | 6 +
> drivers/net/ethernet/meta/fbnic/fbnic_csr.h | 37 ++++++
> .../net/ethernet/meta/fbnic/fbnic_debugfs.c | 68 +++++++++++
> .../net/ethernet/meta/fbnic/fbnic_devlink.c | 4 +
> .../net/ethernet/meta/fbnic/fbnic_hw_stats.c | 114 ++++++++++++++++++
> .../net/ethernet/meta/fbnic/fbnic_hw_stats.h | 12 ++
> .../net/ethernet/meta/fbnic/fbnic_netdev.c | 3 +
> drivers/net/ethernet/meta/fbnic/fbnic_pci.c | 8 +-
> 10 files changed, 278 insertions(+), 1 deletion(-)
> create mode 100644 drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
Just FYI this patch does not seem to apply to net-next/main. Did you
rebase?
next prev parent reply other threads:[~2024-11-11 20:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-11 19:57 [PATCH net-next v5] eth: fbnic: Add PCIe hardware statistics Sanman Pradhan
2024-11-11 20:25 ` Joe Damato [this message]
2024-11-12 0:09 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZzJoT-YLUHuvK1wk@LQ3V64L9R2 \
--to=jdamato@fastly.com \
--cc=alexanderduyck@fb.com \
--cc=andrew+netdev@lunn.ch \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kernel-team@meta.com \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mohsin.bashr@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sanman.p211993@gmail.com \
--cc=sanmanpradhan@meta.com \
--cc=sdf@fomichev.me \
--cc=vadim.fedorenko@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox