Skip to content

Commit

Permalink
include/rdma: relocate FI_HMEM_* flags and update values
Browse files Browse the repository at this point in the history
Move around FI_HMEM_* flags and update the value range.

Signed-off-by: Wenduo Wang <wenduwan@amazon.com>
  • Loading branch information
wenduwan committed Apr 11, 2023
1 parent 9617603 commit c27e273
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions include/rdma/fabric.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ typedef struct fid *fid_t;
#define FI_AV_USER_ID (1ULL << 41)
#define FI_PEER (1ULL << 43)
#define FI_XPU_TRIGGER (1ULL << 44)
#define FI_HMEM_HOST_ALLOC (1ULL << 45)
#define FI_HMEM_DEVICE_ONLY (1ULL << 46)
#define FI_HMEM_GDR (1ULL << 47)
#define FI_HMEM (1ULL << 47)
#define FI_VARIABLE_MSG (1ULL << 48)
#define FI_RMA_PMEM (1ULL << 49)
#define FI_SOURCE_ERR (1ULL << 50)
Expand All @@ -184,7 +182,6 @@ typedef struct fid *fid_t;
#define FI_SOURCE (1ULL << 57)
#define FI_NAMED_RX_CTX (1ULL << 58)
#define FI_DIRECTED_RECV (1ULL << 59)
#define FI_HMEM_DATA_GDRCOPY_HANDLE (1ULL << 60)


/* Tagged messages, buffered receives, CQ flags */
Expand Down
5 changes: 5 additions & 0 deletions include/rdma/fi_domain.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ struct fid_av {
* Tracks registered memory regions, primarily for remote access,
* but also for local access until we can remove that need.
*/

#define FI_HMEM_HOST_ALLOC (1ULL << 60)
#define FI_HMEM_DEVICE_ONLY (1ULL << 61)
#define FI_HMEM_DATA_GDRCOPY_HANDLE (1ULL << 62)

struct fid_mr {
struct fid fid;
void *mem_desc;
Expand Down

0 comments on commit c27e273

Please sign in to comment.