linux/drivers/infiniband/hw
Parav Pandit 2019d70e91 IB/mlx5: Avoid calling query device for reading pkey table length
Pkey table length for all the ports of the device is the same.  Currently
get_ports_cap() reads and stores it for each port by querying the device
which reads more than just pkey table length.

For representor device ports which can be in range of hundreds, it queries
is for each such port and end up returning same value for all the ports.

When in representor mode, modify QP accesses pkey port caps for a port
index that can be outside of the port_caps table.

Hence, simplify the logic to query the max pkey table length only once
during device initialization sequence.

Link: https://lore.kernel.org/r/20210203130133.4057329-3-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:00 -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 IB/mlx5: Avoid calling query device for reading pkey table length 2021-02-05 12:06:00 -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