Skip to content

Commit

Permalink
Fabtests: Added inband sync to ft_init_fabric_cm.
Browse files Browse the repository at this point in the history
This patch adds the missing inband sync in ft_fabric_init_cm
to handle the case where  rx buffers are not pre-posted by
the application.
The default behaviour in fabtests is to pre-post a rx buffer.
This change enables fabtests using ft_fabric_init_cm to consume
the posted receive with an inband sync by setting the test option
FT_OPT_NO_PRE_POSTED_RX.

Similar changes have been made to ft_init_fabric
#10394

Signed-off-by: Nikhil Nanal <nikhil.nanal@intel.com>
  • Loading branch information
nikhilnanal authored and nikhil.nanal committed Oct 3, 2024
1 parent c410477 commit e9e0ef6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fabtests/common/shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,13 @@ int ft_init_fabric_cm(void)

ret = opts.dst_addr ? ft_client_connect() : ft_server_connect();

if (ft_check_opts(FT_OPT_NO_PRE_POSTED_RX) &&
!ft_check_opts(FT_OPT_SKIP_MSG_ALLOC) &&
(fi->caps & (FI_MSG | FI_TAGGED))) {
ret = ft_sync_inband(false);
if (ret)
return ret;
}
return ret;
}

Expand Down

0 comments on commit e9e0ef6

Please sign in to comment.