Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/uct/ib/base/ib_md.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ enum {
#endif
UCT_IB_MEM_FLAG_GVA = UCS_BIT(5), /**< The memory handle is a
GVA region */
UCT_IB_MEM_DIRECT_NIC = UCS_BIT(6), /**< The memory handle was
registered using Direct NIC */
};

enum {
Expand Down
2 changes: 2 additions & 0 deletions src/uct/ib/mlx5/dv/ib_mlx5dv_md.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@ uct_ib_mlx5_devx_reg_mr(uct_ib_mlx5_md_t *md, uct_ib_mlx5_devx_mem_t *memh,
length, params,
access_flags);
if (memh->mrs[mr_type].super.ib != NULL) {
memh->super.flags |= UCT_IB_MEM_DIRECT_NIC;
goto out;
}

Expand Down Expand Up @@ -2946,6 +2947,7 @@ uct_ib_mlx5_devx_mkey_pack(uct_md_h uct_md, uct_mem_h uct_memh,
((memh->super.flags & UCT_IB_MEM_ACCESS_REMOTE_ATOMIC) ||
uct_ib_mlx5_devx_memh_has_ro(md, memh)) &&
!(memh->super.flags & UCT_IB_MEM_IMPORTED) &&
!(memh->super.flags & UCT_IB_MEM_DIRECT_NIC) &&
md->super.config.enable_indirect_atomic &&
ucs_test_all_flags(md->flags,
UCT_IB_MLX5_MD_FLAG_KSM |
Expand Down