Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
providers/mana: fix align_hw_size and improve get_wqe_size
[ Upstream commit f79e367 ] Mana HW expects buffers to be a power of 2 and be at least 4KB. The existing align_hw_size returns 1 when input is 0, providing incorrect buffer size for empty queues. Change the order of align and pow to get 4096 for the input 0, which is expected by the HW. Use uint32_t in the get_wqe_size helper. Fixes: 443f196 ("mana: Microsoft Azure Network Adapter (MANA) RDMA provider") Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com> Signed-off-by: Nicolas Morey <nmorey@suse.com>
- Loading branch information