[PATCH] net/mlx5: fix Committed Bucket Size calculation

Raslan Darawsheh rasland at nvidia.com
Wed Feb 9 09:53:34 CET 2022


Hi,

> -----Original Message-----
> From: Alexander Kozyrev <akozyrev at nvidia.com>
> Sent: Monday, February 7, 2022 3:29 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>; Slava
> Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad <matan at nvidia.com>;
> Suanming Mou <suanmingm at nvidia.com>
> Subject: [PATCH] net/mlx5: fix Committed Bucket Size calculation
> 
> Committed Bucket Size calculation tries to fit into 8-bit wide
> mantissa field by setting 256 as a maximum value for it.
> To compensate for this increase in the mantissa value the exponent
> value has to be reduced by 8. But it gives a negative exponent
> value for CBS less than 128. And negative exponent value is not
> supported by the NIC. Adjust CSB calculation only for values
> bigger than 128 to allow both small and big bucket sizes.
> 
> Fixes: 3bd26b23cef ("net/mlx5: support meter profile operations")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Alexander Kozyrev <akozyrev at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the stable mailing list