diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2020-03-24 08:01:42 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-27 12:59:04 -0300 |
commit | 2152862298fbfd237d37c231dfca8ae8f3ed0e48 (patch) | |
tree | 0706a1422de62d6994f35598aeb52436051c77a1 /include | |
parent | ac42a5ee922503f99e8a71d41b0067fa19f23ca6 (diff) | |
download | linux-2152862298fbfd237d37c231dfca8ae8f3ed0e48.tar.gz linux-2152862298fbfd237d37c231dfca8ae8f3ed0e48.tar.bz2 linux-2152862298fbfd237d37c231dfca8ae8f3ed0e48.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx5/driver.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 1de78f001d26..a30d834fdf7e 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -213,23 +213,6 @@ enum mlx5_port_status { MLX5_PORT_DOWN = 2, }; -struct mlx5_bfreg_info { - u32 *sys_pages; - int num_low_latency_bfregs; - unsigned int *count; - - /* - * protect bfreg allocation data structs - */ - struct mutex lock; - u32 ver; - bool lib_uar_4k; - u32 num_sys_pages; - u32 num_static_sys_pages; - u32 total_num_bfregs; - u32 num_dyn_bfregs; -}; - struct mlx5_cmd_first { __be32 data[4]; }; |