2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A/* Function prototypes */ 2N/A * Initiate a connection with the passive listener on another node 2N/A * remote_ia_address, 2N/A * prd_size size of private data and structure 2N/A * prd_prt pointer to private data structure 2N/A * DAT_INSUFFICIENT_RESOURCES 2N/A * DAT_INVALID_PARAMETER 2N/A "dapls_ib_connect: ep 0x%p\n" 2N/A " addr %s, conn_qual %016llu, ep_hkey %016llx\n" 2N/A " prd_size %d, timeout 0x%x\n",
2N/A "dapls_ib_connect: ep 0x%p, addr %s, conn_qual %016llu, " 2N/A /* resolve remote address to dgid */ 2N/A /* let the kernel driver look up the dgid from ATS */ 2N/A * filled in the remote_ia_address for consistent though 2N/A * not necessary when dapls_ns_lookup_address has resolved the dgid 2N/A /* LINTED: E_BAD_PTR_CAST_ALIGN */ 2N/A /* LINTED: E_BAD_PTR_CAST_ALIGN */ 2N/A /* establish the hello message */ 2N/A /* on ATS leave the msg blank to avoid confusion to 3rd parties */ 2N/A /* fill in local address */ 2N/A /* LINTED: E_BAD_PTR_CAST_ALIGN */ 2N/A /* LINTED: E_BAD_PTR_CAST_ALIGN */ 2N/A break;
/* fall through */ 2N/A "dapls_ib_connect: connect failed %s, retval %d\n\n",
2N/A "dapls_ib_connect: connected to %s\n\n",
2N/A * dapls_ib_disconnect 2N/A * DAT_INSUFFICIENT_RESOURCES 2N/A * DAT_INVALID_PARAMETER 2N/A "dapls_ib_disconnect: qp_handle == NULL\n");
2N/A /* no reason for disconnect to fail so transition the state */ 2N/A "dapls_ib_disconnect: disconnect failed %s\n",
2N/A "dapls_ib_disconnect: disconnected from %s, conn_qual %016llu\n",
2N/A * dapls_ib_connected 2N/A * transition qp_state to IBT_STATE_RTS 2N/A * dapls_ib_disconnect_clean 2N/A * transition qp_state to IBT_STATE_ERROR. 2N/A * abort connection if necessary. 2N/A * dapls_ib_reinit_ep 2N/A * Move the QP to INIT state again. 2N/A "dapls_ib_reinit: qp_handle == NULL\n");
2N/A * Do all the work request cleanup processing right away 2N/A * no one should really be doing any operation on this 2N/A * qp (we are not threadsafe)... 2N/A "dapls_ib_reinit: reinit failed %s\n",
2N/A * Setup data structure for work request processing 2N/A * we failed to create data structures for work request 2N/A * processing. Lets unmap and leave, the qp will get 2N/A * cleaned when ep gets destroyed - the ep is unusable 2N/A "dapls_ib_reinit: wrid_init failed %d\n",
retval);
2N/A /* we have a new ep and it is in the init state */ 2N/A "dapls_ib_reinit: successful, ia_address %s, conn_qual %016llu\n",
2N/A * dapl_ib_setup_conn_listener 2N/A * Have the CM set up a connection listener. 2N/A * ibm_hca_handle HCA handle 2N/A * qp_handle QP handle 2N/A * DAT_INSUFFICIENT_RESOURCES 2N/A * DAT_INVALID_PARAMETER 2N/A "setup_conn_listener: hca_handle == NULL\n");
2N/A "setup_conn_listener: evd_p == NULL\n");
2N/A "setup_conn_listener: srvc_handle == NULL\n");
2N/A "setup_conn_listener: register failed %s\n",
2N/A "setup_conn_listener: listening on ia_address %s, " 2N/A * dapl_ib_remove_conn_listener 2N/A * Have the CM remove a connection listener. 2N/A * ia_handle IA handle 2N/A * ServiceID IB Channel Service ID 2N/A * DAT_INVALID_PARAMETER 2N/A "remove_conn_listener: hca_handle == NULL\n");
2N/A "remove_conn_listener: deregister failed %s\n",
2N/A "remove_conn_listener: successful, ia_address %s, " 2N/A * dapls_ib_reject_connection 2N/A * Perform necessary steps to reject a connection 2N/A * DAT_INSUFFICIENT_RESOURCES 2N/A * DAT_INVALID_PARAMETER 2N/A "dapls_ib_reject: fd %d, sp_hkey %016llx, bkl_index 0x%llx\n",
2N/A "dapls_ib_reject: reject failed %s\n",
2N/A * dapls_ib_accept_connection 2N/A * Perform necessary steps to accept a connection 2N/A * DAT_INSUFFICIENT_RESOURCES 2N/A * DAT_INVALID_PARAMETER 2N/A /* check if ep is valid */ 2N/A "dapls_ib_accept: qp_handle == NULL\n");
2N/A "dapls_ib_accept: fd %d, sp_hkey %016llx, " 2N/A "bkl_index 0x%llx, ep_hkey %016llx\n",
2N/A "dapls_ib_accept: accept failed %s\n",
2N/A * dapls_ib_cm_remote_addr 2N/A * Obtain the remote IP address given a connection 2N/A * private data structure handle (only for IBHOSTS_NAMING) 2N/A * remote_ia_address: where to place the remote address 2N/A * DAT_INSUFFICIENT_RESOURCES 2N/A * DAT_INVALID_PARAMETER 2N/A * dapls_ib_handoff_connection 2N/A * handoff connection to a different qualifier 2N/A * DAT_INSUFFICIENT_RESOURCES 2N/A * DAT_INVALID_PARAMETER 2N/A "dapls_ib_handoff: fd %d, sp_hkey %016llx, " 2N/A "bkl_index 0x%llx conn_qual %llu\n",