RDMA/core: Calculate UDP source port based on flow label or lqpn/rqpn
authorZhu Yanjun <yanjun.zhu@linux.dev>
Thu, 6 Jan 2022 18:03:56 +0000 (13:03 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 7 Jan 2022 23:34:01 +0000 (19:34 -0400)
commit18451db82ef7f943c60a7fce685f16172bda5106
tree462fc04a960dfe126b5cced14dfc3c74596eba28
parent4d2a3c169b9ad27dfdf2bf8d9362596477840656
RDMA/core: Calculate UDP source port based on flow label or lqpn/rqpn

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/20220106180359.2915060-2-yanjun.zhu@linux.dev
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
include/rdma/ib_verbs.h