]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ad07980a460e79b2d14157142cf4f5a6d651d4d
treef5b17a2882ee81be10597e97d300d66cd0a20a35
parentecece85535d69f0d356a5ead63c1db94ce9481c1
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