[Pkg-ofed-commits] [libfabric] 73/123: usnic: usdf_rdm.c: Fix data corruption issue in EP_RDM.
Ana Beatriz Guerrero López
ana at moszumanska.debian.org
Sat Oct 22 12:28:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
ana pushed a commit to annotated tag v1.1.1
in repository libfabric.
commit a8c2555b62b1e7044cb157c06fc55fbc9a0b1194
Author: Ben Turrubiates <bturrubi at cisco.com>
Date: Fri Sep 11 17:40:04 2015 -0700
usnic: usdf_rdm.c: Fix data corruption issue in EP_RDM.
Add handling of non-successful receives in the EP_RDM provider. If a
completion is received which has the status field set to anything other
than success, then the packet is dropped and reposted.
Signed-off-by: Ben Turrubiates <bturrubi at cisco.com>
(cherry picked from commit 4cddae163b8551384380e5d5bde3e90d65d9aaa7)
---
prov/usnic/src/usdf_rdm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/prov/usnic/src/usdf_rdm.c b/prov/usnic/src/usdf_rdm.c
index ab96e31..13782e4 100644
--- a/prov/usnic/src/usdf_rdm.c
+++ b/prov/usnic/src/usdf_rdm.c
@@ -1510,6 +1510,9 @@ usdf_rdm_handle_recv(struct usdf_domain *udp, struct usd_completion *comp)
}
//printf("RX opcode=%u\n", opcode);
+ if (comp->uc_status != USD_COMPSTAT_SUCCESS)
+ goto repost;
+
switch (opcode) {
case RUDP_OP_ACK:
usdf_rdm_rx_ack(rdc, rx->r.rdm.rx_tx, pkt);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/libfabric.git
More information about the Pkg-ofed-commits
mailing list