Lines Matching defs:cm_id
57 rdsv3_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
61 struct rdsv3_connection *conn = cm_id->context;
66 "conn %p id %p handling event %u", conn, cm_id, event->event);
79 * right away. We return 0 so cm_id doesn't get
91 "disconnecting", conn, cm_id, event->event);
98 ret = trans->cm_handle_connect(cm_id, event);
103 ret = rdma_resolve_route(cm_id,
109 ret = trans->cm_initiate_connect(cm_id);
130 "cm_id: %p", cm_id);
153 "id %p event %u handling ret %d", cm_id, event->event, ret);
162 struct rdma_cm_id *cm_id;
167 cm_id = rdma_create_id(rdsv3_rdma_cm_event_handler, NULL, RDMA_PS_TCP);
168 if (IS_ERR(cm_id)) {
169 ret = PTR_ERR(cm_id);
181 * XXX I bet this binds the cm_id to a device. If we want to support
184 ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin);
192 ret = rdma_listen(cm_id, 128);
201 "cm %p listening on port %u", cm_id, RDSV3_PORT);
203 rdsv3_rdma_listen_id = cm_id;
204 cm_id = NULL;
209 if (cm_id)
210 rdma_destroy_id(cm_id);