Skip to content

Delay mlx5_ib internal resources allocations

Leon Romanovsky linux-rdma lkml netdev 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3net/mlx5: Reimplement write combining testdrivers/infiniband/hw/mlx5/main.c drivers/infiniband/hw/mlx5/mem.c drivers/infiniband/hw/mlx5/mlx5_ib.h +5 more+451 -2340 replies
2/3IB/mlx5: Create UMR QP just before first reg_mr occursdrivers/infiniband/hw/mlx5/main.c drivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/mr.c +2 more+58 -145 replies
3/3IB/mlx5: Allocate resources just before first QP/SRQ is createddrivers/infiniband/hw/mlx5/main.c drivers/infiniband/hw/mlx5/mlx5_ib.h drivers/infiniband/hw/mlx5/qp.c +1 more+118 -430 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchTariq Toukan
1/3R-b
2/3
3/3

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

Read the v1 thread

Cover letter [PATCH rdma-next 0/3] Delay mlx5_ib internal resources allocations

From: Leon Romanovsky <[email protected]>

Internal mlx5_ib resources are created during mlx5_ib module load. This behavior is not optimal because it consumes resources that are not needed when SFs are created. This patch series delays the creation of mlx5_ib internal resources to the stage when they actually used.

Thanks

Jianbo Liu (3):
net/mlx5: Reimplement write combining test
IB/mlx5: Create UMR QP just before first reg_mr occurs IB/mlx5: Allocate resources just before first QP/SRQ is created

 drivers/infiniband/hw/mlx5/main.c             | 171 ++++---
 drivers/infiniband/hw/mlx5/mem.c              | 198 --------
 drivers/infiniband/hw/mlx5/mlx5_ib.h          |   9 +-
 drivers/infiniband/hw/mlx5/mr.c               |   9 +
 drivers/infiniband/hw/mlx5/qp.c               |  20 +-
 drivers/infiniband/hw/mlx5/srq.c              |   4 +
 drivers/infiniband/hw/mlx5/umr.c              |  55 ++-
 drivers/infiniband/hw/mlx5/umr.h              |   3 +
 .../net/ethernet/mellanox/mlx5/core/Makefile  |   2 +-
 .../net/ethernet/mellanox/mlx5/core/main.c    |   2 +
 drivers/net/ethernet/mellanox/mlx5/core/wc.c  | 434 ++++++++++++++++++
 include/linux/mlx5/driver.h                   |  11 +
 12 files changed, 627 insertions(+), 291 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlx5/core/wc.c
Signature · 1 line
2.45.1