]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/infiniband/core/ucma.c
RDMA/ucma: Mask QPN to be 24 bits according to IBTA
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 12 Feb 2020 07:26:27 +0000 (09:26 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 13 Feb 2020 15:38:19 +0000 (11:38 -0400)
commitca750d4a9c426854e221ca404fbefeab9800134e
tree954162d6942c035fa564e443db6e375afc9d0c8c
parentbeb205dd67aaa4315dedf5c40b47c6e9dee5a469
RDMA/ucma: Mask QPN to be 24 bits according to IBTA

IBTA declares QPN as 24bits, mask input to ensure that kernel
doesn't get higher bits and ensure by adding WANR_ONCE() that
other CM users do the same.

Link: https://lore.kernel.org/r/20200212072635.682689-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c
drivers/infiniband/core/ucma.c