From: Jakub Kicinski <kuba@kernel.org>
To: davem@davemloft.net
Cc: mkubecek@suse.cz, michael.chan@broadcom.com, saeedm@nvidia.com,
tariqt@nvidia.com, andrew@lunn.ch, alexander.duyck@gmail.com,
netdev@vger.kernel.org, Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH net-next v3 0/8] ethtool: add pause frame stats
Date: Mon, 14 Sep 2020 17:11:51 -0700 [thread overview]
Message-ID: <20200915001159.346469-1-kuba@kernel.org> (raw)
Hi!
This is the first (small) series which exposes some stats via
the corresponding ethtool interface. Here (thanks to the
excitability of netlink) we expose pause frame stats via
the same interfaces as ethtool -a / -A.
In particular the following stats from the standard:
- 30.3.4.2 aPAUSEMACCtrlFramesTransmitted
- 30.3.4.3 aPAUSEMACCtrlFramesReceived
4 real drivers are converted, I believe we got confirmation
from maintainers that all exposed stats match the standard.
v3:
- fix mlx5 build
- adjust the init logic in patch 1
v2:
- netdevsim: add missing static
- bnxt: fix sparse warning
- mlx5: address Saeed's comments
Jakub Kicinski (8):
ethtool: add standard pause stats
docs: net: include the new ethtool pause stats in the stats doc
netdevsim: add pause frame stats
selftests: add a test for ethtool pause stats
bnxt: add pause frame stats
ixgbe: add pause frame stats
mlx5: add pause frame stats
mlx4: add pause frame stats
Documentation/networking/ethtool-netlink.rst | 11 ++
Documentation/networking/statistics.rst | 57 ++++++++-
.../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 17 +++
.../net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 11 ++
.../net/ethernet/mellanox/mlx4/en_ethtool.c | 19 +++
.../net/ethernet/mellanox/mlx4/mlx4_stats.h | 12 ++
.../ethernet/mellanox/mlx5/core/en_ethtool.c | 9 ++
.../net/ethernet/mellanox/mlx5/core/en_rep.c | 9 ++
.../ethernet/mellanox/mlx5/core/en_stats.c | 29 +++++
.../ethernet/mellanox/mlx5/core/en_stats.h | 3 +
drivers/net/netdevsim/Makefile | 2 +-
drivers/net/netdevsim/ethtool.c | 64 +++++++++++
drivers/net/netdevsim/netdev.c | 1 +
drivers/net/netdevsim/netdevsim.h | 11 ++
include/linux/ethtool.h | 26 +++++
include/uapi/linux/ethtool_netlink.h | 18 ++-
net/ethtool/pause.c | 63 +++++++++-
.../drivers/net/netdevsim/ethtool-pause.sh | 108 ++++++++++++++++++
18 files changed, 462 insertions(+), 8 deletions(-)
create mode 100644 drivers/net/netdevsim/ethtool.c
create mode 100755 tools/testing/selftests/drivers/net/netdevsim/ethtool-pause.sh
--
2.26.2
next reply other threads:[~2020-09-15 0:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-15 0:11 Jakub Kicinski [this message]
2020-09-15 0:11 ` [PATCH net-next v3 1/8] ethtool: add standard pause stats Jakub Kicinski
2020-09-15 0:11 ` [PATCH net-next v3 2/8] docs: net: include the new ethtool pause stats in the stats doc Jakub Kicinski
2020-09-15 0:11 ` [PATCH net-next v3 3/8] netdevsim: add pause frame stats Jakub Kicinski
2020-09-15 0:11 ` [PATCH net-next v3 4/8] selftests: add a test for ethtool pause stats Jakub Kicinski
2020-09-15 0:11 ` [PATCH net-next v3 5/8] bnxt: add pause frame stats Jakub Kicinski
2020-09-15 0:18 ` Michael Chan
2020-09-15 0:11 ` [PATCH net-next v3 6/8] ixgbe: " Jakub Kicinski
2020-09-15 0:11 ` [PATCH net-next v3 7/8] mlx5: " Jakub Kicinski
2020-09-15 0:11 ` [PATCH net-next v3 8/8] mlx4: " Jakub Kicinski
2020-09-15 20:26 ` [PATCH net-next v3 0/8] ethtool: " David Miller
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=20200915001159.346469-1-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=alexander.duyck@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=michael.chan@broadcom.com \
--cc=mkubecek@suse.cz \
--cc=netdev@vger.kernel.org \
--cc=saeedm@nvidia.com \
--cc=tariqt@nvidia.com \
/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;
as well as URLs for NNTP newsgroup(s).