Skip to content

Set flow_label and RoCEv2 UDP source port for datagram QP

Leon Romanovsky linux-rdma netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net/mlx5: Enable SW-defined RoCEv2 UDP source portdrivers/net/ethernet/mellanox/mlx5/core/main.c include/linux/mlx5/mlx5_ifc.h+43 -13 replies
2/6RDMA/core: Add hash functions to calculate RoCEv2 flowlabel and UDP source portinclude/rdma/ib_verbs.h+44 -00 replies
3/6RDMA/mlx5: Define RoCEv2 udp source port when set pathdrivers/infiniband/hw/mlx5/qp.c+24 -60 replies
4/6RDMA/cma: Initialize the flow label of CM's route path recorddrivers/infiniband/core/cma.c+23 -00 replies
5/6RDMA/cm: Set flow label of recv_wc based on primary flow labeldrivers/infiniband/core/cm.c+7 -00 replies
6/6RDMA/mlx5: Set UDP source port based on the grh.flow_labeldrivers/infiniband/hw/mlx5/ah.c drivers/infiniband/hw/mlx5/main.c drivers/infiniband/hw/mlx5/mlx5_ib.h+23 -60 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchMaor Gottlieb
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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/6] Set flow_label and RoCEv2 UDP source port for datagram QP

From: Leon Romanovsky <[email protected]>

From Mark:

This series provide flow label and UDP source port definition in RoCE v2. Those fields are used to create entropy for network routes (ECMP), load balancers and 802.3ad link aggregation switching that are not aware of RoCE headers.

Thanks.

Mark Zhang (6):
net/mlx5: Enable SW-defined RoCEv2 UDP source port RDMA/core: Add hash functions to calculate RoCEv2 flowlabel and UDP
source port
RDMA/mlx5: Define RoCEv2 udp source port when set path RDMA/cma: Initialize the flow label of CM's route path record RDMA/cm: Set flow label of recv_wc based on primary flow label RDMA/mlx5: Set UDP source port based on the grh.flow_label

 drivers/infiniband/core/cm.c                  |  7 +++
 drivers/infiniband/core/cma.c                 | 23 ++++++++++
 drivers/infiniband/hw/mlx5/ah.c               | 21 ++++++++-
 drivers/infiniband/hw/mlx5/main.c             |  4 +-
 drivers/infiniband/hw/mlx5/mlx5_ib.h          |  4 +-
 drivers/infiniband/hw/mlx5/qp.c               | 30 ++++++++++---
 .../net/ethernet/mellanox/mlx5/core/main.c    | 39 ++++++++++++++++
 include/linux/mlx5/mlx5_ifc.h                 |  5 ++-
 include/rdma/ib_verbs.h                       | 44 +++++++++++++++++++
 9 files changed, 164 insertions(+), 13 deletions(-)

--
2.24.1