Syntax #include <rdma/rdma_cma.h> int rdma_disconnect(struct rdma_cm_id *id); Description Therdma_disconnectfunction disconnects a connection and transitions any associated queue pair (QP) with the error state. The error state moves the work requests that are posted to the completion queue. ...
voidclient_disconnect(void){structrdma_event_channel*ec=s_ctx->ec;structrdma_cm_id*id=s_ctx->id;structrdma_cm_event*event=NULL;structtimevalstart,end,dt;gettimeofday(&start,NULL);printf("ready to disconnect\n");rdma_disconnect(id);printf("send disconnect\n"); gettimeofday(&end,NULL); ti...