linux_dsm_epyc7002/drivers/infiniband/hw/vmw_pvrdma
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 IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00
Makefile RDMA/vmw_pvrdma: Add shared receive queue support 2017-11-13 16:18:33 -05:00
pvrdma_cmd.c IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00
pvrdma_cq.c RDMA/vmw_pvrdma: Fix usage of user response structures in ABI file 2018-02-15 15:31:28 -07:00
pvrdma_dev_api.h RDMA/vmw_pvrdma: Add shared receive queue support 2017-11-13 16:18:33 -05:00
pvrdma_doorbell.c IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00
pvrdma_main.c vmw_pvrdma: Release netdev when vmxnet3 module is removed 2018-07-03 15:52:31 -06:00
pvrdma_misc.c RDMA/vmw_pvrdma: Add RoCEv2 support 2017-08-24 17:34:57 -04:00
pvrdma_mr.c RDMA/vmw_pvrdma: Do not re-calculate npages 2017-12-11 16:19:42 -07:00
pvrdma_qp.c RDMA/pvrdma: Properly annotate QP states 2018-03-14 15:34:25 -04:00
pvrdma_ring.h IB/pvrdma: Remove unused function 2017-08-22 15:42:57 -04:00
pvrdma_srq.c RDMA/vmw_pvrdma: Fix usage of user response structures in ABI file 2018-02-15 15:31:28 -07:00
pvrdma_verbs.c RDMA: Fix storage of PortInfo CapabilityMask in the kernel 2018-07-10 11:06:45 -06:00
pvrdma_verbs.h RDMA/vmw_pvrdma: Add shared receive queue support 2017-11-13 16:18:33 -05:00
pvrdma.h RDMA/vmw_pvrdma: Delete unused function 2018-06-27 15:08:49 -06:00