History

RDMA: Extend RDMA user ABI to support atomic write

1) Define new atomic write request/completion in userspace. 2) Define new atomic write capability in userspace.

Xiao Yang committed 3 years ago

Commit efa2afc1 parent 10aa7cd1 file · +4 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/rdma/ib_user_verbs.h+4−0
@@ -466,6 +466,7 @@ enum ib_uverbs_wc_opcode { · 465 unmodified lines
466466 IB_UVERBS_WC_BIND_MW = 5,
467467 IB_UVERBS_WC_LOCAL_INV = 6,
468468 IB_UVERBS_WC_TSO = 7,
469+ IB_UVERBS_WC_ATOMIC_WRITE = 9,
469470 };
470471
471472 struct ib_uverbs_wc {
@@ -784,6 +785,7 @@ enum ib_uverbs_wr_opcode { · 312 unmodified lines
784785 IB_UVERBS_WR_RDMA_READ_WITH_INV = 11,
785786 IB_UVERBS_WR_MASKED_ATOMIC_CMP_AND_SWP = 12,
786787 IB_UVERBS_WR_MASKED_ATOMIC_FETCH_AND_ADD = 13,
788+ IB_UVERBS_WR_ATOMIC_WRITE = 15,
787789 /* Review enum ib_wr_opcode before modifying this */
788790 };
789791
@@ -1331,6 +1333,8 @@ enum ib_uverbs_device_cap_flags { · 541 unmodified lines
13311333 /* Deprecated. Please use IB_UVERBS_RAW_PACKET_CAP_SCATTER_FCS. */
13321334 IB_UVERBS_DEVICE_RAW_SCATTER_FCS = 1ULL << 34,
13331335 IB_UVERBS_DEVICE_PCI_WRITE_END_PADDING = 1ULL << 36,
1336+ /* Atomic write attributes */
1337+ IB_UVERBS_DEVICE_ATOMIC_WRITE = 1ULL << 40,
13341338 };
13351339
13361340 enum ib_uverbs_raw_packet_caps {