FD.io VPP  v16.06
Vector Packet Processing
spp_platform_trace_log.h File Reference
+ Include dependency graph for spp_platform_trace_log.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  spp_trace_log_hdr_t
 
struct  spp_trace_log_t
 
struct  spp_cnat_logger_tbl_t_
 
struct  spp_trace_log_info_t
 
struct  spp_global_counters_t
 
struct  spp_trace_log_global_info_t
 

Macros

#define DUMP_PKT_IDX   61
 
#define OCTEON_SENSOR_READ   62
 
#define SPP_TRACE_LOG_SHIM_HDR_OFFSET   0
 
#define SPP_TRACE_LOG_ENCAPS_OFFSET   16
 
#define SPP_LOG_TRACE_HEADER_LENGTH   (sizeof(spp_trace_log_hdr_t))
 
#define SPP_TRACE_LOG_IP_HDR_OFFSET
 
#define SPP_TRACE_LOG_UDP_HDR_OFFSET   (SPP_TRACE_LOG_IP_HDR_OFFSET + sizeof(ipv4_header))
 
#define SPP_TRACE_LOG_HDR_OFFSET   (SPP_TRACE_LOG_UDP_HDR_OFFSET + sizeof(udp_hdr_type_t))
 
#define SPP_TRACE_LOG_RECORD_LENGTH   4
 
#define SPP_TRACE_LOG_MAX_PKT_LENGTH   800
 
#define SPP_TRACE_LOG_INVALID_LOGGING_INDEX   0xffffffff
 

Typedefs

typedef struct spp_cnat_logger_tbl_t_ spp_cnat_logger_tbl_t
 

Enumerations

enum  spp_log_type_t { SPP_LOG_LTRACE, SPP_LOG_MAX }
 
enum  spp_error_codes_t {
  CNAT_ERROR_SUCCESS, CNAT_NO_CONFIG_ERROR, CNAT_NO_VRF_RUN_ERROR, CNAT_NO_POOL_FOR_ANY_ERROR,
  CNAT_NO_PORT_FOR_ANY_ERROR, CNAT_BAD_INUSE_ANY_ERROR, CNAT_NOT_FOUND_ANY_ERROR, CNAT_INV_PORT_FOR_DIRECT_ERROR,
  CNAT_BAD_INUSE_DIRECT_ERROR, CNAT_NOT_FOUND_DIRECT_ERROR, CNAT_OUT_OF_PORT_LIMIT_ERROR, CNAT_MAIN_DB_CREATE_ERROR,
  CNAT_LOOKUP_ERROR, CNAT_INDEX_MISMATCH_ERROR, CNAT_PACKET_DROP_ERROR, CNAT_INV_UNUSED_USR_INDEX,
  CNAT_INVALID_VRFMAP_INDEX, CNAT_USER_OUT_OF_PORTS, CNAT_EXT_PORT_THRESH_EXCEEDED, CNAT_EXT_PORT_THRESH_NORMAL,
  CNAT_NO_EXT_PORT_AVAILABLE, CNAT_SESSION_THRESH_EXCEEDED, CNAT_SESSION_THRESH_NORMAL, WQE_ALLOCATION_ERROR,
  ERROR_PKT_DROPPED, SYSMGR_PD_KEY_CREATION_ERROR, SYSMGR_PD_SHMEM_ID_ERROR, SYSMGR_PD_SHMEM_ATTACH_ERROR,
  OCTEON_CKHUM_SKIPPED, PK0_SEND_STATUS, CMD_BUF_ALLOC_ERR, SPP_CTX_ALLOC_FAILED,
  SPP_MAX_DISPATCH_REACHED, HA_SIGCHILD_RECV, SIGACTION_ERR, HA_INVALID_SEQ_OR_CONFIG_OR_TYPE,
  NODE_CREATION_ERROR, CNAT_CLI_INVALID_INPUT, CNAT_DUMMY_HANDLER_HIT, CNAT_CONFIG_ERROR,
  CNAT_NFV9_ERROR, CNAT_CMVX_TWSI_READ_WRITE_FAIL, CNAT_TEMP_SENSOR_TIMEOUT, CNAT_TEMP_SENSOR_DATA_MISMATCH,
  CNAT_TEMP_SENSOR_CONFIG_FAILED, HA_APP_NOT_RESPONDING, HA_DATA_PATH_TEST_FAILED, CNAT_WRONG_PORT_ALLOC_TYPE,
  CNAT_NEW_PORT_ALLOC_ERROR, CNAT_INVALID_INDEX_TO_FREE_PORT, CNAT_DELETE_DB_ENTRY_NO_PORTMAP, CNAT_MAIN_DB_LIMIT_ERROR,
  CNAT_USER_DB_LIMIT_ERROR, CNAT_FRAG_DB_ERROR, DROP_PKT_DUMP, CNAT_NAT64_SYSTEM_LIMIT_ERROR,
  CNAT_ERROR_MAX
}
 
enum  spp_config_error_sub_codes_t {
  TCP_MSS_INVALID_IVRF = 10, NFV9_LOG_INVALID_IP_OR_PORT = 20, NFV9_LOG_INVALID_PARAMS_OTHERS, NFV9_LOG_PATH_MTU_TOO_SMALL,
  NFV9_LOG_CANNOT_ADD_VRF_NOT_FOUND, VRF_MAP_ADDR_POOL_START_ADDR_GT_END_ADDR = 30, VRF_MAP_ADDR_POOL_ADDR_POOL_TOO_LARGE, VRF_MAP_ADDR_POOL_INVALID_IN_OR_OUT_VRF,
  VRF_MAP_ADDR_POOL_TOO_LARGE_FOR_CORE, VRF_MAP_DEL_POOL_START_ADDR_GT_END_ADDR, VRF_MAP_DEL_POOL_ADDR_POOL_NOT_FOUND, VRF_MAP_DEL_POOL_VRF_MAP_EMPTY,
  ADD_SVI_ADDR_INVALID_VRF = 40, ADD_SVI_INDEX_INVALID_VRF, MAPPED_STAT_PORT_INVALID_OUTPUT_PARAMS = 50, MAPPED_STAT_PORT_UDP_PORT_POLARITY_MISMATCH,
  MAPPED_STAT_PORT_IN_VRF_MAP_EMPTY, MAPPED_STAT_PORT_VRF_MAP_NOT_IN_S_RUN, MAPPED_STAT_PORT_INVALID_OUT_VRF_ID, MAPPED_STAT_PORT_FAILED_TO_ADD_STAT_PORT,
  STAT_PORT_INVALID_IN_PARAMS = 60, STAT_PORT_FAILED_TO_ADD_STAT_PORT, STAT_PORT_CONFIG_IN_USE, DEL_STAT_PORT_IN_VRF_MAP_EMPTY = 70,
  DEL_STAT_PORT_INVALID_IN_PARAMS, DEL_STAT_PORT_CANNOT_DELETE_NO_ENTRY, DEL_STAT_PORT_CANNOT_DELETE_NOT_STATIC_PORT, XLAT_SVI_CFG_INVALID_INDEX = 80,
  XLAT_WRONG_V6_PREFIX_MASK, XLAT_INVALID_XLAT_ID_ERROR, V6RD_INVALID_6RD_ID_ERROR = 90, MAPE_INVALID_MAPE_ID_ERROR = 100
}
 
enum  spp_dummy_handler_sub_cdes_t {
  CONFIG_DUMMY, CONFIG_DUMMY_MAX, SHOW_DUMMY, SHOW_DUMMY_MAX,
  DEBUG_DUMMY, DEBUG_DUMMY_MAX
}
 
enum  spp_cmvx_error_sub_codes_t { CMVX_READ, CMVX_WRITE }
 
enum  spp_frag_db_error_sub_codes_t { FRAG_DB_INVALID_BUCKET, FRAG_DB_NO_ENTRY }
 
enum  spp_cli_error_sub_codes_t { CLI_INVALID_PAYLOAD_SIZE, CLI_INVALID_MSG_ID }
 
enum  spp_nfv9_error_sub_codes_t { NFV9_DOWNSTREAM_CONGESTION, NFV9_FAILED_TO_CREATE_CONTEXT }
 
enum  { TEMPERATURE_SENSOR_TEST_MODE, TEMPERATURE_SENSOR_QUIET_MODE }
 

Functions

void spp_trace_logger (u16 error_code, u16 num_args, u32 *arg)
 
void spp_trace_log_init (void)
 
void init_trace_log_buf_pool (void)
 
void spp_printf (u16 error_code, u16 num_args, u32 *arg)
 
u32 spp_trace_log_get_unix_time_in_seconds (void)
 
void read_octeon_sensors (u8 mode)
 
void Init_temperature_sensors ()
 

Variables

spp_cnat_logger_tbl_t spp_cnat_logger_table []
 
spp_timer_t sensor_timer
 
spp_trace_log_info_t spp_default_trace_log_info
 
spp_trace_log_info_tspp_trace_log_info_pool
 
spp_trace_log_global_info_t spp_trace_log_global_info
 
int temperature_read_blocked
 

Macro Definition Documentation

#define DUMP_PKT_IDX   61

Definition at line 49 of file spp_platform_trace_log.h.

#define OCTEON_SENSOR_READ   62

Definition at line 50 of file spp_platform_trace_log.h.

#define SPP_LOG_TRACE_HEADER_LENGTH   (sizeof(spp_trace_log_hdr_t))

Definition at line 207 of file spp_platform_trace_log.h.

#define SPP_TRACE_LOG_ENCAPS_OFFSET   16

Definition at line 204 of file spp_platform_trace_log.h.

#define SPP_TRACE_LOG_HDR_OFFSET   (SPP_TRACE_LOG_UDP_HDR_OFFSET + sizeof(udp_hdr_type_t))

Definition at line 219 of file spp_platform_trace_log.h.

#define SPP_TRACE_LOG_INVALID_LOGGING_INDEX   0xffffffff

Definition at line 230 of file spp_platform_trace_log.h.

#define SPP_TRACE_LOG_IP_HDR_OFFSET
Value:

Definition at line 211 of file spp_platform_trace_log.h.

#define SPP_TRACE_LOG_MAX_PKT_LENGTH   800

Definition at line 227 of file spp_platform_trace_log.h.

#define SPP_TRACE_LOG_RECORD_LENGTH   4

Definition at line 222 of file spp_platform_trace_log.h.

#define SPP_TRACE_LOG_SHIM_HDR_OFFSET   0

Definition at line 203 of file spp_platform_trace_log.h.

#define SPP_TRACE_LOG_UDP_HDR_OFFSET   (SPP_TRACE_LOG_IP_HDR_OFFSET + sizeof(ipv4_header))

Definition at line 216 of file spp_platform_trace_log.h.

Typedef Documentation

Enumeration Type Documentation

anonymous enum
Enumerator
TEMPERATURE_SENSOR_TEST_MODE 
TEMPERATURE_SENSOR_QUIET_MODE 

Definition at line 349 of file spp_platform_trace_log.h.

Enumerator
CLI_INVALID_PAYLOAD_SIZE 
CLI_INVALID_MSG_ID 

Definition at line 176 of file spp_platform_trace_log.h.

Enumerator
CMVX_READ 
CMVX_WRITE 

Definition at line 166 of file spp_platform_trace_log.h.

Enumerator
TCP_MSS_INVALID_IVRF 
NFV9_LOG_INVALID_IP_OR_PORT 
NFV9_LOG_INVALID_PARAMS_OTHERS 
NFV9_LOG_PATH_MTU_TOO_SMALL 
NFV9_LOG_CANNOT_ADD_VRF_NOT_FOUND 
VRF_MAP_ADDR_POOL_START_ADDR_GT_END_ADDR 
VRF_MAP_ADDR_POOL_ADDR_POOL_TOO_LARGE 
VRF_MAP_ADDR_POOL_INVALID_IN_OR_OUT_VRF 
VRF_MAP_ADDR_POOL_TOO_LARGE_FOR_CORE 
VRF_MAP_DEL_POOL_START_ADDR_GT_END_ADDR 
VRF_MAP_DEL_POOL_ADDR_POOL_NOT_FOUND 
VRF_MAP_DEL_POOL_VRF_MAP_EMPTY 
ADD_SVI_ADDR_INVALID_VRF 
ADD_SVI_INDEX_INVALID_VRF 
MAPPED_STAT_PORT_INVALID_OUTPUT_PARAMS 
MAPPED_STAT_PORT_UDP_PORT_POLARITY_MISMATCH 
MAPPED_STAT_PORT_IN_VRF_MAP_EMPTY 
MAPPED_STAT_PORT_VRF_MAP_NOT_IN_S_RUN 
MAPPED_STAT_PORT_INVALID_OUT_VRF_ID 
MAPPED_STAT_PORT_FAILED_TO_ADD_STAT_PORT 
STAT_PORT_INVALID_IN_PARAMS 
STAT_PORT_FAILED_TO_ADD_STAT_PORT 
STAT_PORT_CONFIG_IN_USE 
DEL_STAT_PORT_IN_VRF_MAP_EMPTY 
DEL_STAT_PORT_INVALID_IN_PARAMS 
DEL_STAT_PORT_CANNOT_DELETE_NO_ENTRY 
DEL_STAT_PORT_CANNOT_DELETE_NOT_STATIC_PORT 
XLAT_SVI_CFG_INVALID_INDEX 
XLAT_WRONG_V6_PREFIX_MASK 
XLAT_INVALID_XLAT_ID_ERROR 
V6RD_INVALID_6RD_ID_ERROR 
MAPE_INVALID_MAPE_ID_ERROR 

Definition at line 113 of file spp_platform_trace_log.h.

Enumerator
CONFIG_DUMMY 
CONFIG_DUMMY_MAX 
SHOW_DUMMY 
SHOW_DUMMY_MAX 
DEBUG_DUMMY 
DEBUG_DUMMY_MAX 

Definition at line 157 of file spp_platform_trace_log.h.

Enumerator
CNAT_ERROR_SUCCESS 
CNAT_NO_CONFIG_ERROR 
CNAT_NO_VRF_RUN_ERROR 
CNAT_NO_POOL_FOR_ANY_ERROR 
CNAT_NO_PORT_FOR_ANY_ERROR 
CNAT_BAD_INUSE_ANY_ERROR 
CNAT_NOT_FOUND_ANY_ERROR 
CNAT_INV_PORT_FOR_DIRECT_ERROR 
CNAT_BAD_INUSE_DIRECT_ERROR 
CNAT_NOT_FOUND_DIRECT_ERROR 
CNAT_OUT_OF_PORT_LIMIT_ERROR 
CNAT_MAIN_DB_CREATE_ERROR 
CNAT_LOOKUP_ERROR 
CNAT_INDEX_MISMATCH_ERROR 
CNAT_PACKET_DROP_ERROR 
CNAT_INV_UNUSED_USR_INDEX 
CNAT_INVALID_VRFMAP_INDEX 
CNAT_USER_OUT_OF_PORTS 
CNAT_EXT_PORT_THRESH_EXCEEDED 
CNAT_EXT_PORT_THRESH_NORMAL 
CNAT_NO_EXT_PORT_AVAILABLE 
CNAT_SESSION_THRESH_EXCEEDED 
CNAT_SESSION_THRESH_NORMAL 
WQE_ALLOCATION_ERROR 
ERROR_PKT_DROPPED 
SYSMGR_PD_KEY_CREATION_ERROR 
SYSMGR_PD_SHMEM_ID_ERROR 
SYSMGR_PD_SHMEM_ATTACH_ERROR 
OCTEON_CKHUM_SKIPPED 
PK0_SEND_STATUS 
CMD_BUF_ALLOC_ERR 
SPP_CTX_ALLOC_FAILED 
SPP_MAX_DISPATCH_REACHED 
HA_SIGCHILD_RECV 
SIGACTION_ERR 
HA_INVALID_SEQ_OR_CONFIG_OR_TYPE 
NODE_CREATION_ERROR 
CNAT_CLI_INVALID_INPUT 
CNAT_DUMMY_HANDLER_HIT 
CNAT_CONFIG_ERROR 
CNAT_NFV9_ERROR 
CNAT_CMVX_TWSI_READ_WRITE_FAIL 
CNAT_TEMP_SENSOR_TIMEOUT 
CNAT_TEMP_SENSOR_DATA_MISMATCH 
CNAT_TEMP_SENSOR_CONFIG_FAILED 
HA_APP_NOT_RESPONDING 
HA_DATA_PATH_TEST_FAILED 
CNAT_WRONG_PORT_ALLOC_TYPE 
CNAT_NEW_PORT_ALLOC_ERROR 
CNAT_INVALID_INDEX_TO_FREE_PORT 
CNAT_DELETE_DB_ENTRY_NO_PORTMAP 
CNAT_MAIN_DB_LIMIT_ERROR 
CNAT_USER_DB_LIMIT_ERROR 
CNAT_FRAG_DB_ERROR 
DROP_PKT_DUMP 
CNAT_NAT64_SYSTEM_LIMIT_ERROR 
CNAT_ERROR_MAX 

Definition at line 52 of file spp_platform_trace_log.h.

Enumerator
FRAG_DB_INVALID_BUCKET 
FRAG_DB_NO_ENTRY 

Definition at line 171 of file spp_platform_trace_log.h.

Enumerator
SPP_LOG_LTRACE 
SPP_LOG_MAX 

Definition at line 34 of file spp_platform_trace_log.h.

Enumerator
NFV9_DOWNSTREAM_CONGESTION 
NFV9_FAILED_TO_CREATE_CONTEXT 

Definition at line 181 of file spp_platform_trace_log.h.

Function Documentation

void Init_temperature_sensors ( )
void init_trace_log_buf_pool ( void  )

Definition at line 970 of file spp_platform_trace_log.c.

void read_octeon_sensors ( u8  mode)
void spp_printf ( u16  error_code,
u16  num_args,
u32 arg 
)

Definition at line 975 of file spp_platform_trace_log.c.

+ Here is the caller graph for this function:

u32 spp_trace_log_get_unix_time_in_seconds ( void  )
inline

Definition at line 980 of file spp_platform_trace_log.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void spp_trace_log_init ( void  )

Definition at line 965 of file spp_platform_trace_log.c.

void spp_trace_logger ( u16  error_code,
u16  num_args,
u32 arg 
)

Definition at line 960 of file spp_platform_trace_log.c.

Variable Documentation

spp_timer_t sensor_timer

Definition at line 372 of file spp_platform_trace_log.c.

spp_cnat_logger_tbl_t spp_cnat_logger_table[]

Definition at line 37 of file spp_platform_trace_log.c.

spp_trace_log_info_t spp_default_trace_log_info

Definition at line 379 of file spp_platform_trace_log.c.

spp_trace_log_global_info_t spp_trace_log_global_info

Definition at line 373 of file spp_platform_trace_log.c.

spp_trace_log_info_t* spp_trace_log_info_pool

Definition at line 380 of file spp_platform_trace_log.c.

int temperature_read_blocked

Definition at line 35 of file spp_platform_trace_log.c.