linux_dsm_epyc7002/drivers/infiniband/hw/qedr
Jason Gunthorpe 2f944c0fbf RDMA: Fix storage of PortInfo CapabilityMask in the kernel
The internal flag IP_BASED_GIDS was added to a field that was being used
to hold the port Info CapabilityMask without considering the effects this
will have. Since most drivers just use the value from the HW MAD it means
IP_BASED_GIDS will also become set on any HW that sets the IBA flag
IsOtherLocalChangesNoticeSupported - which is not intended.

Fix this by keeping port_cap_flags only for the IBA CapabilityMask value
and store unrelated flags externally. Move the bit definitions for this to
ib_mad.h to make it clear what is happening.

To keep the uAPI unchanged define a new set of flags in the uapi header
that are only used by ib_uverbs_query_port_resp.port_cap_flags which match
the current flags supported in rdma-core, and the values exposed by the
current kernel.

Fixes: b4a26a2728 ("IB: Report using RoCE IP based gids in port caps")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
2018-07-10 11:06:45 -06:00
..
Kconfig Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
main.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
Makefile RDMA/qedr: Add iWARP connection management qp related callbacks 2017-08-18 12:26:38 -04:00
qedr_hsi_rdma.h qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
qedr_iw_cm.c RDMA/qedr: Fix iWARP connect with port mapper 2018-03-06 19:57:37 -07:00
qedr_iw_cm.h RDMA/qedr: Add iWARP connection management functions 2017-08-18 12:27:14 -04:00
qedr_roce_cm.c RDMA: Convert drivers to use the AH's sgid_attr in post_wr paths 2018-06-18 11:11:27 -06:00
qedr_roce_cm.h RDMA/qedr: Rename the qedr_cm file as a preparation for iWARP support 2017-08-18 12:25:18 -04:00
qedr.h Merge branch 'for-next-early' into for-next 2017-10-18 13:07:13 -04:00
verbs.c RDMA: Fix storage of PortInfo CapabilityMask in the kernel 2018-07-10 11:06:45 -06:00
verbs.h RDMA/providers: Simplify query_gid callback of RoCE providers 2018-04-03 21:33:47 -06:00