Skip to content

User space steering

Leon Romanovsky linux-rdma netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8net/mlx5: Expose SW ICM related device memory capabilitiesinclude/linux/mlx5/mlx5_ifc.h+43 -20 replies
2/8IB/mlx5: Support device memory type attributedrivers/infiniband/hw/mlx5/cmd.c drivers/infiniband/hw/mlx5/cmd.h drivers/infiniband/hw/mlx5/main.c +4 more+143 -820 replies
3/8IB/mlx5: Warn on allocated MEMIC buffers during cleanupdrivers/infiniband/hw/mlx5/main.c+2 -00 replies
4/8IB/mlx5: Add steering SW ICM device memory typedrivers/infiniband/hw/mlx5/Kconfig drivers/infiniband/hw/mlx5/cmd.c drivers/infiniband/hw/mlx5/cmd.h +4 more+291 -613 replies
5/8IB/mlx5: Device resource control for privileged DEVX userdrivers/infiniband/hw/mlx5/devx.c+4 -00 replies
6/8net/mlx5: Expose TIR ICM address in command outboxinclude/linux/mlx5/mlx5_ifc.h+3 -30 replies
7/8net/mlx5: Introduce new TIR creation core APIdrivers/net/ethernet/mellanox/mlx5/core/transobj.c include/linux/mlx5/transobj.h+16 -50 replies
8/8IB/mlx5: Expose TIR ICM address to user spacedrivers/infiniband/hw/mlx5/qp.c include/uapi/rdma/mlx5-abi.h+43 -50 replies

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchEli CohenMark Bloch
1/8R-b R-b
2/8R-b R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b R-b
6/8R-b R-b
7/8R-b R-b
8/8

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/8] User space steering

From: Leon Romanovsky <[email protected]>

Quoted 1 line

From Ariel,

This series of patches adds user space managed steering infrastructure to the mlx5_ib driver.

User space managed steering requires the means to access a dedicated memory space that is used by the device to store the packet steering and header modification tables and rules in order to manage them directly without the device's firmware involvement. This dedicated memory is part of the ICM memory space.

The changes are introducing the mlx5_ib API to allocate, deallocate and register this dedicated SW ICM memory via the existing device memory API using a private attribute which specifies the memory type.

The allocated memory itself is not IO mapped and user can only access it using remote RDMA operations.

In addition, the series exposed the ICM address of the receive transport interface (TIR) of Raw Packet and RSS QPs to user since they are required to properly create and insert steering rules that direct flows to these QPs.

Thanks

Ariel Levkovich (8):
net/mlx5: Expose SW ICM related device memory capabilities IB/mlx5: Support device memory type attribute IB/mlx5: Warn on allocated MEMIC buffers during cleanup IB/mlx5: Add steering SW ICM device memory type IB/mlx5: Device resource control for privileged DEVX user net/mlx5: Expose TIR ICM address in command outbox net/mlx5: Introduce new TIR creation core API IB/mlx5: Expose TIR ICM address to user space

 drivers/infiniband/hw/mlx5/Kconfig            |   2 +-
 drivers/infiniband/hw/mlx5/cmd.c              | 155 +++++++++-
 drivers/infiniband/hw/mlx5/cmd.h              |   8 +-
 drivers/infiniband/hw/mlx5/devx.c             |   4 +
 drivers/infiniband/hw/mlx5/main.c             | 264 +++++++++++++++---
 drivers/infiniband/hw/mlx5/mlx5_ib.h          |  40 ++-
 drivers/infiniband/hw/mlx5/mr.c               |  40 ++-
 drivers/infiniband/hw/mlx5/qp.c               |  46 ++-
 .../ethernet/mellanox/mlx5/core/transobj.c    |  18 +-
 include/linux/mlx5/mlx5_ifc.h                 |  51 +++-
 include/linux/mlx5/transobj.h                 |   3 +
 include/uapi/rdma/mlx5-abi.h                  |   2 +
 include/uapi/rdma/mlx5_user_ioctl_cmds.h      |   1 +
 include/uapi/rdma/mlx5_user_ioctl_verbs.h     |   6 +
 14 files changed, 541 insertions(+), 99 deletions(-)