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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -213,23 +213,6 @@ enum mlx5_port_status { · 212 unmodified lines | ||
| 213 | 213 | MLX5_PORT_DOWN = 2, |
| 214 | 214 | }; |
| 215 | 215 | |
| 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 | − | |
| 233 | 216 | struct mlx5_cmd_first { |
| 234 | 217 | __be32 data[4]; |
| 235 | 218 | }; |