Skip to content

mlx5 core generic EQ API for RDMA ODP

Saeed Mahameed linux-rdma netdev 2 versions – Applied

Status from this message: Pushed to shared mlx5-next:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 3 repliesApplied
  2. v112 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Remove vertical alignment
- Fix spilling "Chip" -> "Cheap"

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/12net/mlx5: EQ, Use the right place to store/read IRQ affinity hintdrivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/main.c include/linux/mlx5/driver.h+10 -80 replies
2/12net/mlx5: EQ, Remove unused fields and structuresdrivers/net/ethernet/mellanox/mlx5/core/eq.c include/linux/mlx5/driver.h+0 -140 replies
3/12net/mlx5: EQ, No need to store eq index as a fielddrivers/net/ethernet/mellanox/mlx5/core/main.c include/linux/mlx5/driver.h+2 -30 replies
4/12net/mlx5: EQ, Remove redundant completion EQ list lockdrivers/net/ethernet/mellanox/mlx5/core/eq.c drivers/net/ethernet/mellanox/mlx5/core/main.c include/linux/mlx5/driver.h+3 -190 replies
5/12net/mlx5: EQ, Move all EQ logic to eq.cdrivers/net/ethernet/mellanox/mlx5/core/eq.c drivers/net/ethernet/mellanox/mlx5/core/main.c drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h+181 -1760 replies
6/12net/mlx5: EQ, Create all EQs in one placedrivers/net/ethernet/mellanox/mlx5/core/debugfs.c drivers/net/ethernet/mellanox/mlx5/core/eq.c drivers/net/ethernet/mellanox/mlx5/core/main.c +1 more+116 -1040 replies
7/12net/mlx5: EQ, irq_info and rmap belong to eq_tabledrivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/eq.c include/linux/mlx5/driver.h+28 -260 replies
8/12net/mlx5: EQ, Privatize eq_table and friendsdrivers/infiniband/hw/mlx5/main.c drivers/net/ethernet/mellanox/mlx5/core/cq.c drivers/net/ethernet/mellanox/mlx5/core/debugfs.c +9 more+179 -1350 replies
9/12net/mlx5: EQ, Different EQ typesdrivers/net/ethernet/mellanox/mlx5/core/cq.c drivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/eq.c +7 more+270 -1990 replies
10/12net/mlx5: EQ, Generic EQdrivers/net/ethernet/mellanox/mlx5/core/eq.c drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h include/linux/mlx5/eq.h+221 -730 replies
11/12{net,IB}/mlx5: Move Page fault EQ and ODP logic to RDMAdrivers/infiniband/hw/mlx5/main.c drivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/odp.c +7 more+308 -3811 reply
12/12net/mlx5: EQ, Make EQE access methods inlinedrivers/net/ethernet/mellanox/mlx5/core/eq.c drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h+24 -240 replies

Reviews trailers per patch

11 of 12 patches have a Reviewed-by or Acked-by.

PatchLeon RomanovskyTariq ToukanJason Gunthorpe
1/12R-b R-b
2/12R-b R-b
3/12R-b R-b
4/12R-b R-b
5/12R-b R-b
6/12R-b R-b
7/12R-b R-b
8/12R-b R-b
9/12R-b R-b
10/12R-b R-b
11/12R-b R-b A-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH V2 mlx5-next 00/12] mlx5 core generic EQ API for RDMA ODP

Hi,

This patchset is for mlx5-next shared branch, and will be applied there once the review is done.

This patchset introduces mostly refactoring work and EQ related code updates to allow moving the ODP rdma only logic from mlx5_core into mlx5 ib where it belongs, and will allow future updates and optimizations for the rdma ODP (On Demand Paging) feature to go only to rdma tree.

Patch #1: Fixes the offsets of stored irq affinity hints inside mlx5 irq info array.

Patch #2,3,4: Remove unused fields, code and logic

Patch #5: Move all EQ related logic from main.c to eq.c to allow clear and seamless refactoring for creating generic EQ management API.

Patch #6: Create mlx5 core EQs in one place, in order to have one entry point to call from main file.

Patch #7,8: Move EQ related structures into eq_table mlx5 structure and make eq_table fields and logic private to eq.c file.

Patch #9,10: Create one generic EQ struct and use it in different EQ types (usages) e.g. (Async, Command, FW pages, completion and ODP) Introduce generic EQ API to allow creating Generic EQs regardless of their types, will be uesd to create all mlx5 core EQs in mlx5_core and ODP EQ in mlx5_ib.

Patch #11: Move ODP logic out from mlx5_core eq.c into mlx5 rdma driver. odp.c file.

Patch #12: Make the trivial EQE access methods inline.

v1->v2:
- Remove vertical alignment
- Fix spilling "Chip" -> "Cheap"

Thanks,
Saeed.

---

Saeed Mahameed (12):
net/mlx5: EQ, Use the right place to store/read IRQ affinity hint net/mlx5: EQ, Remove unused fields and structures net/mlx5: EQ, No need to store eq index as a field net/mlx5: EQ, Remove redundant completion EQ list lock net/mlx5: EQ, Move all EQ logic to eq.c
net/mlx5: EQ, Create all EQs in one place
net/mlx5: EQ, irq_info and rmap belong to eq_table net/mlx5: EQ, Privatize eq_table and friends
net/mlx5: EQ, Different EQ types
net/mlx5: EQ, Generic EQ
{net,IB}/mlx5: Move Page fault EQ and ODP logic to RDMA net/mlx5: EQ, Make EQE access methods inline

 drivers/infiniband/hw/mlx5/main.c             |  15 +-
 drivers/infiniband/hw/mlx5/mlx5_ib.h          |  15 +-
 drivers/infiniband/hw/mlx5/odp.c              | 281 ++++-
 drivers/net/ethernet/mellanox/mlx5/core/cq.c  |  15 +-
 .../net/ethernet/mellanox/mlx5/core/debugfs.c |  11 +
 drivers/net/ethernet/mellanox/mlx5/core/dev.c |  34 -
 drivers/net/ethernet/mellanox/mlx5/core/en.h  |   3 +-
 .../net/ethernet/mellanox/mlx5/core/en_main.c |  18 +-
 drivers/net/ethernet/mellanox/mlx5/core/eq.c  | 968 +++++++++++-------
 .../net/ethernet/mellanox/mlx5/core/eswitch.c |   3 +-
 .../net/ethernet/mellanox/mlx5/core/health.c  |   3 +-
 .../net/ethernet/mellanox/mlx5/core/lib/eq.h  |  93 ++
 .../net/ethernet/mellanox/mlx5/core/main.c    | 287 +-----
 .../ethernet/mellanox/mlx5/core/mlx5_core.h   |  23 -
 include/linux/mlx5/cq.h                       |   2 +-
 include/linux/mlx5/driver.h                   | 151 +--
 include/linux/mlx5/eq.h                       |  60 ++
 17 files changed, 1081 insertions(+), 901 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h
 create mode 100644 include/linux/mlx5/eq.h
Signature · 1 line
2.19.1