RDMA: Extend RDMA kernel verbs ABI to support flush
authorLi Zhijian <lizhijian@fujitsu.com>
Tue, 6 Dec 2022 13:01:53 +0000 (21:01 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 9 Dec 2022 23:36:01 +0000 (19:36 -0400)
commit208e3a134b50d95ea3962d7a37b4d8a8f5368376
tree55b30ae528c78cca8bef1562de55cc378d75283a
parent0c17da492dc6c33cc5b99633adb4bd7b2587153c
RDMA: Extend RDMA kernel verbs ABI to support flush

This commit extends the RDMA kernel verbs ABI to support the flush
operation defined in IBA A19.4.1. These changes are
backward compatible with the existing RDMA kernel verbs ABI.

It makes device/HCA support new FLUSH attributes/capabilities, and it
also makes memory region support new FLUSH access flags.

Users can use ibv_reg_mr(3) to register flush access flags. Only the
access flags also supported by device's capabilities can be registered
successfully.

Once registered successfully, it means the MR is flushable. Similarly,
A flushable MR should also have one or both of GLOBAL_VISIBILITY and
PERSISTENT attributes/capabilities like device/HCA.

Link: https://lore.kernel.org/r/20221206130201.30986-3-lizhijian@fujitsu.com
Reviewed-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
include/rdma/ib_pack.h
include/rdma/ib_verbs.h