Skip to content

Commit

Permalink
verbs: Add atomic write flags
Browse files Browse the repository at this point in the history
1) Define an atomic write request by IBV_WR_ATOMIC_WRITE.
2) Define an atomic write completion by IBV_WC_ATOMIC_WRITE.
3) Define an atomic write operation flag by IBV_QP_EX_WITH_ATOMIC_WRITE.

Signed-off-by: Xiao Yang <[email protected]>
  • Loading branch information
yangx-jy committed Dec 5, 2022
1 parent d77c050 commit 58f4843
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libibverbs/verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ enum ibv_wc_opcode {
IBV_WC_BIND_MW,
IBV_WC_LOCAL_INV,
IBV_WC_TSO,
IBV_WC_ATOMIC_WRITE = 9,
/*
* Set value of IBV_WC_RECV so consumers can test if a completion is a
* receive by testing (opcode & IBV_WC_RECV).
Expand Down Expand Up @@ -950,6 +951,7 @@ enum ibv_qp_create_send_ops_flags {
IBV_QP_EX_WITH_BIND_MW = 1 << 8,
IBV_QP_EX_WITH_SEND_WITH_INV = 1 << 9,
IBV_QP_EX_WITH_TSO = 1 << 10,
IBV_QP_EX_WITH_ATOMIC_WRITE = 1 << 12,
};

struct ibv_rx_hash_conf {
Expand Down Expand Up @@ -1096,6 +1098,7 @@ enum ibv_wr_opcode {
IBV_WR_SEND_WITH_INV,
IBV_WR_TSO,
IBV_WR_DRIVER1,
IBV_WR_ATOMIC_WRITE = 15,
};

enum ibv_send_flags {
Expand Down

0 comments on commit 58f4843

Please sign in to comment.