Skip to content

Set flow_label and RoCEv2 UDP source port for datagram QP

Leon Romanovsky linux-rdma lkml 3 versions – Applied

Status from this message: Applied to for-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyApplied
  2. v26 patches 3 repliesSuperseded
  3. v17 patches 3 repliesSuperseded

Changelog from the cover letter

v3: Rebased on latest rdma-nex, which includes HCA set capability patch and LAG code and this is why new patch from Maor was added.
v2: https://lore.kernel.org/linux-rdma/[email protected]
Dropped patch "RDMA/cm: Set flow label of recv_wc based on primary flow label", because it violates IBTA 13.5.4.3/13.5.4.4 sections.
v1: https://lore.kernel.org/lkml/[email protected]
Added extra patch to reduce amount of kzalloc/kfree calls in
the HCA set capability flow.
v0: https://lore.kernel.org/linux-rdma/[email protected]
--------------------------------

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5RDMA/core: Add hash functions to calculate RoCEv2 flowlabel and UDP source portinclude/rdma/ib_verbs.h+44 -00 replies
2/5RDMA/core: Consider flow label when building skbdrivers/infiniband/core/lag.c+4 -20 replies
3/5RDMA/mlx5: Define RoCEv2 udp source port when set pathdrivers/infiniband/hw/mlx5/qp.c+24 -60 replies
4/5RDMA/cma: Initialize the flow label of CM's route path recorddrivers/infiniband/core/cma.c+23 -00 replies
5/5RDMA/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

4 of 5 patches have a Reviewed-by or Acked-by.

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

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

Read the v3 thread

Cover letter [PATCH rdma-next v3 0/5] Set flow_label and RoCEv2 UDP source port for datagram QP

From: Leon Romanovsky <[email protected]>

Changelog:
v3: Rebased on latest rdma-nex, which includes HCA set capability patch and LAG code and this is why new patch from Maor was added.
v2: https://lore.kernel.org/linux-rdma/[email protected]
Dropped patch "RDMA/cm: Set flow label of recv_wc based on primary flow label", because it violates IBTA 13.5.4.3/13.5.4.4 sections.
v1: https://lore.kernel.org/lkml/[email protected]
Added extra patch to reduce amount of kzalloc/kfree calls in
the HCA set capability flow.
v0: https://lore.kernel.org/linux-rdma/[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.

Maor Gottlieb (1):
RDMA/core: Consider flow label when building skb

Mark Zhang (4):
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/mlx5: Set UDP source port based on the grh.flow_label

 drivers/infiniband/core/cma.c        | 23 +++++++++++++++
 drivers/infiniband/core/lag.c        |  6 ++--
 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 +++++++++++++++----
 include/rdma/ib_verbs.h              | 44 ++++++++++++++++++++++++++++
 7 files changed, 118 insertions(+), 14 deletions(-)

--
2.26.2