History

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.

Leon Romanovsky committed 6 years ago

Commit 21528621 parent ac42a5e2 files · +17 −17Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mlx5/driver.h+0−17
@@ -213,23 +213,6 @@ enum mlx5_port_status { · 212 unmodified lines
213213 MLX5_PORT_DOWN = 2,
214214 };
215215
216−struct mlx5_bfreg_info {
217− u32 *sys_pages;
218− int num_low_latency_bfregs;
219− unsigned int *count;
220−
221− /*
222− * protect bfreg allocation data structs
223− */
224− struct mutex lock;
225− u32 ver;
226− bool lib_uar_4k;
227− u32 num_sys_pages;
228− u32 num_static_sys_pages;
229− u32 total_num_bfregs;
230− u32 num_dyn_bfregs;
231−};
232−
233216 struct mlx5_cmd_first {
234217 __be32 data[4];
235218 };