DPDK patches and discussions
 help / color / mirror / Atom feed
From: Shani Peretz <shperetz@nvidia.com>
To: <dev@dpdk.org>
Cc: <ferruh.yigit@amd.com>, <stephen@networkplumber.org>,
	Shani Peretz <shperetz@nvidia.com>
Subject: [PATCH v2 0/3] add new API to enable/disable xstat counters
Date: Fri, 24 Jan 2025 13:43:32 +0200	[thread overview]
Message-ID: <20250124114336.16610-1-shperetz@nvidia.com> (raw)
In-Reply-To: <20241222153819.62519-1-shperetz@nvidia.com>

These series introduce new API functionality to manage xstats counters, allowing users to enable, disable, and query them.
Additionally, we've implemented testpmd commands to show xstats along with their current state. 
The changes also include a new feature in the mlx5 driver that utilizes these APIs, introducing a new xstat counter designed to track hairpin packet drops.

Shani Peretz (3):
  ethdev: add new API to enable/disable xstat by counters ID
  app/testpmd: added testpmd commands to enable/disable xstat
  net/mlx5: add port and queue level counters of hairpin drops

 app/test-pmd/cmdline.c                  | 125 ++++++++++
 app/test-pmd/config.c                   |  96 ++++++++
 app/test-pmd/testpmd.c                  |  10 +
 app/test-pmd/testpmd.h                  |   5 +
 drivers/common/mlx5/mlx5_devx_cmds.c    |   9 +-
 drivers/common/mlx5/mlx5_devx_cmds.h    |   2 +-
 drivers/common/mlx5/mlx5_prm.h          |   3 +
 drivers/net/mlx5/linux/mlx5_ethdev_os.c |   5 +
 drivers/net/mlx5/linux/mlx5_os.c        |  21 +-
 drivers/net/mlx5/mlx5.c                 | 288 ++++++++++++++++++++++-
 drivers/net/mlx5/mlx5.h                 |  28 ++-
 drivers/net/mlx5/mlx5_devx.c            |  75 ++----
 drivers/net/mlx5/mlx5_rx.h              |  20 ++
 drivers/net/mlx5/mlx5_rxq.c             |  36 +++
 drivers/net/mlx5/mlx5_stats.c           | 292 +++++++++++++++++++++++-
 drivers/net/mlx5/windows/mlx5_os.c      |   3 +-
 lib/cmdline/cmdline_parse_bool.c        |  49 ++++
 lib/cmdline/cmdline_parse_bool.h        |  39 ++++
 lib/cmdline/cmdline_parse_num.c         |   2 +-
 lib/cmdline/cmdline_parse_num.h         |   1 +
 lib/cmdline/meson.build                 |   2 +
 lib/cmdline/version.map                 |   7 +
 lib/ethdev/ethdev_driver.h              |  13 ++
 lib/ethdev/rte_ethdev.c                 |  49 ++++
 lib/ethdev/rte_ethdev.h                 |  32 +++
 lib/ethdev/version.map                  |   2 +
 26 files changed, 1122 insertions(+), 92 deletions(-)
 create mode 100644 lib/cmdline/cmdline_parse_bool.c
 create mode 100644 lib/cmdline/cmdline_parse_bool.h

-- 
2.34.1


  parent reply	other threads:[~2025-01-24 11:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-22 15:38 [RFC PATCH] ethdev: add new API for enable/disable xstat counters by ID Shani Peretz
2024-12-22 16:46 ` Stephen Hemminger
2024-12-23 10:46   ` Shani Peretz
2024-12-24 17:19     ` Stephen Hemminger
2025-01-01 19:05       ` Shani Peretz
2025-01-10  4:36 ` Stephen Hemminger
2025-01-24 11:43 ` Shani Peretz [this message]
2025-01-24 11:43   ` [PATCH v2 1/3] ethdev: add new API to enable/disable xstat by counters ID Shani Peretz
2025-01-24 11:43   ` [PATCH v2 2/3] app/testpmd: added testpmd commands to enable/disable xstat Shani Peretz
2025-01-24 11:43   ` [PATCH v2 3/3] net/mlx5: add port and queue level counters of hairpin drops Shani Peretz

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=20250124114336.16610-1-shperetz@nvidia.com \
    --to=shperetz@nvidia.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@amd.com \
    --cc=stephen@networkplumber.org \
    /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).