Refactor mlx5_ib_create_qp
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest36 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/36 | RDMA/mlx5: Organize QP types checks in one placedrivers/ | +68 | 0 replies | |
| 2/36 | RDMA/mlx5: Delete impossible GSI port checkdrivers/ | +0 | 0 replies | |
| 3/36 | RDMA/mlx5: Perform check if QP creation flow is validdrivers/ | +61 | 0 replies | |
| 4/36 | RDMA/mlx5: Prepare QP allocation for future removaldrivers/ | +20 | 0 replies | |
| 5/36 | RDMA/mlx5: Avoid setting redundant NULL for XRC QPsdrivers/ | +1 | 0 replies | |
| 6/36 | RDMA/mlx5: Set QP subtype immediately when it is knowndrivers/ | +2 | 0 replies | |
| 7/36 | RDMA/mlx5: Separate create QP flows to be based on typedrivers/ | +39 | 0 replies | |
| 8/36 | RDMA/mlx5: Split scatter CQE configuration for DCT QPdrivers/ | +6 | 0 replies | |
| 9/36 | RDMA/mlx5: Update all DRIVER QP places to use QP subtypedrivers/ | +15 | 0 replies | |
| 10/36 | RDMA/mlx5: Move DRIVER QP flags check into separate functiondrivers/ | +43 | 0 replies | |
| 11/36 | RDMA/mlx5: Remove second copy from user for non RSS RAW QPsdrivers/ | +27 | 0 replies | |
| 12/36 | RDMA/mlx5: Initial separation of RAW_PACKET QP from common flowdrivers/ | +17 | 0 replies | |
| 13/36 | RDMA/mlx5: Delete create QP flags obfuscationdrivers/ drivers/ drivers/ +2 more | +47 | 0 replies | |
| 14/36 | RDMA/mlx5: Process create QP flags in one placedrivers/ | +101 | 0 replies | |
| 15/36 | RDMA/mlx5: Use flags_en mechanism to mark QP created with WQE signaturedrivers/ drivers/ drivers/ | +23 | 0 replies | |
| 16/36 | RDMA/mlx5: Change scatter CQE flag to be set like other vendor flagsdrivers/ drivers/ | +10 | 0 replies | |
| 17/36 | RDMA/mlx5: Return all configured create flags through query QPdrivers/ drivers/ | +2 | 0 replies | |
| 18/36 | RDMA/mlx5: Process all vendor flags in one placedrivers/ | +71 | 0 replies | |
| 19/36 | RDMA/mlx5: Delete unsupported QP typesdrivers/ | +1 | 0 replies | |
| 20/36 | RDMA/mlx5: Store QP type in the vendor QP structuredrivers/ drivers/ drivers/ | +74 | 0 replies | |
| 21/36 | RDMA/mlx5: Promote RSS RAW QP attribute check in higher leveldrivers/ | +3 | 0 replies | |
| 22/36 | RDMA/mlx5: Combine copy of create QP command in RSS RAW QPdrivers/ | +82 | 0 replies | |
| 23/36 | RDMA/mlx5: Remove second user copy in create_user_qpdrivers/ | +15 | 0 replies | |
| 24/36 | RDMA/mlx5: Rely on existence of udata to separate kernel/user flowsdrivers/ drivers/ | +10 | 0 replies | |
| 25/36 | RDMA/mlx5: Delete impossible inlen checkdrivers/ | +0 | 0 replies | |
| 26/36 | RDMA/mlx5: Globally parse DEVX UIDdrivers/ | +27 | 0 replies | |
| 27/36 | RDMA/mlx5: Separate XRC_TGT QP creation from common flowdrivers/ | +106 | 0 replies | |
| 28/36 | RDMA/mlx5: Separate to user/kernel create QP flowsdrivers/ | +156 | 0 replies | |
| 29/36 | RDMA/mlx5: Reduce amount of duplication in QP destroydrivers/ | +31 | 0 replies | |
| 30/36 | RDMA/mlx5: Group all create QP parameters to simplify in-kernel interfacesdrivers/ | +81 | 0 replies | |
| 31/36 | RDMA/mlx5: Promote RSS RAW QP flags check to higher leveldrivers/ | +10 | 0 replies | |
| 32/36 | RDMA/mlx5: Handle udate outlen checks in one placedrivers/ | +30 | 0 replies | |
| 33/36 | RDMA/mlx5: Copy response to the user in one placedrivers/ | +52 | 0 replies | |
| 34/36 | RDMA/mlx5: Remove redundant destroy QP calldrivers/ | +1 | 0 replies | |
| 35/36 | RDMA/mlx5: Consolidate into special function all create QP callsdrivers/ | +49 | 0 replies | |
| 36/36 | RDMA/mlx5: Verify that QP is created with RQ or SQdrivers/ | +2 | 0 replies |
Reviews trailers per patch
All 36 patches have a Reviewed-by or Acked-by.
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH rdma-next v1 00/36] Refactor mlx5_ib_create_qp
From: Leon Romanovsky <[email protected]>
Changelog
v1: * Combined both series to easy apply
* Rebsed on top of rdma-next + mlx5-next
* Fixed create_qp flags check
v0: https://lore.kernel.org/lkml/[email protected]
https://lore.kernel.org/lkml/[email protected]
-----------------------------------------------------------------------------
Hi,
This is first part of series which tries to return some sanity to mlx5_ib_create_qp() function. Such refactoring is required to make extension of that function with less worries of breaking driver.
Extra goal of such refactoring is to ensure that QP is allocated at the beginning of function and released at the end. It will allow us to move QP allocation to be under IB/core responsibility.
It is based on previously sent [1] "[PATCH mlx5-next 00/24] Mass conversion to light mlx5 command interface"
Thanks
[1]
https://lore.kernel.org/linux-rdma/[email protected]
Aharon Landau (1):
RDMA/mlx5: Verify that QP is created with RQ or SQ
Leon Romanovsky (35):
RDMA/mlx5: Organize QP types checks in one place RDMA/mlx5: Delete impossible GSI port check
RDMA/mlx5: Perform check if QP creation flow is valid RDMA/mlx5: Prepare QP allocation for future removal RDMA/mlx5: Avoid setting redundant NULL for XRC QPs RDMA/mlx5: Set QP subtype immediately when it is known RDMA/mlx5: Separate create QP flows to be based on type RDMA/mlx5: Split scatter CQE configuration for DCT QP RDMA/mlx5: Update all DRIVER QP places to use QP subtype RDMA/mlx5: Move DRIVER QP flags check into separate function RDMA/mlx5: Remove second copy from user for non RSS RAW QPs RDMA/mlx5: Initial separation of RAW_PACKET QP from common flow RDMA/mlx5: Delete create QP flags obfuscation
RDMA/mlx5: Process create QP flags in one place RDMA/mlx5: Use flags_en mechanism to mark QP created with WQE
signature
RDMA/mlx5: Change scatter CQE flag to be set like other vendor flags RDMA/mlx5: Return all configured create flags through query QP RDMA/mlx5: Process all vendor flags in one place RDMA/mlx5: Delete unsupported QP types
RDMA/mlx5: Store QP type in the vendor QP structure RDMA/mlx5: Promote RSS RAW QP attribute check in higher level RDMA/mlx5: Combine copy of create QP command in RSS RAW QP RDMA/mlx5: Remove second user copy in create_user_qp RDMA/mlx5: Rely on existence of udata to separate kernel/user flows RDMA/mlx5: Delete impossible inlen check
RDMA/mlx5: Globally parse DEVX UID
RDMA/mlx5: Separate XRC_TGT QP creation from common flow RDMA/mlx5: Separate to user/kernel create QP flows RDMA/mlx5: Reduce amount of duplication in QP destroy RDMA/mlx5: Group all create QP parameters to simplify in-kernel
interfaces
RDMA/mlx5: Promote RSS RAW QP flags check to higher level RDMA/mlx5: Handle udate outlen checks in one place RDMA/mlx5: Copy response to the user in one place RDMA/mlx5: Remove redundant destroy QP call
RDMA/mlx5: Consolidate into special function all create QP calls
drivers/infiniband/hw/mlx5/devx.c | 2 +- drivers/infiniband/hw/mlx5/flow.c | 2 +- drivers/infiniband/hw/mlx5/gsi.c | 9 - drivers/infiniband/hw/mlx5/main.c | 6 +- drivers/infiniband/hw/mlx5/mlx5_ib.h | 46 +- drivers/infiniband/hw/mlx5/odp.c | 5 +- drivers/infiniband/hw/mlx5/qp.c | 1625 ++++++++++++++------------ 7 files changed, 905 insertions(+), 790 deletions(-)
--
2.25.3