From: Leon Romanovsky <leonro@xxxxxxxxxx> Various simple cleanups to mlx4, mlx5 and core. Parav Pandit (10): 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: Support default partition key for representor port 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 IB/mlx5: Return appropriate error code instead of ENOMEM IB/cm: Avoid a loop when device has 255 ports IB/mlx4: Use port iterator and validation APIs IB/core: Use valid port number to check link layer drivers/infiniband/core/cm.c | 8 +- drivers/infiniband/core/device.c | 14 +++ drivers/infiniband/core/verbs.c | 4 +- drivers/infiniband/hw/mlx4/main.c | 2 +- drivers/infiniband/hw/mlx4/sysfs.c | 4 +- drivers/infiniband/hw/mlx5/mad.c | 10 +- drivers/infiniband/hw/mlx5/main.c | 137 +++++++-------------------- drivers/infiniband/hw/mlx5/mlx5_ib.h | 9 +- drivers/infiniband/hw/mlx5/odp.c | 4 - drivers/infiniband/hw/mlx5/qp.c | 20 ++-- drivers/infiniband/hw/mlx5/wr.c | 2 +- include/linux/mlx5/driver.h | 8 -- include/rdma/ib_verbs.h | 3 + 13 files changed, 84 insertions(+), 141 deletions(-) -- 2.29.2