]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/rxe: Fix wrong port_cap_flags
authorJunji Wei <weijunji@bytedance.com>
Tue, 31 Aug 2021 08:32:23 +0000 (16:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 13:04:14 +0000 (14:04 +0100)
commit5282385ee65597cafdaf5fb45da470688e9c8681
treee4809072b4854c01bf89f8491672331738c9a6c3
parenta2c17c93b771242df31d03e62c0ac5b91bc11165
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>
drivers/infiniband/sw/rxe/rxe_param.h