DPDK
19.11.3
|
#include <rte_per_lcore.h>
Go to the source code of this file.
Macros | |
#define | rte_errno RTE_PER_LCORE(_rte_errno) |
#define | __ELASTERROR 1000 |
Enumerations | |
enum | { , RTE_QDMA_MODE_HW, RTE_QDMA_MODE_VIRTUAL , RTE_MIN_ERRNO = __ELASTERROR, E_RTE_SECONDARY, E_RTE_NO_CONFIG, RTE_MAX_ERRNO , CFG_FLAG_GLOBAL_SECTION = 1, CFG_FLAG_EMPTY_VALUES = 2, IP_LAST_FRAG_IDX, IP_FIRST_FRAG_IDX, IP_MIN_FRAG_NUM, IP_MAX_FRAG_NUM = RTE_LIBRTE_IP_FRAG_MAX_FRAG , RTE_RIB_GET_NXT_ALL, RTE_RIB_GET_NXT_COVER, RTE_RIB6_GET_NXT_ALL, RTE_RIB6_GET_NXT_COVER } |
Functions | |
RTE_DECLARE_PER_LCORE (int, _rte_errno) | |
const char * | rte_strerror (int errnum) |
API for error cause tracking
Definition in file rte_errno.h.
#define rte_errno RTE_PER_LCORE(_rte_errno) |
Error number value, stored per-thread, which can be queried after calls to certain functions to determine why those functions failed.
Uses standard values from errno.h wherever possible, with a small number of additional possible values for RTE-specific conditions.
Definition at line 29 of file rte_errno.h.
#define __ELASTERROR 1000 |
Check if we have a defined value for the max system-defined errno values. if no max defined, start from 1000 to prevent overlap with standard values
Definition at line 49 of file rte_errno.h.
anonymous enum |
Error types
Definition at line 53 of file rte_errno.h.
RTE_DECLARE_PER_LCORE | ( | int | , |
_rte_errno | |||
) |
Per core error number.
const char* rte_strerror | ( | int | errnum | ) |
Function which returns a printable string describing a particular error code. For non-RTE-specific error codes, this function returns the value from the libc strerror function.
errnum | The error number to be looked up - generally the value of rte_errno |