Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (c) 2017 Oracle.  All rights reserved.
0004  */
0005 
0006 /*
0007  * enum ib_event_type, from include/rdma/ib_verbs.h
0008  */
0009 #define IB_EVENT_LIST               \
0010     ib_event(CQ_ERR)            \
0011     ib_event(QP_FATAL)          \
0012     ib_event(QP_REQ_ERR)            \
0013     ib_event(QP_ACCESS_ERR)         \
0014     ib_event(COMM_EST)          \
0015     ib_event(SQ_DRAINED)            \
0016     ib_event(PATH_MIG)          \
0017     ib_event(PATH_MIG_ERR)          \
0018     ib_event(DEVICE_FATAL)          \
0019     ib_event(PORT_ACTIVE)           \
0020     ib_event(PORT_ERR)          \
0021     ib_event(LID_CHANGE)            \
0022     ib_event(PKEY_CHANGE)           \
0023     ib_event(SM_CHANGE)         \
0024     ib_event(SRQ_ERR)           \
0025     ib_event(SRQ_LIMIT_REACHED)     \
0026     ib_event(QP_LAST_WQE_REACHED)       \
0027     ib_event(CLIENT_REREGISTER)     \
0028     ib_event(GID_CHANGE)            \
0029     ib_event_end(WQ_FATAL)
0030 
0031 #undef ib_event
0032 #undef ib_event_end
0033 
0034 #define ib_event(x)     TRACE_DEFINE_ENUM(IB_EVENT_##x);
0035 #define ib_event_end(x)     TRACE_DEFINE_ENUM(IB_EVENT_##x);
0036 
0037 IB_EVENT_LIST
0038 
0039 #undef ib_event
0040 #undef ib_event_end
0041 
0042 #define ib_event(x)     { IB_EVENT_##x, #x },
0043 #define ib_event_end(x)     { IB_EVENT_##x, #x }
0044 
0045 #define rdma_show_ib_event(x) \
0046         __print_symbolic(x, IB_EVENT_LIST)
0047 
0048 /*
0049  * enum ib_wc_status type, from include/rdma/ib_verbs.h
0050  */
0051 #define IB_WC_STATUS_LIST           \
0052     ib_wc_status(SUCCESS)           \
0053     ib_wc_status(LOC_LEN_ERR)       \
0054     ib_wc_status(LOC_QP_OP_ERR)     \
0055     ib_wc_status(LOC_EEC_OP_ERR)        \
0056     ib_wc_status(LOC_PROT_ERR)      \
0057     ib_wc_status(WR_FLUSH_ERR)      \
0058     ib_wc_status(MW_BIND_ERR)       \
0059     ib_wc_status(BAD_RESP_ERR)      \
0060     ib_wc_status(LOC_ACCESS_ERR)        \
0061     ib_wc_status(REM_INV_REQ_ERR)       \
0062     ib_wc_status(REM_ACCESS_ERR)        \
0063     ib_wc_status(REM_OP_ERR)        \
0064     ib_wc_status(RETRY_EXC_ERR)     \
0065     ib_wc_status(RNR_RETRY_EXC_ERR)     \
0066     ib_wc_status(LOC_RDD_VIOL_ERR)      \
0067     ib_wc_status(REM_INV_RD_REQ_ERR)    \
0068     ib_wc_status(REM_ABORT_ERR)     \
0069     ib_wc_status(INV_EECN_ERR)      \
0070     ib_wc_status(INV_EEC_STATE_ERR)     \
0071     ib_wc_status(FATAL_ERR)         \
0072     ib_wc_status(RESP_TIMEOUT_ERR)      \
0073     ib_wc_status_end(GENERAL_ERR)
0074 
0075 #undef ib_wc_status
0076 #undef ib_wc_status_end
0077 
0078 #define ib_wc_status(x)     TRACE_DEFINE_ENUM(IB_WC_##x);
0079 #define ib_wc_status_end(x) TRACE_DEFINE_ENUM(IB_WC_##x);
0080 
0081 IB_WC_STATUS_LIST
0082 
0083 #undef ib_wc_status
0084 #undef ib_wc_status_end
0085 
0086 #define ib_wc_status(x)     { IB_WC_##x, #x },
0087 #define ib_wc_status_end(x) { IB_WC_##x, #x }
0088 
0089 #define rdma_show_wc_status(x) \
0090         __print_symbolic(x, IB_WC_STATUS_LIST)
0091 
0092 /*
0093  * enum ib_cm_event_type, from include/rdma/ib_cm.h
0094  */
0095 #define IB_CM_EVENT_LIST            \
0096     ib_cm_event(REQ_ERROR)          \
0097     ib_cm_event(REQ_RECEIVED)       \
0098     ib_cm_event(REP_ERROR)          \
0099     ib_cm_event(REP_RECEIVED)       \
0100     ib_cm_event(RTU_RECEIVED)       \
0101     ib_cm_event(USER_ESTABLISHED)       \
0102     ib_cm_event(DREQ_ERROR)         \
0103     ib_cm_event(DREQ_RECEIVED)      \
0104     ib_cm_event(DREP_RECEIVED)      \
0105     ib_cm_event(TIMEWAIT_EXIT)      \
0106     ib_cm_event(MRA_RECEIVED)       \
0107     ib_cm_event(REJ_RECEIVED)       \
0108     ib_cm_event(LAP_ERROR)          \
0109     ib_cm_event(LAP_RECEIVED)       \
0110     ib_cm_event(APR_RECEIVED)       \
0111     ib_cm_event(SIDR_REQ_ERROR)     \
0112     ib_cm_event(SIDR_REQ_RECEIVED)      \
0113     ib_cm_event_end(SIDR_REP_RECEIVED)
0114 
0115 #undef ib_cm_event
0116 #undef ib_cm_event_end
0117 
0118 #define ib_cm_event(x)      TRACE_DEFINE_ENUM(IB_CM_##x);
0119 #define ib_cm_event_end(x)  TRACE_DEFINE_ENUM(IB_CM_##x);
0120 
0121 IB_CM_EVENT_LIST
0122 
0123 #undef ib_cm_event
0124 #undef ib_cm_event_end
0125 
0126 #define ib_cm_event(x)      { IB_CM_##x, #x },
0127 #define ib_cm_event_end(x)  { IB_CM_##x, #x }
0128 
0129 #define rdma_show_ib_cm_event(x) \
0130         __print_symbolic(x, IB_CM_EVENT_LIST)
0131 
0132 /*
0133  * enum rdma_cm_event_type, from include/rdma/rdma_cm.h
0134  */
0135 #define RDMA_CM_EVENT_LIST          \
0136     rdma_cm_event(ADDR_RESOLVED)        \
0137     rdma_cm_event(ADDR_ERROR)       \
0138     rdma_cm_event(ROUTE_RESOLVED)       \
0139     rdma_cm_event(ROUTE_ERROR)      \
0140     rdma_cm_event(CONNECT_REQUEST)      \
0141     rdma_cm_event(CONNECT_RESPONSE)     \
0142     rdma_cm_event(CONNECT_ERROR)        \
0143     rdma_cm_event(UNREACHABLE)      \
0144     rdma_cm_event(REJECTED)         \
0145     rdma_cm_event(ESTABLISHED)      \
0146     rdma_cm_event(DISCONNECTED)     \
0147     rdma_cm_event(DEVICE_REMOVAL)       \
0148     rdma_cm_event(MULTICAST_JOIN)       \
0149     rdma_cm_event(MULTICAST_ERROR)      \
0150     rdma_cm_event(ADDR_CHANGE)      \
0151     rdma_cm_event_end(TIMEWAIT_EXIT)
0152 
0153 #undef rdma_cm_event
0154 #undef rdma_cm_event_end
0155 
0156 #define rdma_cm_event(x)    TRACE_DEFINE_ENUM(RDMA_CM_EVENT_##x);
0157 #define rdma_cm_event_end(x)    TRACE_DEFINE_ENUM(RDMA_CM_EVENT_##x);
0158 
0159 RDMA_CM_EVENT_LIST
0160 
0161 #undef rdma_cm_event
0162 #undef rdma_cm_event_end
0163 
0164 #define rdma_cm_event(x)    { RDMA_CM_EVENT_##x, #x },
0165 #define rdma_cm_event_end(x)    { RDMA_CM_EVENT_##x, #x }
0166 
0167 #define rdma_show_cm_event(x) \
0168         __print_symbolic(x, RDMA_CM_EVENT_LIST)