linux/drivers/infiniband/hw
Parav Pandit 7416790e22 RDMA/core: Introduce and use API to read port immutable data
Currently mlx5 driver caches port GID table length for 2 ports.  It is
also cached by IB core as port immutable data.

When mlx5 representor ports are present, which are usually more than 2,
invalid access to port_caps array can happen while validating the GID
table length which is only for 2 ports.

To avoid this, take help of the IB cores port immutable data by exposing
an API to read the port immutable fields.

Remove mlx5 driver's internal cache, thereby reduce code and data.

Link: https://lore.kernel.org/r/20210203130133.4057329-5-leon@kernel.org
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-02-05 12:06:01 -04:00
..
bnxt_re RDMA/bnxt_re: Allow bigger MR creation 2021-01-18 16:56:09 -04:00
cxgb4 RDMA: Use kzalloc for allocating only one thing 2021-01-07 16:47:53 -04:00
efa RDMA/efa: Remove unused syndrome enum values 2021-01-28 15:56:13 -04:00
hfi1 RDMA/hw/hfi1/rc: Demote incorrectly populated kernel-doc header 2021-01-28 15:42:30 -04:00
hns RDMA/hns: Use new interface to set MPT related fields 2021-01-28 10:51:06 -04:00
i40iw RDMA/hw/i40iw/i40iw_verbs: Fix worthy function headers and demote some others 2021-01-19 20:33:43 -04:00
mlx4 IB/mlx4: Use port iterator and validation APIs 2021-02-02 19:25:40 -04:00
mlx5 RDMA/core: Introduce and use API to read port immutable data 2021-02-05 12:06:01 -04:00
mthca Linux 5.10-rc6 2020-12-01 20:40:50 -04:00
ocrdma RDMA/ocrdma: Fix use after free in ocrdma_dealloc_ucontext_pd() 2021-01-07 16:37:11 -04:00
qedr RDMA 5.11 pull request 2020-12-16 13:42:26 -08:00
qib RDMA/hw/qib/qib_iba6120: Fix some repeated (copy/paste) kernel-doc issues 2021-01-22 14:37:35 -04:00
usnic RDMA/usnic: Fix memleak in find_free_vf_and_create_qp_grp 2021-01-07 16:07:12 -04:00
vmw_pvrdma RDMA/pvrdma: Replace spin_lock_irqsave with spin_lock in hard IRQ 2021-02-05 12:03:07 -04:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00