OSDN Git Service

RDMA/mlx5: Define RoCEv2 udp source port when set path
authorMark Zhang <markz@mellanox.com>
Mon, 4 May 2020 05:19:33 +0000 (08:19 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 19:51:44 +0000 (16:51 -0300)
commit2b880b2e5e03e790a9b9fd7e3e8fcf7a36230a16
treee18454a9afe40bc27f86dd955d195191ae16d232
parent9611d53aa1600ba94a36cd7bfd6a95dbae76c8e6
RDMA/mlx5: Define RoCEv2 udp source port when set path

Calculate and set UDP source port based on the flow label. If flow label
is not defined in GRH then calculate it based on lqpn/rqpn.

Link: https://lore.kernel.org/r/20200504051935.269708-4-leon@kernel.org
Signed-off-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c