-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAOS-16971 ofi: add ofi_mrecv patch to OFI build
Add ofi_mrecv patch to OFI build. Signed-off-by: Di Wang <[email protected]>
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
diff --git a/prov/tcp/src/xnet.h b/prov/tcp/src/xnet.h | ||
index ee16d7e3a..bef992ee1 100644 | ||
--- a/prov/tcp/src/xnet.h | ||
+++ b/prov/tcp/src/xnet.h | ||
@@ -228,6 +228,8 @@ struct xnet_srx { | ||
xnet_profile_t *profile; | ||
}; | ||
|
||
+bool | ||
+xnet_srx_cancel_rx(struct xnet_srx *srx, struct slist *queue, void *context); | ||
int xnet_srx_context(struct fid_domain *domain, struct fi_rx_attr *attr, | ||
struct fid_ep **rx_ep, void *context); | ||
|
||
diff --git a/prov/tcp/src/xnet_progress.c b/prov/tcp/src/xnet_progress.c | ||
index aa76968e1..ef6167261 100644 | ||
--- a/prov/tcp/src/xnet_progress.c | ||
+++ b/prov/tcp/src/xnet_progress.c | ||
@@ -1114,6 +1114,8 @@ static void xnet_complete_rx(struct xnet_ep *ep, ssize_t ret) | ||
cq_error: | ||
FI_WARN(&xnet_prov, FI_LOG_EP_DATA, | ||
"msg recv failed ret = %zd (%s)\n", ret, fi_strerror((int)-ret)); | ||
+ if (rx_entry->ctrl_flags & XNET_MULTI_RECV) | ||
+ xnet_srx_cancel_rx(ep->srx, &ep->srx->rx_queue, rx_entry->context); | ||
xnet_cntr_incerr(rx_entry); | ||
xnet_report_error(rx_entry, (int) -ret); | ||
xnet_free_xfer(xnet_ep2_progress(ep), rx_entry); | ||
diff --git a/prov/tcp/src/xnet_srx.c b/prov/tcp/src/xnet_srx.c | ||
index 153504fe9..d391c3883 100644 | ||
--- a/prov/tcp/src/xnet_srx.c | ||
+++ b/prov/tcp/src/xnet_srx.c | ||
@@ -712,7 +712,7 @@ found: | ||
return rx_entry; | ||
} | ||
|
||
-static bool | ||
+bool | ||
xnet_srx_cancel_rx(struct xnet_srx *srx, struct slist *queue, void *context) | ||
{ | ||
struct slist_entry *cur, *prev; |