projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6256aa9
)
RDMA/erdma: Inline mtt entries into WQE if supported
author
Cheng Xu
<chengyou@linux.alibaba.com>
Mon, 20 Mar 2023 08:46:51 +0000
(16:46 +0800)
committer
Leon Romanovsky
<leon@kernel.org>
Mon, 20 Mar 2023 10:53:24 +0000
(12:53 +0200)
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>
drivers/infiniband/hw/erdma/erdma_qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/erdma/erdma_qp.c
b/drivers/infiniband/hw/erdma/erdma_qp.c
index
ff473b2
..
44923c5
100644
(file)
--- a/
drivers/infiniband/hw/erdma/erdma_qp.c
+++ b/
drivers/infiniband/hw/erdma/erdma_qp.c
@@
-405,7
+405,7
@@
static int erdma_push_one_sqe(struct erdma_qp *qp, u16 *pi,
FIELD_PREP(ERDMA_SQE_MR_MTT_CNT_MASK,
mr->mem.mtt_nents);
- if (mr->mem.mtt_nents < ERDMA_MAX_INLINE_MTT_ENTRIES) {
+ if (mr->mem.mtt_nents <
=
ERDMA_MAX_INLINE_MTT_ENTRIES) {
attrs |= FIELD_PREP(ERDMA_SQE_MR_MTT_TYPE_MASK, 0);
/* Copy SGLs to SQE content to accelerate */
memcpy(get_queue_entry(qp->kern_qp.sq_buf, idx + 1,