IB/mlx5: Limit the scope of struct mlx5_bfreg_info to mlx5_ib
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 24 Mar 2020 06:01:42 +0000 (08:01 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 27 Mar 2020 15:59:04 +0000 (12:59 -0300)
commit2152862298fbfd237d37c231dfca8ae8f3ed0e48
tree0706a1422de62d6994f35598aeb52436051c77a1
parentac42a5ee922503f99e8a71d41b0067fa19f23ca6
IB/mlx5: Limit the scope of struct mlx5_bfreg_info to mlx5_ib

struct mlx5_bfreg_info is used by mlx5_ib only but is exposed to both RDMA
and netdev parts of mlx5 driver. Move that struct to mlx5_ib namespace,
clean vertical space alignment and convert lib_uar_4k from bool to
bitfield.

Link: https://lore.kernel.org/r/20200324060143.1569116-5-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
include/linux/mlx5/driver.h