Skip to content

Commit

Permalink
libibverbs: Add flush access flags
Browse files Browse the repository at this point in the history
Now user can register mr with flush access flags

Signed-off-by: Li Zhijian <[email protected]>
  • Loading branch information
zhijianli88 committed Jan 14, 2023
1 parent 20a37f3 commit c86028c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libibverbs/man/ibv_reg_mr.3
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ describes the desired memory protection attributes; it is either 0 or the bitwis
.TP
.B IBV_ACCESS_REMOTE_ATOMIC\fR Enable Remote Atomic Operation Access (if supported)
.TP
.B IBV_ACCESS_FLUSH_GLOBAL\fR Enable Remote Flush Operation with global visibility placement type (if supported)
.TP
.B IBV_ACCESS_FLUSH_PERSISTENT\fR Enable Remote Flush Operation with persistence placement type (if supported)
.TP
.B IBV_ACCESS_MW_BIND\fR Enable Memory Window Binding
.TP
.B IBV_ACCESS_ZERO_BASED\fR Use byte offset from beginning of MR to access this MR, instead of a pointer address
Expand Down
2 changes: 2 additions & 0 deletions libibverbs/verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ enum ibv_access_flags {
IBV_ACCESS_ZERO_BASED = (1<<5),
IBV_ACCESS_ON_DEMAND = (1<<6),
IBV_ACCESS_HUGETLB = (1<<7),
IBV_ACCESS_FLUSH_GLOBAL = (1 << 8),
IBV_ACCESS_FLUSH_PERSISTENT = (1 << 9),
IBV_ACCESS_RELAXED_ORDERING = IBV_ACCESS_OPTIONAL_FIRST,
};

Expand Down

0 comments on commit c86028c

Please sign in to comment.