Skip to content

net/mlx5: fix imissed statistic

Matan Azrad dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4common/mlx5/linux: add glue function to query WQdrivers/common/mlx5/linux/mlx5_glue.c drivers/common/mlx5/linux/mlx5_glue.h+20 -01 reply
2/4common/mlx5: add DevX command to query WQdrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h drivers/common/mlx5/mlx5_prm.h +1 more+51 -01 reply
3/4common/mlx5: add DevX commands for queue countersdrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h drivers/common/mlx5/mlx5_prm.h +1 more+162 -11 reply
4/4net/mlx5: fix imissed statisticsdrivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h +1 more+60 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchViacheslav Ovsiienko
SeriesSeries-acked-by
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [dpdk-dev] [PATCH 0/4] net/mlx5: fix imissed statistic

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

 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(-)
Signature · 1 line
1.8.3.1