IB/mlx5: Move mlx5_port_caps from mlx5_core_dev to mlx5_ib_dev
authorParav Pandit <parav@nvidia.com>
Wed, 3 Feb 2021 13:01:29 +0000 (15:01 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 5 Feb 2021 16:06:00 +0000 (12:06 -0400)
commit3ce60f443b143e649aa26cd3f668d645434647ac
treec0cfe2baada4a1038debdb49f4fb8b4fb601406f
parentb53005d66bb0c3939790d89702333f89ce556c5b
IB/mlx5: Move mlx5_port_caps from mlx5_core_dev to mlx5_ib_dev

mlx5_port_caps are RDMA specific capabilities. These are not used by the
mlx5_core_device at all. Move them to mlx5_ib_dev where it is used and
reduce the scope of it to multiple drivers.

Link: https://lore.kernel.org/r/20210203130133.4057329-2-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/mad.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/wr.c
include/linux/mlx5/driver.h