Skip to content

Commit

Permalink
Destroy server's QP in CM mode.
Browse files Browse the repository at this point in the history
Signed-off-by: Ram Amrani <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
  • Loading branch information
Ram Amrani authored and weiny2 committed Feb 8, 2017
1 parent fd1afd8 commit 37018ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,7 @@ cm_close(DEVICE *dev)
error(SYS, "rdma_disconnect failed");
cm_expect_event(dev, RDMA_CM_EVENT_DISCONNECTED);
cm_ack_event(dev);
rdma_destroy_qp(dev->cm.id);
rdma_destroy_id(dev->cm.id);
rdma_destroy_event_channel(dev->cm.channel);
}
Expand Down

0 comments on commit 37018ef

Please sign in to comment.