Home
last modified time | relevance | path

Searched refs:cm_id (Results 1 – 11 of 11) sorted by relevance

/net/rds/
Drdma_transport.c68 int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id, in rds_rdma_cm_event_handler() argument
72 struct rds_connection *conn = cm_id->context; in rds_rdma_cm_event_handler()
76 rdsdebug("conn %p id %p handling event %u (%s)\n", conn, cm_id, in rds_rdma_cm_event_handler()
79 if (cm_id->device->node_type == RDMA_NODE_RNIC) in rds_rdma_cm_event_handler()
103 ret = trans->cm_handle_connect(cm_id, event); in rds_rdma_cm_event_handler()
108 ret = rdma_resolve_route(cm_id, in rds_rdma_cm_event_handler()
114 ret = trans->cm_initiate_connect(cm_id); in rds_rdma_cm_event_handler()
150 rdsdebug("id %p event %u (%s) handling ret %d\n", cm_id, event->event, in rds_rdma_cm_event_handler()
159 struct rdma_cm_id *cm_id; in rds_rdma_listen_init() local
162 cm_id = rdma_create_id(rds_rdma_cm_event_handler, NULL, RDMA_PS_TCP, in rds_rdma_listen_init()
[all …]
Diw_rdma.c47 struct rdma_cm_id *cm_id; member
91 …rds_iw_get_device(struct rds_sock *rs, struct rds_iw_device **rds_iwdev, struct rdma_cm_id **cm_id) argument
97 *cm_id = NULL;
104 src_addr = (struct sockaddr_in *)&i_cm_id->cm_id->route.addr.src_addr;
105 dst_addr = (struct sockaddr_in *)&i_cm_id->cm_id->route.addr.dst_addr;
135 *cm_id = i_cm_id->cm_id;
145 static int rds_iw_add_cm_id(struct rds_iw_device *rds_iwdev, struct rdma_cm_id *cm_id) argument
153 i_cm_id->cm_id = cm_id;
163 struct rdma_cm_id *cm_id) argument
169 if (i_cm_id->cm_id == cm_id) {
[all …]
Diw.c224 struct rdma_cm_id *cm_id; in rds_iw_laddr_check() local
230 cm_id = rdma_create_id(NULL, NULL, RDMA_PS_TCP, IB_QPT_RC); in rds_iw_laddr_check()
231 if (IS_ERR(cm_id)) in rds_iw_laddr_check()
232 return PTR_ERR(cm_id); in rds_iw_laddr_check()
239 ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin); in rds_iw_laddr_check()
242 if (ret || cm_id->device->node_type != RDMA_NODE_RNIC) in rds_iw_laddr_check()
247 cm_id->device ? cm_id->device->node_type : -1); in rds_iw_laddr_check()
249 rdma_destroy_id(cm_id); in rds_iw_laddr_check()
Dib.c323 struct rdma_cm_id *cm_id; in rds_ib_laddr_check() local
329 cm_id = rdma_create_id(NULL, NULL, RDMA_PS_TCP, IB_QPT_RC); in rds_ib_laddr_check()
330 if (IS_ERR(cm_id)) in rds_ib_laddr_check()
331 return PTR_ERR(cm_id); in rds_ib_laddr_check()
338 ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin); in rds_ib_laddr_check()
341 if (ret || cm_id->device->node_type != RDMA_NODE_IB_CA) in rds_ib_laddr_check()
346 cm_id->device ? cm_id->device->node_type : -1); in rds_ib_laddr_check()
348 rdma_destroy_id(cm_id); in rds_ib_laddr_check()
Dib_cm.c445 int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id, in rds_ib_cm_handle_connect() argument
448 __be64 lguid = cm_id->route.path_rec->sgid.global.interface_id; in rds_ib_cm_handle_connect()
449 __be64 fguid = cm_id->route.path_rec->dgid.global.interface_id; in rds_ib_cm_handle_connect()
508 BUG_ON(cm_id->context); in rds_ib_cm_handle_connect()
511 ic->i_cm_id = cm_id; in rds_ib_cm_handle_connect()
512 cm_id->context = conn; in rds_ib_cm_handle_connect()
529 err = rdma_accept(cm_id, &conn_param); in rds_ib_cm_handle_connect()
537 rdma_reject(cm_id, NULL, 0); in rds_ib_cm_handle_connect()
542 int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id) in rds_ib_cm_initiate_connect() argument
544 struct rds_connection *conn = cm_id->context; in rds_ib_cm_initiate_connect()
[all …]
Diw_cm.c377 int rds_iw_cm_handle_connect(struct rdma_cm_id *cm_id, in rds_iw_cm_handle_connect() argument
438 BUG_ON(cm_id->context); in rds_iw_cm_handle_connect()
441 ic->i_cm_id = cm_id; in rds_iw_cm_handle_connect()
442 cm_id->context = conn; in rds_iw_cm_handle_connect()
444 rds_iwdev = ib_get_client_data(cm_id->device, &rds_iw_client); in rds_iw_cm_handle_connect()
461 err = rdma_accept(cm_id, &conn_param); in rds_iw_cm_handle_connect()
471 rdma_reject(cm_id, NULL, 0); in rds_iw_cm_handle_connect()
476 int rds_iw_cm_initiate_connect(struct rdma_cm_id *cm_id) in rds_iw_cm_initiate_connect() argument
478 struct rds_connection *conn = cm_id->context; in rds_iw_cm_initiate_connect()
497 ret = rdma_connect(cm_id, &conn_param); in rds_iw_cm_initiate_connect()
[all …]
Diw.h175 struct rdma_cm_id *cm_id; member
289 int rds_iw_cm_handle_connect(struct rdma_cm_id *cm_id,
291 int rds_iw_cm_initiate_connect(struct rdma_cm_id *cm_id);
300 int rds_iw_update_cm_id(struct rds_iw_device *rds_iwdev, struct rdma_cm_id *cm_id);
Drdma_transport.h11 int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
Dib.h287 int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
289 int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id);
Drds.h438 int (*cm_handle_connect)(struct rdma_cm_id *cm_id,
440 int (*cm_initiate_connect)(struct rdma_cm_id *cm_id);
/net/9p/
Dtrans_rdma.c93 struct rdma_cm_id *cm_id; member
267 rdma_disconnect(rdma->cm_id); in p9_cm_event_handler()
285 ib_dma_unmap_single(rdma->cm_id->device, c->busa, client->msize, in handle_recv()
315 ib_dma_unmap_single(rdma->cm_id->device, in handle_send()
379 if (rdma->cm_id && !IS_ERR(rdma->cm_id)) in rdma_destroy_trans()
380 rdma_destroy_id(rdma->cm_id); in rdma_destroy_trans()
392 c->busa = ib_dma_map_single(rdma->cm_id->device, in post_recv()
395 if (ib_dma_mapping_error(rdma->cm_id->device, c->busa)) in post_recv()
476 c->busa = ib_dma_map_single(rdma->cm_id->device, in rdma_request()
479 if (ib_dma_mapping_error(rdma->cm_id->device, c->busa)) in rdma_request()
[all …]