IB/mlx5: Improve query port for representor port
authorParav Pandit <parav@nvidia.com>
Wed, 3 Feb 2021 13:01:31 +0000 (15:01 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 5 Feb 2021 16:06:00 +0000 (12:06 -0400)
commit7a58779edd75c37352917e8fbc7769efce0e65b6
tree78aacc7aefc0cd7f71f4f3ce0b59d8e526f9e170
parent2019d70e919f01c43975b8d9ea2803b890eabba9
IB/mlx5: Improve query port for representor port

Improve query port functionality for representor port as below.

1. RoCE Qkey violation counters are not applicable for representor port.
2. Avoid setting gid_tbl_len twice for representor port.
3. Avoid setting ip_gids and IB_PORT_CM_SUP property for representor port
   as GID table is empty and CM support is not present in representor
   mode.

Link: https://lore.kernel.org/r/20210203130133.4057329-4-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>
drivers/infiniband/hw/mlx5/main.c