include/trace/misc/rdma.h

Source file repositories/reference/linux-study-clean/include/trace/misc/rdma.h

File Facts

System
Linux kernel
Corpus path
include/trace/misc/rdma.h
Extension
.h
Size
4337 bytes
Lines
169
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

#define IB_EVENT_LIST				\
	ib_event(CQ_ERR)			\
	ib_event(QP_FATAL)			\
	ib_event(QP_REQ_ERR)			\
	ib_event(QP_ACCESS_ERR)			\
	ib_event(COMM_EST)			\
	ib_event(SQ_DRAINED)			\
	ib_event(PATH_MIG)			\
	ib_event(PATH_MIG_ERR)			\
	ib_event(DEVICE_FATAL)			\
	ib_event(PORT_ACTIVE)			\
	ib_event(PORT_ERR)			\
	ib_event(LID_CHANGE)			\
	ib_event(PKEY_CHANGE)			\
	ib_event(SM_CHANGE)			\
	ib_event(SRQ_ERR)			\
	ib_event(SRQ_LIMIT_REACHED)		\
	ib_event(QP_LAST_WQE_REACHED)		\
	ib_event(CLIENT_REREGISTER)		\
	ib_event(GID_CHANGE)			\
	ib_event_end(WQ_FATAL)

#undef ib_event
#undef ib_event_end

#define ib_event(x)		TRACE_DEFINE_ENUM(IB_EVENT_##x);
#define ib_event_end(x)		TRACE_DEFINE_ENUM(IB_EVENT_##x);

IB_EVENT_LIST

#undef ib_event
#undef ib_event_end

#define ib_event(x)		{ IB_EVENT_##x, #x },
#define ib_event_end(x)		{ IB_EVENT_##x, #x }

#define rdma_show_ib_event(x) \
		__print_symbolic(x, IB_EVENT_LIST)

/*
 * enum ib_wc_status type, from include/rdma/ib_verbs.h
 */
#define IB_WC_STATUS_LIST			\
	ib_wc_status(SUCCESS)			\
	ib_wc_status(LOC_LEN_ERR)		\
	ib_wc_status(LOC_QP_OP_ERR)		\
	ib_wc_status(LOC_EEC_OP_ERR)		\
	ib_wc_status(LOC_PROT_ERR)		\
	ib_wc_status(WR_FLUSH_ERR)		\
	ib_wc_status(MW_BIND_ERR)		\
	ib_wc_status(BAD_RESP_ERR)		\
	ib_wc_status(LOC_ACCESS_ERR)		\
	ib_wc_status(REM_INV_REQ_ERR)		\
	ib_wc_status(REM_ACCESS_ERR)		\
	ib_wc_status(REM_OP_ERR)		\
	ib_wc_status(RETRY_EXC_ERR)		\
	ib_wc_status(RNR_RETRY_EXC_ERR)		\
	ib_wc_status(LOC_RDD_VIOL_ERR)		\
	ib_wc_status(REM_INV_RD_REQ_ERR)	\
	ib_wc_status(REM_ABORT_ERR)		\
	ib_wc_status(INV_EECN_ERR)		\
	ib_wc_status(INV_EEC_STATE_ERR)		\
	ib_wc_status(FATAL_ERR)			\
	ib_wc_status(RESP_TIMEOUT_ERR)		\
	ib_wc_status_end(GENERAL_ERR)

#undef ib_wc_status
#undef ib_wc_status_end

#define ib_wc_status(x)		TRACE_DEFINE_ENUM(IB_WC_##x);
#define ib_wc_status_end(x)	TRACE_DEFINE_ENUM(IB_WC_##x);

IB_WC_STATUS_LIST

#undef ib_wc_status
#undef ib_wc_status_end

#define ib_wc_status(x)		{ IB_WC_##x, #x },
#define ib_wc_status_end(x)	{ IB_WC_##x, #x }

#define rdma_show_wc_status(x) \
		__print_symbolic(x, IB_WC_STATUS_LIST)

/*
 * enum ib_cm_event_type, from include/rdma/ib_cm.h
 */
#define IB_CM_EVENT_LIST			\
	ib_cm_event(REQ_ERROR)			\
	ib_cm_event(REQ_RECEIVED)		\
	ib_cm_event(REP_ERROR)			\

Annotation

Implementation Notes