dufuhang e785d29dff Fix the stride calculation for MSN/PSN area
[ Upstream commit 65197a4 ]

Library expects ilog2 of psn_size while calculating the stride.
ilog32 returns log2(v) + 1 and the calculation fails since
the psn size is a power of 2 value. Fix by passing psn_size - 1.

Fixes: 0a0e0d0 ("bnxt_re/lib: Adds MSN table capability for Gen P7 adapters")
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
(cherry picked from commit ac4be7ab029ef79b45c1055fb7504643fd129194)
2024-07-24 10:47:32 +08:00
2024-02-22 17:35:22 +08:00
2024-02-22 17:35:22 +08:00
2024-02-06 20:18:17 +08:00
2020-06-12 17:26:04 +08:00
Description
No description provided
10 MiB
Languages
Diff 100%