Skip to content

Commit

Permalink
av: introduce FI_NO_CONNECT flag for insert operations
Browse files Browse the repository at this point in the history
FI_NO_CONNECT indicates that an av insert should fail if there
is not already an established connection to the peer

Signed-off-by: Stephen Oost <stephen.oost@intel.com>
  • Loading branch information
ooststep committed Jan 24, 2025
1 parent b280fc0 commit d0101e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/rdma/fabric.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ typedef struct fid *fid_t;
#define FI_PEER_TRANSFER (1ULL << 36)
/* #define FI_MR_DMABUF (1ULL << 40) */
#define FI_AV_USER_ID (1ULL << 41)
#define FI_NO_CONNECT (1ULL << 42)
#define FI_PEER (1ULL << 43)
/* #define FI_XPU_TRIGGER (1ULL << 44) */

Expand Down
5 changes: 5 additions & 0 deletions man/fi_av.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@ fi_av_set_user_id.

See the user ID section below.

- *FI_NO_CONNECT*
: This flag indicates that AV insertion operations should fail if there
is not an existing connection to the peer. In such a case, an
FI_EHOSTUNREACH should be expected.

## fi_av_insertsvc

The fi_av_insertsvc call behaves similar to fi_av_insert, but allows the
Expand Down

0 comments on commit d0101e9

Please sign in to comment.