Skip to content

Commit b5af7f8

Browse files
fabtests/common: removed address receive prepost for out-of-band resolution case
Preposted recieve for peer address is not necessary in case of out-of-band address resolution(-b/-E options). Corresponding send won't be issues and random message with matching tag will be consumed instead, which leads to crash or hang. Signed-off-by: alexander-sannikov <[email protected]>
1 parent 79bfea2 commit b5af7f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fabtests/common/shared.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,8 +1519,9 @@ int ft_enable_ep_recv(void)
15191519
if (ret)
15201520
return ret;
15211521

1522-
if (!ft_check_opts(FT_OPT_SKIP_MSG_ALLOC) &&
1523-
(fi->caps & (FI_MSG | FI_TAGGED))) {
1522+
if ((!(opts.options & FT_OPT_OOB_ADDR_EXCH)) &&
1523+
(!ft_check_opts(FT_OPT_SKIP_MSG_ALLOC) &&
1524+
(fi->caps & (FI_MSG | FI_TAGGED)))) {
15241525
/* Initial receive will get remote address for unconnected EPs */
15251526
ret = ft_post_rx(ep, MAX(rx_size, FT_MAX_CTRL_MSG), &rx_ctx);
15261527
if (ret)

0 commit comments

Comments
 (0)