]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/erdma: Inline mtt entries into WQE if supported
authorCheng Xu <chengyou@linux.alibaba.com>
Mon, 20 Mar 2023 08:46:51 +0000 (16:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:35:07 +0000 (12:35 +0200)
commitd682c9bc41fa8d2b2cb4575dda0eb02310882cd0
tree32b66867194307c6e6b537abc6e1d6f0f170f4d3
parent3570f3cc4aab795cd22a2b3aadce84b8715fa229
RDMA/erdma: Inline mtt entries into WQE if supported

[ Upstream commit 0dd83a4d7756713f81990d6c5547500f212a1190 ]

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: 155055771704 ("RDMA/erdma: Add verbs implementation")
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230320084652.16807-4-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/erdma/erdma_qp.c