Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bnxt_re/lib: 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>
- Loading branch information