From 0cd4e07173e3ca41001acc4724b3fadcf1fc5c8c Mon Sep 17 00:00:00 2001 From: Dennis Potter Date: Tue, 7 Aug 2018 17:52:45 +0200 Subject: [PATCH] Fixed another small bug in Infiniband node. Both RC and UC are connected. So the check I changed should check for NOT UDP (UD), instead of TCP (RC) --- lib/nodes/infiniband.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodes/infiniband.c b/lib/nodes/infiniband.c index 91e0b1fbf..c5f6d76e0 100644 --- a/lib/nodes/infiniband.c +++ b/lib/nodes/infiniband.c @@ -711,7 +711,7 @@ int ib_stop(struct node *n) // Call RDMA disconnect function // Will flush all outstanding WRs to the Completion Queue and // will call RDMA_CM_EVENT_DISCONNECTED if that is done. - if (n->state == STATE_CONNECTED && ib->conn.port_space == RDMA_PS_TCP) { + if (n->state == STATE_CONNECTED && ib->conn.port_space != RDMA_PS_UDP) { ret = rdma_disconnect(ib->ctx.id); if (ret)