From: Leon Romanovsky <leonro@xxxxxxxxxx> Changelog: v1: * Rebase v0: https://lore.kernel.org/linux-rdma/20210127150010.1876121-1-leon@xxxxxxxxxx Parav Pandit (5): IB/mlx5: Move mlx5_port_caps from mlx5_core_dev to mlx5_ib_dev IB/mlx5: Avoid calling query device for reading pkey table length IB/mlx5: Improve query port for representor port RDMA/core: Introduce and use API to read port immutable data IB/mlx5: Use rdma_for_each_port for port iteration drivers/infiniband/core/device.c | 14 +++ drivers/infiniband/hw/mlx5/mad.c | 10 +-- drivers/infiniband/hw/mlx5/main.c | 127 ++++++--------------------- drivers/infiniband/hw/mlx5/mlx5_ib.h | 9 +- drivers/infiniband/hw/mlx5/qp.c | 25 ++---- drivers/infiniband/hw/mlx5/wr.c | 2 +- include/linux/mlx5/driver.h | 8 -- include/rdma/ib_verbs.h | 3 + 8 files changed, 65 insertions(+), 133 deletions(-) -- 2.29.2