diff options
author | Xiao Yang <yangx.jy@fujitsu.com> | 2022-12-01 14:37:06 +0000 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-12-01 19:51:09 -0400 |
commit | 3ff81e827b8d5cea36ff374a11c200b4306f45d2 (patch) | |
tree | 6dcc40071bac07fada89b2c9c4f536d48d24168f /include/rdma/ib_pack.h | |
parent | efa2afc3969e166702fd2ae3cfb1a7a195ef3533 (diff) | |
download | linux-stable-3ff81e827b8d5cea36ff374a11c200b4306f45d2.tar.gz linux-stable-3ff81e827b8d5cea36ff374a11c200b4306f45d2.tar.bz2 linux-stable-3ff81e827b8d5cea36ff374a11c200b4306f45d2.zip |
RDMA: Extend RDMA kernel ABI to support atomic write
1) Define new atomic write request/completion in kernel.
2) Define new atomic write capability in kernel.
3) Define new atomic write opcode for RC service in packet.
Link: https://lore.kernel.org/r/1669905432-14-3-git-send-email-yangx.jy@fujitsu.com
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/rdma/ib_pack.h')
-rw-r--r-- | include/rdma/ib_pack.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/ib_pack.h b/include/rdma/ib_pack.h index a9162f25beaf..f932d164af63 100644 --- a/include/rdma/ib_pack.h +++ b/include/rdma/ib_pack.h @@ -84,6 +84,7 @@ enum { /* opcode 0x15 is reserved */ IB_OPCODE_SEND_LAST_WITH_INVALIDATE = 0x16, IB_OPCODE_SEND_ONLY_WITH_INVALIDATE = 0x17, + IB_OPCODE_ATOMIC_WRITE = 0x1D, /* real constants follow -- see comment about above IB_OPCODE() macro for more details */ @@ -112,6 +113,7 @@ enum { IB_OPCODE(RC, FETCH_ADD), IB_OPCODE(RC, SEND_LAST_WITH_INVALIDATE), IB_OPCODE(RC, SEND_ONLY_WITH_INVALIDATE), + IB_OPCODE(RC, ATOMIC_WRITE), /* UC */ IB_OPCODE(UC, SEND_FIRST), |