Skip to content
Commit 2d78e502 authored by Cheng Xu's avatar Cheng Xu Committed by Greg Kroah-Hartman
Browse files

RDMA/erdma: Inline mtt entries into WQE if supported

[ Upstream commit 0dd83a4d ]

The max inline mtt count supported is ERDMA_MAX_INLINE_MTT_ENTRIES.
When mr->mem.mtt_nents == ERDMA_MAX_INLINE_MTT_ENTRIES, inline mtt
is also supported, fix it.

Fixes: 15505577

 ("RDMA/erdma: Add verbs implementation")
Signed-off-by: default avatarCheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230320084652.16807-4-chengyou@linux.alibaba.com
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 55ce6da1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment