FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
platform_common_override.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PLATFORM_DBL_SUPPORT   1
 
#define PLATFORM_ADDR_MASK_PER_CORE   0x01
 
#define MAX_COMBINED_DB_ENTRIES_PER_SCAN   128
 
#define PLATFORM_MAX_CORES   (PLATFORM_ADDR_MASK_PER_CORE + 1)
 
#define PLATFORM_ADDR_MASK_PER_CORE_PER_PARTITION   PLATFORM_ADDR_MASK_PER_CORE
 
#define PLATFORM_MAX_CORES_PER_PARTITION   PLATFORM_MAX_CORES
 
#define PLATFORM_CNAT_INSTS   1 /* currently its only single instance */
 
#define PLATFORM_MAX_NAT_ENTRIES   1666660
 
#define PLATFORM_MAX_USER_ENTRIES   20800
 
#define PLATFORM_CNAT_MAIN_PRELIM_HASH_SIZE   (5<<20)
 
#define PLATFORM_CNAT_USER_PRELIM_HASH_SIZE   4096
 
#define PLATFORM_CNAT_MAX_ADDR_POOL_SIZE   0x10000
 
#define PLATFORM_MAX_DB_ENTRY_PER_SCAN   400
 
#define PLATFORM_MAX_DB_ENTRY_SELECTED_PER_SCAN   100
 
#define PLATFORM_CNAT_TIMEOUT_IPPROT_MASK   0xFFFFFFFF0000FFFF
 
#define PLATFORM_CNAT_TIMEOUT_PORTPROT_MASK   0x00000000FFFFFFFF
 
#define PLATFORM_SET_CTX_RU_TX_FROM_NODE(ctx, value)   (vnet_buffer(ctx))->vcgn_uii.ru.tx.from_node = value;
 
#define PLATFORM_SET_CTX_RU_TX_DST_IPPORT_IDX(ctx, value)   (vnet_buffer(ctx))->vcgn_uii.ru.tx.dst_ip_port_idx = value;
 
#define PLATFORM_SET_CTX_RU_TX_PKT_TYPE(ctx, type)   (vnet_buffer(ctx))->vcgn_uii.ru.tx.packet_type = type;
 
#define PLATFORM_SET_RX_VRF(ctx, rx_vrf, hardcode, mask)   rx_vrf = hardcode;
 
#define PLATFORM_SET_TX_VRF(ctx, tx_vrf)
 
#define PLATFORM_CNAT_SET_RX_VRF(if_index, rx_vrf, proto)   rx_vrf = proto | ((if_index) & CNAT_VRF_MASK);
 
#define PLATFORM_CNAT_SET_TX_VRF(if_index, tx_vrf)   (if_index) = ((tx_vrf) & CNAT_VRF_MASK);
 
#define PLATFORM_NAT64_SET_RX_VRF(rx_vrf, proto, inst_id)   rx_vrf = proto | inst_id;
 
#define PLATFORM_PRINT_TESTING_PG()
 
#define PLATFORM_HANDLE_ICMP_TTL_EXPIRED   1
 
#define PLATFORM_NFV9_DISP_NODE_IDX   "cnat_rewrite_output"
 
#define PLATFORM_CNAT_DB_DUMP_POLICY_PRINT()
 
#define PLATFORM_PRINT_CTX_VALUES(ctx)
 
#define PLATFORM_ADD_VRF_MAP_HANDLE_PARTITION(uidb_index, partition_id)
 
#define PLATFORM_DEL_VRF_MAP_HANDLE_PARTITION(uidb_index, partition_id)
 
#define PLATFORM_ALLOC_NFV9_PKT_BUFFER(ctx, to_lc_cpu)
 
#define PLATFORM_CNAT_NFV9_SHIM_HDR_OFFSET   0
 
#define PLATFORM_CNAT_NFV9_L2_ENCAPS_OFFSET   16
 
#define PLATFORM_MAX_SHOW_BUFFER_SIZE   1700
 
#define PLATFORM_MAX_TRANSLATION_ENTRIES   (50)
 
#define PLATFORM_NAT64_MAX_TRANSLATION_ENTRIES   (30)
 
#define PLATFORM_MAX_UTIL_ENTRIES   (100)
 
#define PLATFORM_NAT64_MAX_SESSIONS   20000000
 
#define PLATFORM_NAT64_TIMEOUT_HASH_SIZE   24001 /* Ref: CSCtr36242 */
 
#define PLATFORM_CHECK_DSLITE_ENABLE_FLAG   1
 
#define PLATFORM_IPV4_FRAG_FRAG_HOLD_LIMIT   63
 
#define PLATFORM_MAX_IPV4_CTX_ENTRIES   80
 
#define PLATFORM_DIRN_IN_TO_OUT
 
#define PLATFORM_DIRN_OUT_TO_IN
 
#define PLATFORM_SET_SVI_PARAMS_FIELD(var, value)
 
#define PLATFORM_GET_NFV9_L3_HDR_OFFSET   ((u8 *)ctx + ctx->data + CNAT_NFV9_IP_HDR_OFFSET);
 
#define PLATFORM_GET_NFV9_L4_HDR_OFFSET   ((u8 *) ctx + ctx->data + CNAT_NFV9_UDP_HDR_OFFSET);
 
#define PLATFORM_MEMSET_CNAT_LOG_PKT_DATA
 

Enumerations

enum  {
  NODE_CGNCFG, NODE_HA, NODE_PD_CONFIG, NODE_LOGGING,
  NODE_TRACE_BACKUP, NODE_MAX
}
 

Variables

unsigned char my_octeon_id
 

Macro Definition Documentation

#define MAX_COMBINED_DB_ENTRIES_PER_SCAN   128

Definition at line 36 of file platform_common_override.h.

#define PLATFORM_ADD_VRF_MAP_HANDLE_PARTITION (   uidb_index,
  partition_id 
)

Definition at line 221 of file platform_common_override.h.

#define PLATFORM_ADDR_MASK_PER_CORE   0x01

Definition at line 33 of file platform_common_override.h.

#define PLATFORM_ADDR_MASK_PER_CORE_PER_PARTITION   PLATFORM_ADDR_MASK_PER_CORE

Definition at line 43 of file platform_common_override.h.

#define PLATFORM_ALLOC_NFV9_PKT_BUFFER (   ctx,
  to_lc_cpu 
)

Definition at line 227 of file platform_common_override.h.

#define PLATFORM_CHECK_DSLITE_ENABLE_FLAG   1

Definition at line 260 of file platform_common_override.h.

#define PLATFORM_CNAT_DB_DUMP_POLICY_PRINT ( )
Value:
printf("my instance:%d\n" \
"icmp timeout %d udp init timeout %d act timeout %d\n" \
"tcp init timeout %d act timeout %d mapping refresh %d\n" \
"port limit per user %d ftp alg %d lb debug %d\n" \
"icmp rate limit 0x%x config delete timer 0x%x\n" \
"global debug flag 0x%x\n" \
"icmp rate limit (pkts/per sec) %d\n" \
"dynamic port range start %d\n" \
"debug ivrf 0x%x flag 0x%x start_addr 0x%x end_addr 0x%x\n" \
"debug ovrf 0x%x flag 0x%x start_addr 0x%x end_addr 0x%x\n", \
u32 debug_o_addr_end
u8 mapping_refresh_both_direction
Definition: cnat_config.c:46
u32 debug_i_addr_start
u16 cnat_static_port_range
Definition: cnat_config.c:53
u32 debug_o_addr_start
u16 udp_init_session_timeout
Definition: cnat_config.c:28
u8 lb_debug_enable
Definition: cnat_config.c:65
u8 ftp_alg_enabled
Definition: cnat_config.c:59
u16 cnat_main_db_max_ports_per_user
Definition: cnat_config.c:48
u16 debug_i_vrf
u32 debug_i_addr_end
u32 debug_o_flag
u32 cnat_main_db_icmp_rate_limit
Definition: cnat_config.c:50
u16 icmp_session_timeout
Definition: cnat_config.c:30
u16 config_delete_timeout
Definition: cnat_config.c:76
u8 my_instance_number
Definition: cnat_ports.c:51
u16 debug_o_vrf
u16 tcp_initial_setup_timeout
Definition: cnat_config.c:26
u16 tcp_active_timeout
Definition: cnat_config.c:27
u32 global_debug_flag
u32 debug_i_flag
u16 udp_act_session_timeout
Definition: cnat_config.c:29
u16 per_user_icmp_msg_limit
Definition: cnat_config.c:74

Definition at line 179 of file platform_common_override.h.

#define PLATFORM_CNAT_INSTS   1 /* currently its only single instance */

Definition at line 51 of file platform_common_override.h.

#define PLATFORM_CNAT_MAIN_PRELIM_HASH_SIZE   (5<<20)

Definition at line 67 of file platform_common_override.h.

#define PLATFORM_CNAT_MAX_ADDR_POOL_SIZE   0x10000

Definition at line 76 of file platform_common_override.h.

#define PLATFORM_CNAT_NFV9_L2_ENCAPS_OFFSET   16

Definition at line 241 of file platform_common_override.h.

#define PLATFORM_CNAT_NFV9_SHIM_HDR_OFFSET   0

Definition at line 234 of file platform_common_override.h.

#define PLATFORM_CNAT_SET_RX_VRF (   if_index,
  rx_vrf,
  proto 
)    rx_vrf = proto | ((if_index) & CNAT_VRF_MASK);

Definition at line 125 of file platform_common_override.h.

#define PLATFORM_CNAT_SET_TX_VRF (   if_index,
  tx_vrf 
)    (if_index) = ((tx_vrf) & CNAT_VRF_MASK);

Definition at line 128 of file platform_common_override.h.

#define PLATFORM_CNAT_TIMEOUT_IPPROT_MASK   0xFFFFFFFF0000FFFF

Definition at line 85 of file platform_common_override.h.

#define PLATFORM_CNAT_TIMEOUT_PORTPROT_MASK   0x00000000FFFFFFFF

Definition at line 88 of file platform_common_override.h.

#define PLATFORM_CNAT_USER_PRELIM_HASH_SIZE   4096

Definition at line 73 of file platform_common_override.h.

#define PLATFORM_DBL_SUPPORT   1

Definition at line 27 of file platform_common_override.h.

#define PLATFORM_DEL_VRF_MAP_HANDLE_PARTITION (   uidb_index,
  partition_id 
)

Definition at line 224 of file platform_common_override.h.

#define PLATFORM_DIRN_IN_TO_OUT

Definition at line 274 of file platform_common_override.h.

#define PLATFORM_DIRN_OUT_TO_IN

Definition at line 275 of file platform_common_override.h.

#define PLATFORM_GET_NFV9_L3_HDR_OFFSET   ((u8 *)ctx + ctx->data + CNAT_NFV9_IP_HDR_OFFSET);

Definition at line 279 of file platform_common_override.h.

#define PLATFORM_GET_NFV9_L4_HDR_OFFSET   ((u8 *) ctx + ctx->data + CNAT_NFV9_UDP_HDR_OFFSET);

Definition at line 283 of file platform_common_override.h.

#define PLATFORM_HANDLE_ICMP_TTL_EXPIRED   1

Definition at line 169 of file platform_common_override.h.

#define PLATFORM_IPV4_FRAG_FRAG_HOLD_LIMIT   63

Definition at line 265 of file platform_common_override.h.

#define PLATFORM_MAX_CORES   (PLATFORM_ADDR_MASK_PER_CORE + 1)

Definition at line 39 of file platform_common_override.h.

#define PLATFORM_MAX_CORES_PER_PARTITION   PLATFORM_MAX_CORES

Definition at line 47 of file platform_common_override.h.

#define PLATFORM_MAX_DB_ENTRY_PER_SCAN   400

Definition at line 79 of file platform_common_override.h.

#define PLATFORM_MAX_DB_ENTRY_SELECTED_PER_SCAN   100

Definition at line 82 of file platform_common_override.h.

#define PLATFORM_MAX_IPV4_CTX_ENTRIES   80

Definition at line 268 of file platform_common_override.h.

#define PLATFORM_MAX_NAT_ENTRIES   1666660

Definition at line 55 of file platform_common_override.h.

#define PLATFORM_MAX_SHOW_BUFFER_SIZE   1700

Definition at line 248 of file platform_common_override.h.

#define PLATFORM_MAX_TRANSLATION_ENTRIES   (50)

Definition at line 249 of file platform_common_override.h.

#define PLATFORM_MAX_USER_ENTRIES   20800

Definition at line 58 of file platform_common_override.h.

#define PLATFORM_MAX_UTIL_ENTRIES   (100)

Definition at line 251 of file platform_common_override.h.

#define PLATFORM_MEMSET_CNAT_LOG_PKT_DATA

Definition at line 287 of file platform_common_override.h.

#define PLATFORM_NAT64_MAX_SESSIONS   20000000

Definition at line 256 of file platform_common_override.h.

#define PLATFORM_NAT64_MAX_TRANSLATION_ENTRIES   (30)

Definition at line 250 of file platform_common_override.h.

#define PLATFORM_NAT64_SET_RX_VRF (   rx_vrf,
  proto,
  inst_id 
)    rx_vrf = proto | inst_id;

Definition at line 142 of file platform_common_override.h.

#define PLATFORM_NAT64_TIMEOUT_HASH_SIZE   24001 /* Ref: CSCtr36242 */

Definition at line 257 of file platform_common_override.h.

#define PLATFORM_NFV9_DISP_NODE_IDX   "cnat_rewrite_output"

Definition at line 175 of file platform_common_override.h.

#define PLATFORM_PRINT_CTX_VALUES (   ctx)
Value:
printf("\nAFTER: %s cur_hdr %p, cur_len %d\n", \
type_str,\
ctx->current_header, \
ctx->current_length);

Definition at line 213 of file platform_common_override.h.

#define PLATFORM_PRINT_TESTING_PG ( )

Definition at line 155 of file platform_common_override.h.

#define PLATFORM_SET_CTX_RU_TX_DST_IPPORT_IDX (   ctx,
  value 
)    (vnet_buffer(ctx))->vcgn_uii.ru.tx.dst_ip_port_idx = value;

Definition at line 103 of file platform_common_override.h.

#define PLATFORM_SET_CTX_RU_TX_FROM_NODE (   ctx,
  value 
)    (vnet_buffer(ctx))->vcgn_uii.ru.tx.from_node = value;

Definition at line 101 of file platform_common_override.h.

#define PLATFORM_SET_CTX_RU_TX_PKT_TYPE (   ctx,
  type 
)    (vnet_buffer(ctx))->vcgn_uii.ru.tx.packet_type = type;

Definition at line 105 of file platform_common_override.h.

#define PLATFORM_SET_RX_VRF (   ctx,
  rx_vrf,
  hardcode,
  mask 
)    rx_vrf = hardcode;

Definition at line 117 of file platform_common_override.h.

#define PLATFORM_SET_SVI_PARAMS_FIELD (   var,
  value 
)

Definition at line 276 of file platform_common_override.h.

#define PLATFORM_SET_TX_VRF (   ctx,
  tx_vrf 
)

Definition at line 119 of file platform_common_override.h.

Enumeration Type Documentation

anonymous enum
Enumerator
NODE_CGNCFG 
NODE_HA 
NODE_PD_CONFIG 
NODE_LOGGING 
NODE_TRACE_BACKUP 
NODE_MAX 

Definition at line 295 of file platform_common_override.h.

Variable Documentation

unsigned char my_octeon_id