]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/irdma: Remove incorrect masking of PD
authorMustafa Ismail <mustafa.ismail@intel.com>
Fri, 25 Feb 2022 16:32:11 +0000 (10:32 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:36 +0000 (14:23 +0200)
commit1cc23d59fd8caa08dfb4aece448bac609653dea2
treeb79f388382e04beec8af16134617eaf69e129fb4
parent1f0fda2819e73ef264aafc15841de156c4ae6435
RDMA/irdma: Remove incorrect masking of PD

[ Upstream commit 220bd0ebf0ed9e0cce9cef49261676f155158b9a ]

The PD id is masked with 0x7fff, while PD can be 18 bits for GEN2 HW.
Remove the masking as it should not be needed and can cause incorrect PD
id to be used.

Fixes: 434ed3ceee5a ("RDMA/irdma: Implement device supported verb APIs")
Link: https://lore.kernel.org/r/20220225163211.127-4-shiraz.saleem@intel.com
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/irdma/verbs.c