RDMA/erdma: Extend access right field of FRMR and REG MR to support atomic
authorCheng Xu <chengyou@linux.alibaba.com>
Mon, 7 Nov 2022 02:18:43 +0000 (10:18 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 7 Nov 2022 07:55:04 +0000 (09:55 +0200)
commitece43fad220ba03c529cc0f6f302d796044e8476
tree114bc719ed4ba0ea3ca21872475db211a8a6b666
parent4eace75e0853273755b878ffa9cce6de84df975a
RDMA/erdma: Extend access right field of FRMR and REG MR to support atomic

To support atomic operations, IB_ACCESS_REMOTE_ATOMIC right should be
passed to hardware for permission check. Since "access mode" field in FRMR
SQE and RegMr command is never used by hw, we remove the "access mode"
field, so that we can then have enough space to extend access fields.

Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20221107021845.44598-2-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma_hw.h
drivers/infiniband/hw/erdma/erdma_qp.c
drivers/infiniband/hw/erdma/erdma_verbs.c
drivers/infiniband/hw/erdma/erdma_verbs.h