1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

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)
This commit is contained in:
Dennis Potter 2018-08-07 17:52:45 +02:00
parent 6937db3ec2
commit 0cd4e07173

View file

@ -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)