Skip to content

Commit

Permalink
fabtests/efa: print err for recv failure
Browse files Browse the repository at this point in the history
Fix the unused value reported by Coverity Scan.

Signed-off-by: Jessie Yang <jiaxiyan@amazon.com>
  • Loading branch information
jiaxiyan committed Feb 26, 2025
1 parent 97d9e6e commit 19f453d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions fabtests/prov/efa/src/rdm_remote_exit_early.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static int run()
*/
ret = ft_exchange_keys(&remote);
if (ret) {
FT_PRINTERR("ft_exchange_keys()", -ret);
FT_PRINTERR("ft_exchange_keys", -ret);
goto out;
}
} else {
Expand Down Expand Up @@ -93,12 +93,21 @@ static int run()
* cq error as client exit early in a long protocol
*/
if (post_rx) {
if (hints->caps & FI_TAGGED)
if (hints->caps & FI_TAGGED) {
ret = fi_trecv(ep, rx_buf, rx_size, mr_desc,
FI_ADDR_UNSPEC, ft_tag, 0x0, &rx_ctx);
else
FI_ADDR_UNSPEC, ft_tag, 0x0, &rx_ctx);
if (ret) {
FT_PRINTERR("fi_trecv", -ret);
goto out;
}
} else {
ret = fi_recv(ep, rx_buf, rx_size, mr_desc,
FI_ADDR_UNSPEC, &rx_ctx);
FI_ADDR_UNSPEC, &rx_ctx);
if (ret) {
FT_PRINTERR("fi_recv", -ret);
goto out;
}
}
printf("server posts recv\n");
}

Expand Down

0 comments on commit 19f453d

Please sign in to comment.