/freebsd/contrib/ofed/librdmacm/examples/ |
H A D | udaddy.c | 49 struct rdma_cm_id *cma_id; member 111 ret = ibv_query_port(node->cma_id->verbs, node->cma_id->port_num, in verify_test_params() 130 node->pd = ibv_alloc_pd(node->cma_id->verbs); in init_node() 138 node->cq = ibv_create_cq(node->cma_id->verbs, cqe, node, NULL, 0); in init_node() 155 ret = rdma_create_qp(node->cma_id, node->pd, &init_qp_attr); in init_node() 189 ret = ibv_post_recv(node->cma_id->qp, &recv_wr, &recv_failure); in post_recvs() 213 send_wr.imm_data = htobe32(node->cma_id->qp->qp_num); in post_sends() 224 ret = ibv_post_send(node->cma_id->qp, &send_wr, &bad_send_wr); in post_sends() 241 ret = rdma_set_option(node->cma_id, RDMA_OPTION_ID, in addr_handler() 247 ret = rdma_resolve_route(node->cma_id, 2000); in addr_handler() [all …]
|
H A D | cmatose.c | 49 struct rdma_cm_id *cma_id; member 114 node->pd = ibv_alloc_pd(node->cma_id->verbs); in init_node() 122 node->cq[SEND_CQ_INDEX] = ibv_create_cq(node->cma_id->verbs, cqe, node, NULL, 0); in init_node() 123 node->cq[RECV_CQ_INDEX] = ibv_create_cq(node->cma_id->verbs, cqe, node, NULL, 0); in init_node() 140 ret = rdma_create_qp(node->cma_id, node->pd, &init_qp_attr); in init_node() 174 ret = ibv_post_recv(node->cma_id->qp, &recv_wr, &recv_failure); in post_recvs() 204 ret = ibv_post_send(node->cma_id->qp, &send_wr, &bad_send_wr); in post_sends() 221 ret = rdma_set_option(node->cma_id, RDMA_OPTION_ID, in addr_handler() 227 ret = rdma_resolve_route(node->cma_id, 2000); in addr_handler() 254 ret = rdma_connect(node->cma_id, &conn_param); in route_handler() [all …]
|
H A D | mckey.c | 51 struct rdma_cm_id *cma_id; member 116 ret = ibv_query_port(node->cma_id->verbs, node->cma_id->port_num, in verify_test_params() 135 node->pd = ibv_alloc_pd(node->cma_id->verbs); in init_node() 143 node->cq = ibv_create_cq(node->cma_id->verbs, cqe, node, NULL, 0); in init_node() 160 ret = rdma_create_qp(node->cma_id, node->pd, &init_qp_attr); in init_node() 194 ret = ibv_post_recv(node->cma_id->qp, &recv_wr, &recv_failure); in post_recvs() 218 send_wr.imm_data = htobe32(node->cma_id->qp->qp_num); in post_sends() 229 ret = ibv_post_send(node->cma_id->qp, &send_wr, &bad_send_wr); in post_sends() 259 ret = rdma_join_multicast(node->cma_id, test.dst_addr, node); in addr_handler() 295 static int cma_handler(struct rdma_cm_id *cma_id, struct rdma_cm_event *event) in cma_handler() argument [all …]
|
H A D | rping.c | 160 static int rping_cma_event_handler(struct rdma_cm_id *cma_id, in rping_cma_event_handler() argument 164 struct rping_cb *cb = cma_id->context; in rping_cma_event_handler() 167 rdma_event_str(event->event), cma_id, in rping_cma_event_handler() 168 (cma_id == cb->cm_id) ? "parent" : "child"); in rping_cma_event_handler() 173 ret = rdma_resolve_route(cma_id, 2000); in rping_cma_event_handler() 188 cb->child_cm_id = cma_id; in rping_cma_event_handler()
|
/freebsd/sys/dev/iser/ |
H A D | iser_verbs.c | 467 ret = rdma_create_qp(ib_conn->cma_id, device->pd, &init_attr); in iser_create_ib_conn_res() 471 ib_conn->qp = ib_conn->cma_id->qp; in iser_create_ib_conn_res() 473 ib_conn, ib_conn->cma_id, in iser_create_ib_conn_res() 474 ib_conn->cma_id->qp); in iser_create_ib_conn_res() 492 iser_device_find_by_ib_device(struct rdma_cm_id *cma_id) in iser_device_find_by_ib_device() argument 500 if (device->ib_device->node_guid == cma_id->device->node_guid) in iser_device_find_by_ib_device() 505 device->ib_device = cma_id->device; in iser_device_find_by_ib_device() 573 iser_conn, ib_conn->cma_id, ib_conn->qp); in iser_free_ib_conn_res() 579 rdma_destroy_qp(ib_conn->cma_id); in iser_free_ib_conn_res() 636 if (ib_conn->cma_id) { in iser_conn_terminate() [all …]
|
H A D | icl_iser.c | 382 if (ib_conn->cma_id != NULL) { in iser_conn_release() 383 rdma_destroy_id(ib_conn->cma_id); in iser_conn_release() 384 ib_conn->cma_id = NULL; in iser_conn_release() 425 ib_conn->cma_id = rdma_create_id(&init_net, iser_cma_handler, (void *)iser_conn, in iser_conn_connect() 427 if (IS_ERR(ib_conn->cma_id)) { in iser_conn_connect() 428 err = -PTR_ERR(ib_conn->cma_id); in iser_conn_connect() 433 err = rdma_resolve_addr(ib_conn->cma_id, from_sa, to_sa, 1000); in iser_conn_connect() 462 ib_conn->cma_id = NULL; in iser_conn_connect()
|
H A D | icl_iser.h | 410 struct rdma_cm_id *cma_id; member
|
/freebsd/sys/contrib/rdma/krping/ |
H A D | krping.c | 245 static int krping_cma_event_handler(struct rdma_cm_id *cma_id, in krping_cma_event_handler() argument 249 struct krping_cb *cb = cma_id->context; in krping_cma_event_handler() 251 DEBUG_LOG("cma_event type %d cma_id %p (%s)\n", event->event, cma_id, in krping_cma_event_handler() 252 (cma_id == cb->cm_id) ? "parent" : "child"); in krping_cma_event_handler() 257 ret = rdma_resolve_route(cma_id, 2000); in krping_cma_event_handler() 272 cb->child_cm_id = cma_id; in krping_cma_event_handler()
|