Re: [PATCH rdma-next 1/8] net/mlx5: Expand mkey page size to support 6 bits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 04, 2024 at 06:30:31PM +0300, Michael Guralnik wrote:
> +#define mlx5_umem_find_best_pgsz(umem, dev, iova)                              \
> +	ib_umem_find_best_pgsz(                                                \
> +		umem,                                                          \
> +		__mlx5_log_page_size_to_bitmap(                                \
> +			MLX5_CAP_GEN_2(dev->mdev, umr_log_entity_size_5) ? 6 : \
> +									   5,  \
> +			0),                                                    \
> +		iova)

This can go in a real static inline function now.

Isn't is mlx5_mkx_find_best_pgsz ? It is only for mkc right?

> @@ -4221,8 +4223,7 @@ struct mlx5_ifc_mkc_bits {
>  
>  	u8         reserved_at_1c0[0x19];
>  	u8         relaxed_ordering_read[0x1];
> -	u8         reserved_at_1d9[0x1];
> -	u8         log_page_size[0x5];
> +	u8         log_page_size[0x6];

?

Why is this change OK without more changes? Doesn't it move
log_page_size forward by 1 bit?

Jason




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux