RDMA/cma: Initialize the flow label of CM's route path record
authorMark Zhang <markz@mellanox.com>
Mon, 4 May 2020 05:19:34 +0000 (08:19 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 19:51:44 +0000 (16:51 -0300)
commitf66534051936044728e2be9937eb408494ca4007
treef5b17a2882ee81be10597e97d300d66cd0a20a35
parent2b880b2e5e03e790a9b9fd7e3e8fcf7a36230a16
RDMA/cma: Initialize the flow label of CM's route path record

If flow label is not set by the user or it's not IPv4, initialize it with
the cma src/dst based on the "Kernighan and Ritchie's hash function".

Link: https://lore.kernel.org/r/20200504051935.269708-5-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/core/cma.c