Skip to content

net/mlx5: cleanup for isolated mode

Nelio Laranjeiro dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest30 patches 3 repliesIn review
  2. v230 patches 39 repliesSuperseded
  3. v121 patches 2 repliesSuperseded

Changes in v3 from the cover letter

* Fix illegal access in Tx queue mp2mr cache.
* Fix some function documentations.
* Use priv_dev_traffic_restart() in vlan_filter_set().
* Fix a bug in flow priorities.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/30net/mlx5: merge action and flow parser structuredrivers/net/mlx5/mlx5_flow.c+73 -800 replies
2/30net/mlx5: remove flow director supportdoc/guides/nics/features/mlx5.ini doc/guides/nics/mlx5.rst drivers/net/mlx5/Makefile +7 more+44 -11280 replies
3/30net/mlx5: prefix Rx structures and functionsdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c +6 more+70 -650 replies
4/30net/mlx5: prefix Tx structures and functionsdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_mr.c +5 more+72 -660 replies
5/30net/mlx5: remove redundant started flagdrivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c drivers/net/mlx5/mlx5_rxq.c +2 more+5 -180 replies
6/30net/mlx5: verify all flows are been removed on closedrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c+27 -00 replies
7/30net/mlx5: fix reta update can segfaultdrivers/net/mlx5/mlx5_rss.c drivers/net/mlx5/mlx5_trigger.c+12 -40 replies
8/30net/mlx5: fix rxqs vector support verificationdrivers/net/mlx5/mlx5_rxtx_vec_sse.c+2 -00 replies
9/30net/mlx5: add reference counter on memory regiondrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_mr.c +3 more+216 -1010 replies
10/30net/mlx5: separate DPDK from Verbs Rx queue objectsdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c +3 more+462 -3060 replies
11/30net/mlx5: separate DPDK from Verbs Tx queue objectsdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_rxtx.h +1 more+308 -1930 replies
12/30net/mlx5: add reference counter on DPDK Tx queuesdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_mr.c +3 more+383 -2410 replies
13/30net/mlx5: add reference counter on DPDK Rx queuesdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_rxq.c +2 more+321 -2410 replies
14/30net/mlx5: make indirection tables shareabledrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c +3 more+214 -460 replies
15/30net/mlx5: add Hash Rx queue objectdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c +2 more+312 -1040 replies
16/30net/mlx5: fix clang compilation errordrivers/net/mlx5/mlx5_rxq.c+2 -40 replies
17/30net/mlx5: use flow to enable promiscuous modedrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_flow.c +4 more+166 -730 replies
18/30net/mlx5: use flow to enable all multi modedrivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_rxmode.c drivers/net/mlx5/mlx5_rxq.c +2 more+22 -430 replies
19/30net/mlx5: use flow to enable unicast trafficdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_defs.h +7 more+295 -9520 replies
20/30net/mlx5: handle a single RSS hash key for all protocolsdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_ethdev.c +2 more+56 -1330 replies
21/30net/mlx5: remove hash Rx queues supportdrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5.h drivers/net/mlx5/mlx5_rxq.c +2 more+4 -5570 replies
22/30net/mlx5: fully convert a flow to verbs in validatedrivers/net/mlx5/mlx5_flow.c+114 -800 replies
23/30net/mlx5: process flows actions before of itemsdrivers/net/mlx5/mlx5_flow.c+45 -450 replies
24/30net/mlx5: merge internal parser and actions structuresdrivers/net/mlx5/mlx5_flow.c+43 -510 replies
25/30net/mlx5: use a better name for the flow parserdrivers/net/mlx5/mlx5_flow.c+96 -1040 replies
26/30net/mlx5: reorganise functions in the filedrivers/net/mlx5/mlx5_flow.c+66 -660 replies
27/30net/mlx5: move Verbs flows and attributesdrivers/net/mlx5/mlx5_flow.c+27 -190 replies
28/30net/mlx5: handle RSS hash configuration in RSS flowdrivers/net/mlx5/mlx5_flow.c+1022 -4020 replies
29/30net/mlx5: support flow directordoc/guides/nics/features/mlx5.ini doc/guides/nics/mlx5.rst drivers/net/mlx5/mlx5_flow.c+481 -320 replies
30/30net/mlx5: add new operations for isolated modedrivers/net/mlx5/mlx5.c drivers/net/mlx5/mlx5_flow.c+45 -20 replies

Reviews trailers per patch

All 30 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYongseok Koh
SeriesA-b
1/30A-b
2/30A-b
3/30A-b
4/30A-b
5/30A-b
6/30A-b
7/30A-b
8/30A-b
9/30A-b
10/30A-b
11/30A-b
12/30A-b
13/30A-b
14/30A-b
15/30A-b
16/30A-b
17/30A-b
18/30A-b
19/30A-b
20/30A-b
21/30A-b
22/30A-b
23/30A-b
24/30A-b
25/30A-b
26/30A-b
27/30A-b
28/30A-b
29/30A-b
30/30A-b

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

Read the v3 thread

Cover letter [PATCH v3 00/30] net/mlx5: cleanup for isolated mode

This series cleanups the control plane part and the way it uses the different kind of objects (DPDK queues, Verbs Queues, ...). It has three goals:

1. Reduce the memory usage by sharing all possible objects.

2. Leave the configuration to the control plane and the creation/destruction of queues to the dev_start/dev_stop() to have a better control on object and easily apply the configuration.

3. Create all flows through the generic flow API, it will also help to implement a detection collision algorithm as all flows are using the same service and thus the same kind of object.

Changes in v3:

* Fix illegal access in Tx queue mp2mr cache.
* Fix some function documentations.
* Use priv_dev_traffic_restart() in vlan_filter_set().
* Fix a bug in flow priorities.

Changes in v2:

* Rebase on upstream rdma-core/MLNX_OFED 4.2
* Split in smaller patches

Nelio Laranjeiro (30):
net/mlx5: merge action and flow parser structure net/mlx5: remove flow director support net/mlx5: prefix Rx structures and functions net/mlx5: prefix Tx structures and functions net/mlx5: remove redundant started flag net/mlx5: verify all flows are been removed on close net/mlx5: fix reta update can segfault net/mlx5: fix rxqs vector support verification net/mlx5: add reference counter on memory region net/mlx5: separate DPDK from Verbs Rx queue objects net/mlx5: separate DPDK from Verbs Tx queue objects net/mlx5: add reference counter on DPDK Tx queues net/mlx5: add reference counter on DPDK Rx queues net/mlx5: make indirection tables shareable net/mlx5: add Hash Rx queue object
net/mlx5: fix clang compilation error
net/mlx5: use flow to enable promiscuous mode net/mlx5: use flow to enable all multi mode net/mlx5: use flow to enable unicast traffic net/mlx5: handle a single RSS hash key for all protocols net/mlx5: remove hash Rx queues support net/mlx5: fully convert a flow to verbs in validate net/mlx5: process flows actions before of items net/mlx5: merge internal parser and actions structures net/mlx5: use a better name for the flow parser net/mlx5: reorganise functions in the file net/mlx5: move Verbs flows and attributes net/mlx5: handle RSS hash configuration in RSS flow net/mlx5: support flow director
net/mlx5: add new operations for isolated mode

 drivers/net/mlx5/Makefile            |    1 -
 drivers/net/mlx5/mlx5.c              |  134 +-
 drivers/net/mlx5/mlx5.h              |   91 +-
 drivers/net/mlx5/mlx5_defs.h         |    3 -
 drivers/net/mlx5/mlx5_ethdev.c       |   27 +-
 drivers/net/mlx5/mlx5_fdir.c         | 1091 ---------------
 drivers/net/mlx5/mlx5_flow.c         | 2475 +++++++++++++++++++++++++---------
 drivers/net/mlx5/mlx5_mac.c          |  407 +-----
 drivers/net/mlx5/mlx5_mr.c           |  276 ++--
 drivers/net/mlx5/mlx5_rss.c          |  136 +-
 drivers/net/mlx5/mlx5_rxmode.c       |  380 +-----
 drivers/net/mlx5/mlx5_rxq.c          | 1999 ++++++++++++++-------------
 drivers/net/mlx5/mlx5_rxtx.c         |   39 +-
 drivers/net/mlx5/mlx5_rxtx.h         |  286 ++--
 drivers/net/mlx5/mlx5_rxtx_vec_sse.c |   42 +-
 drivers/net/mlx5/mlx5_stats.c        |    4 +-
 drivers/net/mlx5/mlx5_trigger.c      |  320 ++++-
 drivers/net/mlx5/mlx5_txq.c          |  876 +++++++-----
 drivers/net/mlx5/mlx5_utils.h        |    2 +
 drivers/net/mlx5/mlx5_vlan.c         |   56 +-
 20 files changed, 4247 insertions(+), 4398 deletions(-)
 delete mode 100644 drivers/net/mlx5/mlx5_fdir.c
Signature · 1 line
2.1.4