Blame complib/ib_statustext.c

Packit 13e616
/*
Packit 13e616
 * Copyright (c) 2004, 2005 Voltaire, Inc. All rights reserved.
Packit 13e616
 * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
Packit 13e616
 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
Packit 13e616
 *
Packit 13e616
 * This software is available to you under a choice of one of two
Packit 13e616
 * licenses.  You may choose to be licensed under the terms of the GNU
Packit 13e616
 * General Public License (GPL) Version 2, available from the file
Packit 13e616
 * COPYING in the main directory of this source tree, or the
Packit 13e616
 * OpenIB.org BSD license below:
Packit 13e616
 *
Packit 13e616
 *     Redistribution and use in source and binary forms, with or
Packit 13e616
 *     without modification, are permitted provided that the following
Packit 13e616
 *     conditions are met:
Packit 13e616
 *
Packit 13e616
 *      - Redistributions of source code must retain the above
Packit 13e616
 *        copyright notice, this list of conditions and the following
Packit 13e616
 *        disclaimer.
Packit 13e616
 *
Packit 13e616
 *      - Redistributions in binary form must reproduce the above
Packit 13e616
 *        copyright notice, this list of conditions and the following
Packit 13e616
 *        disclaimer in the documentation and/or other materials
Packit 13e616
 *        provided with the distribution.
Packit 13e616
 *
Packit 13e616
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Packit 13e616
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Packit 13e616
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Packit 13e616
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
Packit 13e616
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
Packit 13e616
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
Packit 13e616
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Packit 13e616
 * SOFTWARE.
Packit 13e616
 *
Packit 13e616
 */
Packit 13e616
Packit 13e616
/*
Packit 13e616
 * Abstract:
Packit 13e616
 *	Defines string to decode ib_api_status_t return values.
Packit 13e616
 *
Packit 13e616
 */
Packit 13e616
Packit 13e616
#if HAVE_CONFIG_H
Packit 13e616
#  include <config.h>
Packit 13e616
#endif				/* HAVE_CONFIG_H */
Packit 13e616
Packit 13e616
#include <complib/cl_types.h>
Packit 13e616
Packit 13e616
/* ib_api_status_t values above converted to text for easier printing. */
Packit 13e616
const char *ib_error_str[] = {
Packit 13e616
	"IB_SUCCESS",
Packit 13e616
	"IB_INSUFFICIENT_RESOURCES",
Packit 13e616
	"IB_INSUFFICIENT_MEMORY",
Packit 13e616
	"IB_INVALID_PARAMETER",
Packit 13e616
	"IB_INVALID_SETTING",
Packit 13e616
	"IB_NOT_FOUND",
Packit 13e616
	"IB_TIMEOUT",
Packit 13e616
	"IB_CANCELED",
Packit 13e616
	"IB_INTERRUPTED",
Packit 13e616
	"IB_INVALID_PERMISSION",
Packit 13e616
	"IB_UNSUPPORTED",
Packit 13e616
	"IB_OVERFLOW",
Packit 13e616
	"IB_MAX_MCAST_QPS_REACHED",
Packit 13e616
	"IB_INVALID_QP_STATE",
Packit 13e616
	"IB_INVALID_EEC_STATE",
Packit 13e616
	"IB_INVALID_APM_STATE",
Packit 13e616
	"IB_INVALID_PORT_STATE",
Packit 13e616
	"IB_INVALID_STATE",
Packit 13e616
	"IB_RESOURCE_BUSY",
Packit 13e616
	"IB_INVALID_PKEY",
Packit 13e616
	"IB_INVALID_LKEY",
Packit 13e616
	"IB_INVALID_RKEY",
Packit 13e616
	"IB_INVALID_MAX_WRS",
Packit 13e616
	"IB_INVALID_MAX_SGE",
Packit 13e616
	"IB_INVALID_CQ_SIZE",
Packit 13e616
	"IB_INVALID_SERVICE_TYPE",
Packit 13e616
	"IB_INVALID_GID",
Packit 13e616
	"IB_INVALID_LID",
Packit 13e616
	"IB_INVALID_GUID",
Packit 13e616
	"IB_INVALID_CA_HANDLE",
Packit 13e616
	"IB_INVALID_AV_HANDLE",
Packit 13e616
	"IB_INVALID_CQ_HANDLE",
Packit 13e616
	"IB_INVALID_EEC_HANDLE",
Packit 13e616
	"IB_INVALID_QP_HANDLE",
Packit 13e616
	"IB_INVALID_PD_HANDLE",
Packit 13e616
	"IB_INVALID_MR_HANDLE",
Packit 13e616
	"IB_INVALID_MW_HANDLE",
Packit 13e616
	"IB_INVALID_RDD_HANDLE",
Packit 13e616
	"IB_INVALID_MCAST_HANDLE",
Packit 13e616
	"IB_INVALID_CALLBACK",
Packit 13e616
	"IB_INVALID_AL_HANDLE",
Packit 13e616
	"IB_INVALID_HANDLE",
Packit 13e616
	"IB_ERROR",
Packit 13e616
	"IB_REMOTE_ERROR",	/* Infiniband Access Layer */
Packit 13e616
	"IB_VERBS_PROCESSING_DONE",
Packit 13e616
	"IB_INVALID_WR_TYPE",
Packit 13e616
	"IB_QP_IN_TIMEWAIT",
Packit 13e616
	"IB_EE_IN_TIMEWAIT",
Packit 13e616
	"IB_INVALID_PORT",
Packit 13e616
	"IB_NOT_DONE",
Packit 13e616
	"IB_UNKNOWN_ERROR"
Packit 13e616
};
Packit 13e616
Packit 13e616
/* ib_async_event_t values above converted to text for easier printing. */
Packit 13e616
const char *ib_async_event_str[] = {
Packit 13e616
	"IB_AE_SQ_ERROR",
Packit 13e616
	"IB_AE_SQ_DRAINED",
Packit 13e616
	"IB_AE_RQ_ERROR",
Packit 13e616
	"IB_AE_CQ_ERROR",
Packit 13e616
	"IB_AE_QP_FATAL",
Packit 13e616
	"IB_AE_QP_COMM",
Packit 13e616
	"IB_AE_QP_APM",
Packit 13e616
	"IB_AE_EEC_FATAL",
Packit 13e616
	"IB_AE_EEC_COMM",
Packit 13e616
	"IB_AE_EEC_APM",
Packit 13e616
	"IB_AE_LOCAL_FATAL",
Packit 13e616
	"IB_AE_PKEY_TRAP",
Packit 13e616
	"IB_AE_QKEY_TRAP",
Packit 13e616
	"IB_AE_MKEY_TRAP",
Packit 13e616
	"IB_AE_PORT_TRAP",
Packit 13e616
	"IB_AE_SYSIMG_GUID_TRAP",
Packit 13e616
	"IB_AE_BUF_OVERRUN",
Packit 13e616
	"IB_AE_LINK_INTEGRITY",
Packit 13e616
	"IB_AE_FLOW_CTRL_ERROR",
Packit 13e616
	"IB_AE_BKEY_TRAP",
Packit 13e616
	"IB_AE_QP_APM_ERROR",
Packit 13e616
	"IB_AE_EEC_APM_ERROR",
Packit 13e616
	"IB_AE_WQ_REQ_ERROR",
Packit 13e616
	"IB_AE_WQ_ACCESS_ERROR",
Packit 13e616
	"IB_AE_PORT_ACTIVE",	/* ACTIVE STATE */
Packit 13e616
	"IB_AE_PORT_DOWN",	/* INIT", ARMED", DOWN */
Packit 13e616
	"IB_AE_UNKNOWN"
Packit 13e616
};
Packit 13e616
Packit 13e616
const char *ib_wc_status_str[] = {
Packit 13e616
	"IB_WCS_SUCCESS",
Packit 13e616
	"IB_WCS_LOCAL_LEN_ERR",
Packit 13e616
	"IB_WCS_LOCAL_OP_ERR",
Packit 13e616
	"IB_WCS_LOCAL_EEC_OP_ERR",
Packit 13e616
	"IB_WCS_LOCAL_PROTECTION_ERR",
Packit 13e616
	"IB_WCS_WR_FLUSHED_ERR",
Packit 13e616
	"IB_WCS_MEM_WINDOW_BIND_ERR",
Packit 13e616
	"IB_WCS_REM_ACCESS_ERR",
Packit 13e616
	"IB_WCS_REM_OP_ERR",
Packit 13e616
	"IB_WCS_RNR_RETRY_ERR",
Packit 13e616
	"IB_WCS_TIMEOUT_RETRY_ERR",
Packit 13e616
	"IB_WCS_REM_INVALID_REQ_ERR",
Packit 13e616
	"IB_WCS_REM_INVALID_RD_REQ_ERR",
Packit 13e616
	"IB_WCS_INVALID_EECN",
Packit 13e616
	"IB_WCS_INVALID_EEC_STATE",
Packit 13e616
	"IB_WCS_UNMATCHED_RESPONSE",	/* InfiniBand Access Layer */
Packit 13e616
	"IB_WCS_CANCELED",	/* InfiniBand Access Layer */
Packit 13e616
	"IB_WCS_UNKNOWN"
Packit 13e616
};