2 * Copyright (c) 2004, 2005 Voltaire, Inc. All rights reserved.
3 * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file
9 * COPYING in the main directory of this source tree, or the
10 * OpenIB.org BSD license below:
12 * Redistribution and use in source and binary forms, with or
13 * without modification, are permitted provided that the following
16 * - Redistributions of source code must retain the above
17 * copyright notice, this list of conditions and the following
20 * - Redistributions in binary form must reproduce the above
21 * copyright notice, this list of conditions and the following
22 * disclaimer in the documentation and/or other materials
23 * provided with the distribution.
25 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
29 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
30 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
31 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38 * Defines string to decode ib_api_status_t return values.
44 #endif /* HAVE_CONFIG_H */
46 #include <complib/cl_types.h>
48 /* ib_api_status_t values above converted to text for easier printing. */
49 const char *ib_error_str[] = {
51 "IB_INSUFFICIENT_RESOURCES",
52 "IB_INSUFFICIENT_MEMORY",
53 "IB_INVALID_PARAMETER",
59 "IB_INVALID_PERMISSION",
62 "IB_MAX_MCAST_QPS_REACHED",
63 "IB_INVALID_QP_STATE",
64 "IB_INVALID_EEC_STATE",
65 "IB_INVALID_APM_STATE",
66 "IB_INVALID_PORT_STATE",
75 "IB_INVALID_SERVICE_TYPE",
79 "IB_INVALID_CA_HANDLE",
80 "IB_INVALID_AV_HANDLE",
81 "IB_INVALID_CQ_HANDLE",
82 "IB_INVALID_EEC_HANDLE",
83 "IB_INVALID_QP_HANDLE",
84 "IB_INVALID_PD_HANDLE",
85 "IB_INVALID_MR_HANDLE",
86 "IB_INVALID_MW_HANDLE",
87 "IB_INVALID_RDD_HANDLE",
88 "IB_INVALID_MCAST_HANDLE",
89 "IB_INVALID_CALLBACK",
90 "IB_INVALID_AL_HANDLE",
93 "IB_REMOTE_ERROR", /* Infiniband Access Layer */
94 "IB_VERBS_PROCESSING_DONE",
103 /* ib_async_event_t values above converted to text for easier printing. */
104 const char *ib_async_event_str[] = {
120 "IB_AE_SYSIMG_GUID_TRAP",
122 "IB_AE_LINK_INTEGRITY",
123 "IB_AE_FLOW_CTRL_ERROR",
125 "IB_AE_QP_APM_ERROR",
126 "IB_AE_EEC_APM_ERROR",
127 "IB_AE_WQ_REQ_ERROR",
128 "IB_AE_WQ_ACCESS_ERROR",
129 "IB_AE_PORT_ACTIVE", /* ACTIVE STATE */
130 "IB_AE_PORT_DOWN", /* INIT", ARMED", DOWN */
134 const char *ib_wc_status_str[] = {
136 "IB_WCS_LOCAL_LEN_ERR",
137 "IB_WCS_LOCAL_OP_ERR",
138 "IB_WCS_LOCAL_EEC_OP_ERR",
139 "IB_WCS_LOCAL_PROTECTION_ERR",
140 "IB_WCS_WR_FLUSHED_ERR",
141 "IB_WCS_MEM_WINDOW_BIND_ERR",
142 "IB_WCS_REM_ACCESS_ERR",
144 "IB_WCS_RNR_RETRY_ERR",
145 "IB_WCS_TIMEOUT_RETRY_ERR",
146 "IB_WCS_REM_INVALID_REQ_ERR",
147 "IB_WCS_REM_INVALID_RD_REQ_ERR",
148 "IB_WCS_INVALID_EECN",
149 "IB_WCS_INVALID_EEC_STATE",
150 "IB_WCS_UNMATCHED_RESPONSE", /* InfiniBand Access Layer */
151 "IB_WCS_CANCELED", /* InfiniBand Access Layer */