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

Go to the source code of this file.

Macros

#define PLATFORM_DEBUG_PRINT(...)   /* printf(__VA_ARGS__) */
 
#define PLATFORM_FILL_DST_ADDR_PORT_TABLE
 
#define PLATFORM_SET_CTX_RU_TX_FROM_NODE(ctx, value)
 
#define PLATFORM_SET_CTX_RU_TX_DST_IPPORT_IDX(ctx, value)
 
#define PLATFORM_SET_CTX_RU_TX_PKT_TYPE(ctx, type)
 
#define PLATFORM_SET_RX_VRF(ctx, rx_vrf, hardcode, mask)
 
#define PLATFORM_SET_TX_VRF(ctx, tx_vrf)
 
#define PLATFORM_CNAT_SET_RX_VRF(ctx, rx_vrf, proto)
 
#define PLATFORM_CNAT_SET_TX_VRF(ctx, tx_vrf)
 
#define PLATFORM_PRINT_TESTING_PG()
 
#define PLATFORM_INIT_TEMP_SENSORS()
 
#define PLATFORM_READ_CPU_SENSORS(value)
 
#define PLATFORM_SET_TEMP_READ_BLOCK(var, val)
 
#define PLATFORM_NFV9_DISP_NODE_IDX
 
#define PLATFORM_SYSLOG_DISP_NODE_IDX   PLATFORM_NFV9_DISP_NODE_IDX
 
#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_SET_DSLITE_ENABLE_FLAG(uidb_index, dslite_id)
 
#define PLATFORM_CHECK_DSLITE_ENABLE_FLAG
 
#define PLATFORM_CNAT_INSTS   1
 
#define PLATFORM_HANDLE_TTL_DECREMENT   0
 
#define PLATFORM_6RD_COPY_TTL_IPV6_TO_IPV4   0
 
#define PLATFORM_6RD_ALLOW_TTL_1   0
 
#define PLATFORM_HANDLE_ICMP_TTL_EXPIRED   0
 
#define PLATFORM_IPV4_FRAG_FRAG_HOLD_LIMIT   1
 
#define PLATFORM_MAX_IPV4_CTX_ENTRIES   1
 
#define PLATFORM_MAPE_FRAG   0
 
#define PLATFORM_ADDR_MASK_PER_CORE   0
 
#define PLATFORM_ADDR_MASK_PER_CORE_PER_PARTITION   0
 
#define PLATFORM_MAX_CORES   1
 
#define PLATFORM_MAX_CORES_PER_PARTITION   1
 
#define PLATFORM_MAX_NAT_ENTRIES   1
 
#define PLATFORM_MAX_USER_ENTRIES   1
 
#define PLATFORM_CNAT_MAX_ADDR_POOL_SIZE   0x1
 
#define PLATFORM_DBL_SUPPORT   0 /* Default no DBL support, no NAT44 session table */
 
#define PLATFORM_MAX_DB_ENTRY_PER_SCAN   1
 
#define PLATFORM_MAX_DB_ENTRY_SELECTED_PER_SCAN   1
 
#define MAX_COMBINED_DB_ENTRIES_PER_SCAN   0
 
#define PLATFORM_CNAT_TIMEOUT_IPPROT_MASK   0
 
#define PLATFORM_CNAT_TIMEOUT_PORTPROT_MASK   0
 
#define PLATFORM_MAX_SHOW_BUFFER_SIZE   1700
 
#define PLATFORM_MAX_TRANSLATION_ENTRIES   (50)
 
#define PLATFORM_MAX_UTIL_ENTRIES   (100)
 
#define PLATFORM_MAX_NAT44_UTIL_ENTRIES   ((64)/PLATFORM_MAX_CORES)
 
#define PLATFORM_CNAT_NFV9_SHIM_HDR_OFFSET   0
 
#define PLATFORM_CNAT_NFV9_L2_ENCAPS_OFFSET   0
 
#define PLATFORM_NAT64_SET_RX_VRF(rx_vrf, proto, inst_id)   rx_vrf = proto | (inst_id & CNAT_VRF_MASK);
 
#define PLATFORM_NAT64_MAX_TRANSLATION_ENTRIES   (30)
 
#define PLATFORM_DS_LITE_MAX_TRANSLATION_ENTRIES   (30)
 
#define PLATFORM_SET_NAT64_ENABLE_FLAG(uidb_index, nat64_id)
 
#define PLATFORM_CHECK_NAT64_ENABLE_FLAG   1
 
#define PLATFORM_SET_MAPE_ENABLE_FLAG(uidb_index, mape_id)
 
#define PLATFORM_CHECK_MAPE_ENABLE_FLAG   1
 
#define PLATFORM_NAT64_MAX_SESSIONS   10
 
#define PLATFORM_NAT64_TIMEOUT_HASH_SIZE   10
 
#define PLATFORM_MAP_ADDR_PER_CORE   1024
 
#define ENABLE   1
 
#define DISABLE   0
 
#define PLATFORM_INLINE_LEARN_FUNC(a, b, c)
 
#define PLATFORM_XLAT_SW_CHECKSUM_CALC   0
 

Macro Definition Documentation

#define DISABLE   0

Definition at line 122 of file platform_common.h.

#define ENABLE   1

Definition at line 121 of file platform_common.h.

#define MAX_COMBINED_DB_ENTRIES_PER_SCAN   0

Definition at line 85 of file platform_common.h.

#define PLATFORM_6RD_ALLOW_TTL_1   0

Definition at line 66 of file platform_common.h.

#define PLATFORM_6RD_COPY_TTL_IPV6_TO_IPV4   0

Definition at line 63 of file platform_common.h.

#define PLATFORM_ADD_VRF_MAP_HANDLE_PARTITION (   uidb_index,
  partition_id 
)

Definition at line 53 of file platform_common.h.

#define PLATFORM_ADDR_MASK_PER_CORE   0

Definition at line 74 of file platform_common.h.

#define PLATFORM_ADDR_MASK_PER_CORE_PER_PARTITION   0

Definition at line 75 of file platform_common.h.

#define PLATFORM_ALLOC_NFV9_PKT_BUFFER (   ctx,
  to_lc_cpu 
)

Definition at line 55 of file platform_common.h.

#define PLATFORM_CHECK_DSLITE_ENABLE_FLAG

Definition at line 57 of file platform_common.h.

#define PLATFORM_CHECK_MAPE_ENABLE_FLAG   1

Definition at line 113 of file platform_common.h.

#define PLATFORM_CHECK_NAT64_ENABLE_FLAG   1

Definition at line 111 of file platform_common.h.

#define PLATFORM_CNAT_DB_DUMP_POLICY_PRINT ( )

Definition at line 51 of file platform_common.h.

#define PLATFORM_CNAT_INSTS   1

Definition at line 59 of file platform_common.h.

#define PLATFORM_CNAT_MAX_ADDR_POOL_SIZE   0x1

Definition at line 80 of file platform_common.h.

#define PLATFORM_CNAT_NFV9_L2_ENCAPS_OFFSET   0

Definition at line 96 of file platform_common.h.

#define PLATFORM_CNAT_NFV9_SHIM_HDR_OFFSET   0

Definition at line 95 of file platform_common.h.

#define PLATFORM_CNAT_SET_RX_VRF (   ctx,
  rx_vrf,
  proto 
)

Definition at line 35 of file platform_common.h.

#define PLATFORM_CNAT_SET_TX_VRF (   ctx,
  tx_vrf 
)

Definition at line 36 of file platform_common.h.

#define PLATFORM_CNAT_TIMEOUT_IPPROT_MASK   0

Definition at line 87 of file platform_common.h.

#define PLATFORM_CNAT_TIMEOUT_PORTPROT_MASK   0

Definition at line 88 of file platform_common.h.

#define PLATFORM_DBL_SUPPORT   0 /* Default no DBL support, no NAT44 session table */

Definition at line 81 of file platform_common.h.

#define PLATFORM_DEBUG_PRINT (   ...)    /* printf(__VA_ARGS__) */

Definition at line 25 of file platform_common.h.

#define PLATFORM_DEL_VRF_MAP_HANDLE_PARTITION (   uidb_index,
  partition_id 
)

Definition at line 54 of file platform_common.h.

#define PLATFORM_DS_LITE_MAX_TRANSLATION_ENTRIES   (30)

Definition at line 104 of file platform_common.h.

#define PLATFORM_FILL_DST_ADDR_PORT_TABLE

Definition at line 26 of file platform_common.h.

#define PLATFORM_HANDLE_ICMP_TTL_EXPIRED   0

Definition at line 68 of file platform_common.h.

#define PLATFORM_HANDLE_TTL_DECREMENT   0

Definition at line 60 of file platform_common.h.

#define PLATFORM_INIT_TEMP_SENSORS ( )

Definition at line 39 of file platform_common.h.

#define PLATFORM_INLINE_LEARN_FUNC (   a,
  b,
  c 
)

Definition at line 125 of file platform_common.h.

#define PLATFORM_IPV4_FRAG_FRAG_HOLD_LIMIT   1

Definition at line 70 of file platform_common.h.

#define PLATFORM_MAP_ADDR_PER_CORE   1024

Definition at line 119 of file platform_common.h.

#define PLATFORM_MAPE_FRAG   0

Definition at line 72 of file platform_common.h.

#define PLATFORM_MAX_CORES   1

Definition at line 76 of file platform_common.h.

#define PLATFORM_MAX_CORES_PER_PARTITION   1

Definition at line 77 of file platform_common.h.

#define PLATFORM_MAX_DB_ENTRY_PER_SCAN   1

Definition at line 83 of file platform_common.h.

#define PLATFORM_MAX_DB_ENTRY_SELECTED_PER_SCAN   1

Definition at line 84 of file platform_common.h.

#define PLATFORM_MAX_IPV4_CTX_ENTRIES   1

Definition at line 71 of file platform_common.h.

#define PLATFORM_MAX_NAT44_UTIL_ENTRIES   ((64)/PLATFORM_MAX_CORES)

Definition at line 93 of file platform_common.h.

#define PLATFORM_MAX_NAT_ENTRIES   1

Definition at line 78 of file platform_common.h.

#define PLATFORM_MAX_SHOW_BUFFER_SIZE   1700

Definition at line 90 of file platform_common.h.

#define PLATFORM_MAX_TRANSLATION_ENTRIES   (50)

Definition at line 91 of file platform_common.h.

#define PLATFORM_MAX_USER_ENTRIES   1

Definition at line 79 of file platform_common.h.

#define PLATFORM_MAX_UTIL_ENTRIES   (100)

Definition at line 92 of file platform_common.h.

#define PLATFORM_NAT64_MAX_SESSIONS   10

Definition at line 117 of file platform_common.h.

#define PLATFORM_NAT64_MAX_TRANSLATION_ENTRIES   (30)

Definition at line 103 of file platform_common.h.

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

Definition at line 100 of file platform_common.h.

#define PLATFORM_NAT64_TIMEOUT_HASH_SIZE   10

Definition at line 118 of file platform_common.h.

#define PLATFORM_NFV9_DISP_NODE_IDX

Definition at line 42 of file platform_common.h.

#define PLATFORM_PRINT_CTX_VALUES (   ctx)

Definition at line 52 of file platform_common.h.

#define PLATFORM_PRINT_TESTING_PG ( )

Definition at line 38 of file platform_common.h.

#define PLATFORM_READ_CPU_SENSORS (   value)

Definition at line 40 of file platform_common.h.

#define PLATFORM_SET_CTX_RU_TX_DST_IPPORT_IDX (   ctx,
  value 
)

Definition at line 28 of file platform_common.h.

#define PLATFORM_SET_CTX_RU_TX_FROM_NODE (   ctx,
  value 
)

Definition at line 27 of file platform_common.h.

#define PLATFORM_SET_CTX_RU_TX_PKT_TYPE (   ctx,
  type 
)

Definition at line 29 of file platform_common.h.

#define PLATFORM_SET_DSLITE_ENABLE_FLAG (   uidb_index,
  dslite_id 
)

Definition at line 56 of file platform_common.h.

#define PLATFORM_SET_MAPE_ENABLE_FLAG (   uidb_index,
  mape_id 
)

Definition at line 112 of file platform_common.h.

#define PLATFORM_SET_NAT64_ENABLE_FLAG (   uidb_index,
  nat64_id 
)
Value:
{ \
nat64_set_enable_flag(nat64_id, ENABLE); \
}
#define ENABLE

Definition at line 106 of file platform_common.h.

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

Definition at line 30 of file platform_common.h.

#define PLATFORM_SET_TEMP_READ_BLOCK (   var,
  val 
)

Definition at line 41 of file platform_common.h.

#define PLATFORM_SET_TX_VRF (   ctx,
  tx_vrf 
)

Definition at line 31 of file platform_common.h.

#define PLATFORM_SYSLOG_DISP_NODE_IDX   PLATFORM_NFV9_DISP_NODE_IDX

Definition at line 49 of file platform_common.h.

#define PLATFORM_XLAT_SW_CHECKSUM_CALC   0

Definition at line 129 of file platform_common.h.