/net/rds/ |
D | rdma_transport.c | 68 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 …]
|
D | iw_rdma.c | 47 struct rdma_cm_id *cm_id; member 93 struct rdma_cm_id **cm_id) argument 99 *cm_id = NULL; 106 src_addr = (struct sockaddr_in *)&i_cm_id->cm_id->route.addr.src_addr; 107 dst_addr = (struct sockaddr_in *)&i_cm_id->cm_id->route.addr.dst_addr; 137 *cm_id = i_cm_id->cm_id; 147 static int rds_iw_add_cm_id(struct rds_iw_device *rds_iwdev, struct rdma_cm_id *cm_id) argument 155 i_cm_id->cm_id = cm_id; 165 struct rdma_cm_id *cm_id) argument 171 if (i_cm_id->cm_id == cm_id) { [all …]
|
D | iw.c | 224 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 || in rds_iw_laddr_check() 243 cm_id->device->node_type != RDMA_NODE_RNIC) in rds_iw_laddr_check() 248 cm_id->device ? cm_id->device->node_type : -1); in rds_iw_laddr_check() 250 rdma_destroy_id(cm_id); in rds_iw_laddr_check()
|
D | ib.c | 323 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 || in rds_ib_laddr_check() 342 cm_id->device->node_type != RDMA_NODE_IB_CA) in rds_ib_laddr_check() 347 cm_id->device ? cm_id->device->node_type : -1); in rds_ib_laddr_check() 349 rdma_destroy_id(cm_id); in rds_ib_laddr_check()
|
D | ib_cm.c | 470 int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id, in rds_ib_cm_handle_connect() argument 473 __be64 lguid = cm_id->route.path_rec->sgid.global.interface_id; in rds_ib_cm_handle_connect() 474 __be64 fguid = cm_id->route.path_rec->dgid.global.interface_id; in rds_ib_cm_handle_connect() 533 BUG_ON(cm_id->context); in rds_ib_cm_handle_connect() 536 ic->i_cm_id = cm_id; in rds_ib_cm_handle_connect() 537 cm_id->context = conn; in rds_ib_cm_handle_connect() 554 err = rdma_accept(cm_id, &conn_param); in rds_ib_cm_handle_connect() 562 rdma_reject(cm_id, NULL, 0); in rds_ib_cm_handle_connect() 567 int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id) in rds_ib_cm_initiate_connect() argument 569 struct rds_connection *conn = cm_id->context; in rds_ib_cm_initiate_connect() [all …]
|
D | iw_cm.c | 377 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 …]
|
D | iw.h | 175 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);
|
D | rdma_transport.h | 11 int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
|
D | ib.h | 287 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);
|
D | rds.h | 439 int (*cm_handle_connect)(struct rdma_cm_id *cm_id, 441 int (*cm_initiate_connect)(struct rdma_cm_id *cm_id);
|
/net/9p/ |
D | trans_rdma.c | 93 struct rdma_cm_id *cm_id; member 270 rdma_disconnect(rdma->cm_id); in p9_cm_event_handler() 288 ib_dma_unmap_single(rdma->cm_id->device, c->busa, client->msize, in handle_recv() 324 ib_dma_unmap_single(rdma->cm_id->device, in handle_send() 388 if (rdma->cm_id && !IS_ERR(rdma->cm_id)) in rdma_destroy_trans() 389 rdma_destroy_id(rdma->cm_id); in rdma_destroy_trans() 401 c->busa = ib_dma_map_single(rdma->cm_id->device, in post_recv() 404 if (ib_dma_mapping_error(rdma->cm_id->device, c->busa)) in post_recv() 490 c->busa = ib_dma_map_single(rdma->cm_id->device, in rdma_request() 493 if (ib_dma_mapping_error(rdma->cm_id->device, c->busa)) { in rdma_request() [all …]
|