summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJunji Wei <weijunji@bytedance.com>2021-08-31 16:32:23 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-18 19:16:46 +0100
commitd41e6c4fae2991afde8696dfec6c719897db25a6 (patch)
treeeb8640547c49ce7ed728a79623cfb2e0053d4eac /drivers
parent42a6f69c5aa8fb87a6fcadf9feb86a825715f692 (diff)
downloadlinux-stable-d41e6c4fae2991afde8696dfec6c719897db25a6.tar.gz
linux-stable-d41e6c4fae2991afde8696dfec6c719897db25a6.tar.bz2
linux-stable-d41e6c4fae2991afde8696dfec6c719897db25a6.zip
RDMA/rxe: Fix wrong port_cap_flags
[ Upstream commit dcd3f985b20ffcc375f82ca0ca9f241c7025eb5e ] The port->attr.port_cap_flags should be set to enum ib_port_capability_mask_bits in ib_mad.h, not RDMA_CORE_CAP_PROT_ROCE_UDP_ENCAP. Fixes: 8700e3e7c485 ("Soft RoCE driver") Link: https://lore.kernel.org/r/20210831083223.65797-1-weijunji@bytedance.com Signed-off-by: Junji Wei <weijunji@bytedance.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_param.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_param.h b/drivers/infiniband/sw/rxe/rxe_param.h
index 742e6ec93686..b5a70cbe94aa 100644
--- a/drivers/infiniband/sw/rxe/rxe_param.h
+++ b/drivers/infiniband/sw/rxe/rxe_param.h
@@ -113,7 +113,7 @@ enum rxe_device_param {
/* default/initial rxe port parameters */
enum rxe_port_param {
RXE_PORT_GID_TBL_LEN = 1024,
- RXE_PORT_PORT_CAP_FLAGS = RDMA_CORE_CAP_PROT_ROCE_UDP_ENCAP,
+ RXE_PORT_PORT_CAP_FLAGS = IB_PORT_CM_SUP,
RXE_PORT_MAX_MSG_SZ = 0x800000,
RXE_PORT_BAD_PKEY_CNTR = 0,
RXE_PORT_QKEY_VIOL_CNTR = 0,