Skip to content

net/mlx5: make counter thread safe

Suanming Mou dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyIn review
  2. v16 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Optimize the fallback non-batch counter memory.
- Add MLX5_ prefix to counter macro.
- Rebase on top of the latest code.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8net/mlx5: locate aging pools in the general containerdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c +2 more+56 -670 replies
2/8net/mlx5: optimize shared counter memorydrivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow_dv.c drivers/net/mlx5/mlx5_flow_verbs.c+93 -810 replies
3/8net/mlx5: remove single counter containerdrivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h +4 more+258 -3500 replies
4/8net/mlx5: synchronize flow counter pool creationdrivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h +3 more+177 -1460 replies
5/8net/mlx5: make three level table thread safedrivers/net/mlx5/mlx5_utils.c drivers/net/mlx5/mlx5_utils.h+224 -480 replies
6/8net/mlx5: make shared counters thread safedrivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow_dv.c drivers/net/mlx5/mlx5_flow_verbs.c+73 -770 replies
7/8net/mlx5: rename flow counter macrodrivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow_dv.c drivers/net/mlx5/mlx5_flow_verbs.c+17 -170 replies
8/8net/mlx5: optimize counter extend memorydrivers/net/mlx5/linux/mlx5_os.c drivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h +3 more+100 -1060 replies

Reviews trailers per patch

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

PatchMatan Azrad
1/8A-b
2/8A-b
3/8A-b
4/8A-b
5/8A-b
6/8A-b
7/8A-b
8/8A-b

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

Read the v2 thread

Cover letter [dpdk-dev] [PATCH v2 0/8] net/mlx5: make counter thread safe

The mlx5 PMD is going to support multiple-thread flow operations. This patchset makes the counter action to be thread safe.

Suanming Mou (8):
net/mlx5: locate aging pools in the general container net/mlx5: optimize shared counter memory net/mlx5: remove single counter container net/mlx5: synchronize flow counter pool creation net/mlx5: make three level table thread safe net/mlx5: make shared counters thread safe net/mlx5: rename flow counter macro net/mlx5: optimize counter extend memory

--

v2:
- Optimize the fallback non-batch counter memory.
- Add MLX5_ prefix to counter macro.
- Rebase on top of the latest code.

--

 drivers/net/mlx5/linux/mlx5_os.c   |  53 ++-
 drivers/net/mlx5/mlx5.c            |  51 ++-
 drivers/net/mlx5/mlx5.h            | 146 ++++----
 drivers/net/mlx5/mlx5_flow.c       | 183 ++++++----
 drivers/net/mlx5/mlx5_flow.h       |   1 +
 drivers/net/mlx5/mlx5_flow_dv.c    | 706 ++++++++++++++-----------------------
 drivers/net/mlx5/mlx5_flow_verbs.c | 130 ++++---
 drivers/net/mlx5/mlx5_utils.c      | 191 ++++++++--
 drivers/net/mlx5/mlx5_utils.h      |  81 ++++-
 9 files changed, 824 insertions(+), 718 deletions(-)
Signature · 1 line
1.8.3.1