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

2022-02-09 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Alexander Kozyrev > Sent: Monday, February 7, 2022 3:29 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad ; > Suanming Mou > Subject: [PATCH] net/mlx5: fix Committed Bucket Size ca

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

2022-02-07 Thread Alexander Kozyrev
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 exponen