DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/4] net/mlx5: fix imissed statistic
@ 2021-02-25 10:44 Matan Azrad
  2021-02-25 10:44 ` [dpdk-dev] [PATCH 1/4] common/mlx5/linux: add glue function to query WQ Matan Azrad
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Matan Azrad @ 2021-02-25 10:44 UTC (permalink / raw)
  To: dev; +Cc: Viacheslav Ovsiienko

The imissed port statistic counts packets that were dropped
by the device Rx queues.

In mlx5, the imissed counter summarizes 2 counters:
	- packets dropped by the SW queue handling counted by SW.
	- packets dropped by the HW queues due to "out of buffer" events
	  detected when no SW buffer is available for the incoming
	  packets.

There is HW counter object that should be created per device, and all
the Rx queues should be assigned to this counter in configuration time.

This part was missed when the Rx queues were created by DevX what
remained the "out of buffer" counter clean forever in this case.

Add 2 options to assign the DevX Rx queues to queue counter:
	- Create queue counter per device by DevX and assign all the
	  queues to it.
	- Query the kernel counter and assign all the queues to it.

Use the first option by default and if it is failed, fallback to the
second option.

Matan Azrad (4):
  common/mlx5/linux: add glue function to query WQ
  common/mlx5: add DevX command to query WQ
  common/mlx5: add DevX commands for queue counters
  net/mlx5: fix imissed statistics

Series-acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>


 drivers/common/mlx5/linux/mlx5_glue.c |  18 ++++++
 drivers/common/mlx5/linux/mlx5_glue.h |   2 +
 drivers/common/mlx5/mlx5_devx_cmds.c  | 100 ++++++++++++++++++++++++++++++++++
 drivers/common/mlx5/mlx5_devx_cmds.h  |   9 +++
 drivers/common/mlx5/mlx5_prm.h        | 100 ++++++++++++++++++++++++++++++++++
 drivers/common/mlx5/version.map       |   5 +-
 drivers/net/mlx5/linux/mlx5_os.c      |  52 ++++++++++++++++++
 drivers/net/mlx5/mlx5.c               |   4 ++
 drivers/net/mlx5/mlx5.h               |   2 +
 drivers/net/mlx5/mlx5_devx.c          |   2 +
 10 files changed, 293 insertions(+), 1 deletion(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-03-03 16:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-25 10:44 [dpdk-dev] [PATCH 0/4] net/mlx5: fix imissed statistic Matan Azrad
2021-02-25 10:44 ` [dpdk-dev] [PATCH 1/4] common/mlx5/linux: add glue function to query WQ Matan Azrad
2021-03-03 13:58   ` Slava Ovsiienko
2021-02-25 10:44 ` [dpdk-dev] [PATCH 2/4] common/mlx5: add DevX command " Matan Azrad
2021-03-03 13:58   ` Slava Ovsiienko
2021-02-25 10:45 ` [dpdk-dev] [PATCH 3/4] common/mlx5: add DevX commands for queue counters Matan Azrad
2021-03-03 13:59   ` Slava Ovsiienko
2021-02-25 10:45 ` [dpdk-dev] [PATCH 4/4] net/mlx5: fix imissed statistics Matan Azrad
2021-03-03 13:59   ` Slava Ovsiienko
2021-03-03 16:28 ` [dpdk-dev] [PATCH 0/4] net/mlx5: fix imissed statistic Raslan Darawsheh

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).