Commit 4b2a6736 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Jason Gunthorpe
Browse files

RDMA/mlx5: Group boolean parameters to take less space

Clean the code to store all boolean parameters inside one variable.

Link: https://lore.kernel.org/r/20191002122517.17721-2-leon@kernel.org


Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 9b64f7d0
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -958,7 +958,10 @@ struct mlx5_ib_dev {
	/* serialize update of capability mask
	/* serialize update of capability mask
	 */
	 */
	struct mutex			cap_mask_mutex;
	struct mutex			cap_mask_mutex;
	bool				ib_active;
	u8				ib_active:1;
	u8				fill_delay:1;
	u8				is_rep:1;
	u8				lag_active:1;
	struct umr_common		umrc;
	struct umr_common		umrc;
	/* sync used page count stats
	/* sync used page count stats
	 */
	 */
@@ -967,7 +970,6 @@ struct mlx5_ib_dev {
	struct timer_list		delay_timer;
	struct timer_list		delay_timer;
	/* Prevents soft lock on massive reg MRs */
	/* Prevents soft lock on massive reg MRs */
	struct mutex			slow_path_mutex;
	struct mutex			slow_path_mutex;
	int				fill_delay;
	struct ib_odp_caps	odp_caps;
	struct ib_odp_caps	odp_caps;
	u64			odp_max_size;
	u64			odp_max_size;
	struct mlx5_ib_pf_eq	odp_pf_eq;
	struct mlx5_ib_pf_eq	odp_pf_eq;
@@ -988,8 +990,6 @@ struct mlx5_ib_dev {
	struct mlx5_sq_bfreg	fp_bfreg;
	struct mlx5_sq_bfreg	fp_bfreg;
	struct mlx5_ib_delay_drop	delay_drop;
	struct mlx5_ib_delay_drop	delay_drop;
	const struct mlx5_ib_profile	*profile;
	const struct mlx5_ib_profile	*profile;
	bool			is_rep;
	int				lag_active;


	struct mlx5_ib_lb_state		lb;
	struct mlx5_ib_lb_state		lb;
	u8			umr_fence;
	u8			umr_fence;