OSDN Git Service

RDMA/core: Add hash functions to calculate RoCEv2 flowlabel and UDP source port
authorMark Zhang <markz@mellanox.com>
Mon, 4 May 2020 05:19:31 +0000 (08:19 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 19:51:43 +0000 (16:51 -0300)
commitd5665a21250efeeb73579a2f8d71ee1820f37952
tree161ba007e1c32320620b764372351583b05983ea
parent11a0ae4c4bff9b2a471b54dbe910fc0f60e58e62
RDMA/core: Add hash functions to calculate RoCEv2 flowlabel and UDP source port

Add two hash functions to distribute RoCE v2 UDP source and Flowlabel
symmetrically. These are user visible API and any change in the
implementation needs to be tested for inter-operability between old and
new variant.

Link: https://lore.kernel.org/r/20200504051935.269708-2-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>
include/rdma/ib_verbs.h