MCUXpresso SDK API Reference Manual  Rev 2.16.000
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Hardware Table Access Functions

Overview

Group for API/Data structure of Tables. It supports NTMP 1.0 and NTMP 2.0 but it is transparent to the invoker.

Data Structures

union  netc_cmd_bd_t
 The Switch/SI command BD data structure. More...
 
struct  netc_cmd_bdr_config_t
 Configuration for the Switch/SI command BD Ring Configuration. More...
 
struct  netc_cmd_bdr_t
 The Switch/SI command BD ring handle data structure. More...
 
struct  netc_tb_common_header_t
 Table request data buffer common header. More...
 
struct  netc_tb_ipf_keye_t
 Ingress Port Filter key element. More...
 
struct  netc_tb_ipf_cfge_t
 Ingress port filter config element. More...
 
struct  netc_tb_ipf_stse_t
 Ingress port filter statistic element. More...
 
struct  netc_tb_ipf_req_data_t
 Ingress port filter table entry config. More...
 
struct  netc_tb_ipf_rsp_data_t
 Ingress port filter table response data. More...
 
struct  netc_tb_ipf_data_t
 Ingress Port filter table data buffer. More...
 
struct  netc_tb_ipf_config_t
 Ingress Port filter entry config. More...
 
struct  netc_tb_isi_keye_t
 Stream identification table key element. More...
 
struct  netc_tb_isi_cfge_t
 Stream identification table config element. More...
 
struct  netc_tb_isi_req_data_t
 Stream identification table request data buffer. More...
 
struct  netc_tb_isi_rsp_data_t
 Stream identification table request response data buffer. More...
 
struct  netc_tb_isi_data_t
 Stream identification table data buffer. More...
 
struct  netc_tb_isi_config_t
 Stream identification table entry config. More...
 
struct  netc_tb_is_cfge_t
 Ingress Stream table config element. More...
 
struct  netc_tb_is_req_data_t
 Ingress Stream table request data buffer. More...
 
struct  netc_tb_is_rsp_data_t
 Ingress Stream table request response data buffer. More...
 
struct  netc_tb_is_data_t
 Ingress Stream table data buffer. More...
 
struct  netc_tb_is_config_t
 Ingress Stream table entry config. More...
 
struct  netc_tb_isf_keye_t
 Ingress Stream Filter table key element. More...
 
struct  netc_tb_isf_cfge_t
 Ingress Stream Filter table config element. More...
 
struct  netc_tb_isf_req_data_t
 Ingress Stream Filter table request data buffer. More...
 
struct  netc_tb_isf_rsp_data_t
 Ingress Stream Filter table request response data buffer. More...
 
struct  netc_tb_isf_data_t
 Ingress Stream Filter table data buffer. More...
 
struct  netc_tb_isf_config_t
 Ingress Stream Filter table entry config. More...
 
struct  netc_tb_rp_cfge_t
 Rate Policer table config element. More...
 
struct  netc_tb_rp_fee_t
 Rate Policer table Function Enable element. More...
 
struct  netc_tb_rp_pse_t
 Rate Policer table Policer State element. More...
 
struct  netc_tb_rp_stse_t
 Rate Policer table statistic element. More...
 
struct  netc_tb_rp_req_data_t
 Rate Policer table request data buffer. More...
 
struct  netc_tb_rp_rsp_data_t
 Rate Policer table request response data buffer. More...
 
struct  netc_tb_rp_data_t
 Rate Policer table data buffer. More...
 
struct  netc_tb_rp_config_t
 Rate Policer table entry config. More...
 
struct  netc_tb_isc_stse_t
 Ingress Stream Count table statistic element. More...
 
struct  netc_tb_isc_req_data_t
 Ingress Stream Count table request data buffer. More...
 
struct  netc_tb_isc_rsp_data_t
 Ingress Stream Count table request response data buffer. More...
 
struct  netc_tb_isc_data_t
 Ingress Stream Count table data buffer. More...
 
struct  netc_tb_sgi_cfge_t
 Stream Gate Instance table config element. More...
 
struct  netc_tb_sgi_acfge_t
 Stream Gate Instance table Admin Configuration element. More...
 
struct  netc_tb_sgi_icfge_t
 Stream Gate Instance table Initial Configuration element. More...
 
struct  netc_tb_sgi_sgise_t
 Stream Gate Instance table stream gate instance state element. More...
 
struct  netc_tb_sgi_req_data_t
 Stream Gate Instance table request data buffer. More...
 
struct  netc_tb_sgi_rsp_data_t
 Stream Gate Instance table request response data buffer. More...
 
struct  netc_tb_sgi_data_t
 Stream Gate Instance table data buffer. More...
 
struct  netc_tb_sgi_config_t
 Stream Gate Instance table entry config. More...
 
struct  netc_sgcl_gate_entry_t
 Defines the Stream Gate Control entry structure. More...
 
struct  netc_tb_sgcl_cfge_t
 Stream Gate Control List table config element. More...
 
struct  netc_tb_sgcl_sgclse_t
 Stream Gate Control List table Stream Gate Control List State element. More...
 
struct  netc_tb_sgcl_req_data_t
 Stream Gate Control List table request data buffer. More...
 
struct  netc_tb_sgcl_rsp_data_t
 Stream Gate Control List table request response data buffer. More...
 
struct  netc_tb_sgcl_data_t
 Stream Gate Control List table data buffer. More...
 
struct  netc_tb_sgcl_gcl_t
 Stream Gate Control List table entry gate control list structure. More...
 
struct  netc_tb_fm_cfge_t
 Frame Modification table config element. More...
 
struct  netc_tb_fm_req_data_t
 Frame Modification table request data buffer. More...
 
struct  netc_tb_fm_rsp_data_t
 Frame Modification table request response data buffer. More...
 
struct  netc_tb_fm_data_t
 Frame Modification table data buffer. More...
 
struct  netc_tb_fm_config_t
 Frame Modification table entry config. More...
 
struct  netc_tb_fmd_req_data_t
 Frame Modification Data table request data buffer. More...
 
struct  netc_tb_fmd_rsp_data_t
 Frame Modification Data table request response data buffer. More...
 
struct  netc_tb_fmd_data_t
 Frame Modification Data table data buffer. More...
 
struct  netc_tb_fmd_update_config_t
 Frame Modification data table entry update config. More...
 
struct  netc_tb_fmd_query_buffer_t
 Frame Modification data table entry query data buffer. More...
 
struct  netc_tb_vf_keye_t
 Vlan Filter table key element. More...
 
struct  netc_tb_vf_cfge_t
 Vlan Filter table config element. More...
 
struct  netc_tb_vf_search_criteria_t
 Vlan Filter table search criteria format. More...
 
struct  netc_tb_vf_req_data_t
 Vlan Filter table request data buffer. More...
 
struct  netc_tb_vf_rsp_data_t
 Vlan Filter table request response data buffer. More...
 
struct  netc_tb_vf_data_t
 Vlan Filter table data buffer. More...
 
struct  netc_tb_vf_config_t
 Vlan Filter table entry config. More...
 
struct  netc_tb_fdb_cfge_t
 FDB table configuration element. More...
 
struct  netc_tb_fdb_acte_t
 FDB table Activity element. More...
 
struct  netc_tb_fdb_search_criteria_t
 FDB table search criteria format. More...
 
struct  netc_tb_fdb_req_data_t
 FDB table request data buffer. More...
 
struct  netc_tb_fdb_rsp_data_t
 FDB table request response data buffer. More...
 
struct  netc_tb_fdb_data_t
 FDB table data buffer. More...
 
struct  netc_tb_fdb_config_t
 FDB table entry config. More...
 
struct  netc_tb_l2mcf_keye_t
 L2 IPV4 Multicast Filter table key element. More...
 
struct  netc_tb_l2mcf_search_criteria_t
 L2 IPV4 Multicast Filter table search criteria format. More...
 
struct  netc_tb_l2mcf_req_data_t
 L2 IPV4 Multicast Filter table request data buffer. More...
 
struct  netc_tb_l2mcf_rsp_data_t
 L2 IPV4 Multicast Filter table request response data buffer. More...
 
struct  netc_tb_l2mcf_data_t
 L2 IPV4 Multicast Filter table data buffer. More...
 
struct  netc_tb_l2mcf_config_t
 L2 IPV4 Multicast Filter table entry config. More...
 
struct  netc_tb_iseqg_cfge_t
 Ingress Sequence Generation table config element. More...
 
struct  netc_tb_iseqg_sgse_t
 Ingress Sequence Generation table Sequence generation state element. More...
 
struct  netc_tb_iseqg_req_data_t
 Ingress Sequence Generation table request data buffer. More...
 
struct  netc_tb_iseqg_rsp_data_t
 Ingress Sequence Generation table request response data buffer. More...
 
struct  netc_tb_iseqg_data_t
 Ingress Sequence Generation table data buffer. More...
 
struct  netc_tb_iseqg_config_t
 Ingress Sequence Generation table entry config. More...
 
struct  netc_tb_eseqr_cfge_t
 Egress Sequence Recovery table config element. More...
 
struct  netc_tb_eseqr_stse_t
 Egress Sequence Recovery table statistic element. More...
 
struct  netc_tb_eseqr_srse_t
 Egress Sequence Recovery table sequence recovery state element. More...
 
struct  netc_tb_eseqr_req_data_t
 Egress Sequence Recovery table request data buffer. More...
 
struct  netc_tb_eseqr_rsp_data_t
 Egress Sequence Recovery table request response data buffer. More...
 
struct  netc_tb_eseqr_data_t
 Egress Sequence Recovery table data buffer. More...
 
struct  netc_tb_eseqr_config_t
 Egress Sequence Recovery table entry config. More...
 
struct  netc_tgs_gate_entry_t
 Defines the Time Gate Scheduling gate control entry structure. More...
 
struct  netc_tb_tgs_cfge_t
 Time Gate Scheduling table config element. More...
 
struct  netc_tb_tgs_olse_t
 Time Gate Scheduling table statistic element. More...
 
struct  netc_tb_tgs_req_data_t
 Time Gate Scheduling table request data buffer. More...
 
struct  netc_tb_tgs_rsp_data_t
 Time Gate Scheduling table request response data buffer. More...
 
struct  netc_tb_tgs_data_t
 Time Gate Scheduling table data buffer, set with max size. More...
 
struct  netc_tb_tgs_gcl_t
 Time Gate Scheduling table entry gate control list structure. More...
 
struct  netc_tb_et_cfge_t
 Egress Treatment table config element. More...
 
struct  netc_tb_et_req_data_t
 Egress Treatment table request data buffer. More...
 
struct  netc_tb_et_rsp_data_t
 Egress Treatment table request response data buffer. More...
 
struct  netc_tb_et_data_t
 Egress Treatment table data buffer. More...
 
struct  netc_tb_et_config_t
 Egress Treatment table entry config. More...
 
struct  netc_tb_etmcq_cfge_t
 ETM Class Queue table config element. More...
 
struct  netc_tb_etmcq_stse_t
 ETM Class Queue table statistic element. More...
 
struct  netc_tb_etmcq_req_data_t
 ETM Class Queue table request data buffer. More...
 
struct  netc_tb_etmcq_rsp_data_t
 ETM Class Queue table request response data buffer. More...
 
struct  netc_tb_etmcq_data_t
 ETM Class Queue table data buffer. More...
 
struct  netc_tb_etmcq_config_t
 ETM Class Queue table entry config. More...
 
struct  netc_tb_etmcs_cfge_t
 ETM Class Scheduler table config element. More...
 
struct  netc_tb_etmcs_req_data_t
 ETM Class Scheduler table request data buffer. More...
 
struct  netc_tb_etmcs_rsp_data_t
 ETM Class Scheduler table request response data buffer. More...
 
struct  netc_tb_etmcs_data_t
 ETM Class Scheduler table data buffer. More...
 
struct  netc_tb_etmcs_config_t
 ETM Class Scheduler table entry config. More...
 
struct  netc_tb_etmcg_cfge_t
 ETM Congestion Group table config element. More...
 
struct  netc_tb_etmcg_stse_t
 ETM Congestion Group table statistic element. More...
 
struct  netc_tb_etmcg_req_data_t
 ETM Congestion Group table request data buffer. More...
 
struct  netc_tb_etmcg_rsp_data_t
 ETM Congestion Group table request response data buffer. More...
 
struct  netc_tb_etmcg_data_t
 ETM Congestion Group table data buffer. More...
 
struct  netc_tb_etmcg_config_t
 ETM Congestion Group table entry config. More...
 
struct  netc_tb_ec_stse_t
 Egress Count table statistic element. More...
 
struct  netc_tb_ec_req_data_t
 Egress Count table request data buffer. More...
 
struct  netc_tb_ec_rsp_data_t
 Egress Count table request response data buffer. More...
 
struct  netc_tb_ec_data_t
 Egress Count table data buffer. More...
 
struct  netc_tb_bp_cfge_t
 Buffer Pool table config element. More...
 
struct  netc_tb_bp_bpse_t
 Buffer Pool table State Element Data. More...
 
struct  netc_tb_bp_req_data_t
 Buffer Pool table request data buffer. More...
 
struct  netc_tb_bp_rsp_data_t
 Buffer Pool table request response data buffer. More...
 
struct  netc_tb_bp_data_t
 Buffer Pool table data buffer. More...
 
struct  netc_tb_bp_config_t
 Buffer Pool table entry config. More...
 
struct  netc_tb_sbp_cfge_t
 Shared Buffer Pool table config element. More...
 
struct  netc_tb_sbp_sbpse_t
 Shared Buffer Pool table State Element Data. More...
 
struct  netc_tb_sbp_req_data_t
 Shared Buffer Pool table request data buffer. More...
 
struct  netc_tb_sbp_rsp_data_t
 Shared Buffer Pool table request response data buffer. More...
 
struct  netc_tb_sbp_data_t
 Shared Buffer Pool table data buffer. More...
 
struct  netc_tb_sbp_config_t
 Shared Buffer Pool table entry config. More...
 
union  netc_tb_data_buffer_t
 Table common data buffer. More...
 
struct  netc_cbdr_hw_t
 Register group for SI/Switch command bd ring. More...
 
struct  netc_cbdr_handle_t
 Handle for common part of EP/Switch NTMP. More...
 

Macros

#define NETC_FD_EID_ENCODE_OPTION_0(entryId)   ((uint32_t)(entryId)&0xFFFU)
 Frame Modification Entry ID encode options. More...
 
#define NETC_ISI_VLAN_FRAME_KEY(valid, pcp, vid)   (((uint16_t)((valid)&0x1) << 15U) | ((uint16_t)((pcp)&0x3) << 12U) | ((uint16_t)(vid)&0xFFFU))
 2 Bytes VLAN field which may added to the frame Key
 
#define NETC_TB_SGCL_MAX_ENTRY   (0x100U)
 Stream Gate Control List Table maximum gate control list length.
 
#define NETC_TB_FMD_UPDATE_CONFIG_LENGTH(x)   (8U + (x))
 TFrame Modification Data table update config Data Buffer length, x is the number of update data bytes.
 
#define NETC_TB_TGS_MAX_ENTRY   (0x100U)
 Time Gate Scheduling Table maximum gate control list length (TGSTCAPR[MAX_GCL_LEN])
 
#define NETC_TB_ETM_CQ_ENTRY_ID(portID, cqID)   (((uint32_t)(portID) << 4U) | ((cqID)&0x7U))
 ETM Class Queue table entry ID macro, cqID is represents the Class Queue ID ,rang in 0 ~ 7, portID is Switch ID, rang in 0 ~ 4.
 
#define NETC_TB_ETM_CG_ENTRY_ID(portID, cgID)   (((uint32_t)(portID) << 4U) | ((cgID)&0x7U))
 ETM Congestion Group table entry ID macro, cgID is represents the Congestion Group ID ,rang in 0 ~ 7, portID is Switch ID, rang in 0 ~ 4.
 
#define NETC_TB_BP_THRESH(mant, exp)   (((uint32_t)((mant)&0xFF) << 4U) | ((exp)&0xF))
 Buffer pool and shared buffer pool threshold macro, the threshold = MANT*2^EXP, uint is internal memory words (avergae of 20 bytes each)
 

Typedefs

typedef netc_tb_eteid_access_mode_t netc_tb_is_oeteid_mode_t
 Ingress Stream table Override ET_EID mode.
 
typedef netc_tc_sdu_type_t netc_tb_rp_sdu_type_t
 Rate Policer Table Protocol/Service Data Unit Type.
 
typedef netc_tc_sdu_type_t netc_tb_sgi_sdu_type_t
 Stream Gate Instance table Protocol/Service Data Unit Type.
 
typedef netc_fm_sqt_act_t netc_tb_fm_sqt_act_t
 Frame Modification table Sequence Tag Action. More...
 
typedef netc_tb_eteid_access_mode_t netc_tb_fdb_oeteid_mode_t
 FDB table entry defined the egress packet processing actions (will cover the actions which specified in the Egress Treatment table )
 
typedef netc_tb_fdb_cfge_t netc_tb_l2mcf_cfge_t
 L2 IPV4 Multicast Filter table config element.
 
typedef netc_tb_fdb_acte_t netc_tb_l2mcf_acte_t
 L2 IPV4 Multicast Filter table activity lement.
 

Enumerations

enum  netc_tb_index_t {
  kNETC_TGSTable = 5U,
  kNETC_RPTable = 10U,
  kNETC_IPFTable = 13U,
  kNETC_FDBTable = 15U,
  kNETC_L2MCFTable = 16U,
  kNETC_VFTable = 18U,
  kNETC_ECQTable = 22U,
  kNETC_ECSTable = 23U,
  kNETC_ISITable = 30U,
  kNETC_ISTable = 31U,
  kNETC_ISFTable = 32U,
  kNETC_ETTable = 33U,
  kNETC_ISGTable = 34U,
  kNETC_ESRTable = 35U,
  kNETC_SGITable = 36U,
  kNETC_SGCLTable = 37U,
  kNETC_ISCTable = 38U,
  kNETC_ECTable = 39U,
  kNETC_FMTable = 40U,
  kNETC_BPTable = 41U,
  kNETC_SBPTable = 42U,
  kNETC_ECGTable = 43U,
  kNETC_FMDTable = 44U
}
 Table index. More...
 
enum  netc_tb_cmd_t {
  kNETC_DeleteEntry = 0x1U,
  kNETC_UpdateEntry = 0x2U,
  kNETC_QueryEntry = 0x4U,
  kNETC_QueryAndDeleteEntry = 0x5U,
  kNETC_QueryAndUpdateEntry = 0x6U,
  kNETC_AddEntry = 0x8U,
  kNETC_AddOrUpdateEntry = 0xAU,
  kNETC_AddAndQueryEntry = 0xCU,
  kNETC_AddQueryAndUpdateEntry
}
 Table management command operations. More...
 
enum  netc_tb_access_mode_t {
  kNETC_EntryIDMatch = 0U,
  kNETC_ExactKeyMatch,
  kNETC_Search,
  kNETC_TernaryKeyMatch
}
 Table Access Method. More...
 
enum  netc_cbd_version_t {
  kNETC_NtmpV1_0 = 0U,
  kNETC_NtmpV2_0
}
 NTMP version. More...
 
enum  netc_cmd_error_t {
  kNETC_FormatError = 0x1U,
  kNETC_SizeError = 0x2U,
  kNETC_AccessError = 0x4U,
  kNETC_ClassError = 0x8U,
  kNETC_IntegrityError = 0x10U,
  kNETC_InvTableID = 0x80U,
  kNETC_InvAccMethod = 0x81U,
  kNETC_TableIdxOutRange = 0x82U,
  kNETC_DBNotEnough = 0x83U,
  kNETC_InvCmd = 0x84U,
  kNETC_ReqDBError = 0x85U,
  kNETC_MultiBitError = 0x86U,
  kNETC_HashEntryLimit = 0x87U,
  kNETC_HashChainLimit = 0x88U,
  kNETC_InvHWGenEntryID = 0x89U,
  kNETC_SrchResDBNotEnough = 0x8AU,
  kNETC_CmdIdxTableWithITM = 0x8BU,
  kNETC_InvQueryAction = 0x8CU,
  kNETC_InvTableAccPrivilege = 0x8DU,
  kNETC_ReadSysBusErr = 0x8EU,
  kNETC_WriteSysBusErr = 0x8FU,
  kNETC_ClientErr = 0x90U,
  kNETC_TGSCmdIssue = 0xD0U,
  kNETC_TGSUpdateExistList = 0xD1U,
  kNETC_TGSUpdateOverLength = 0xD2U,
  kNETC_TGSUpdateOverSize = 0xD3U,
  kNETC_TGSEntryNotEnough = 0xD4U,
  kNETC_TGSUpdateNSList = 0xD5U,
  kNETC_TGSUpdateEarlierStartTime = 0xD6U,
  kNETC_TGSUpdateOverflowCycle = 0xD7U,
  kNETC_TGSQueryBeforeListActive = 0xD8U,
  kNETC_TGSUpdateInvGateValue = 0xD9U,
  kNETC_RPSDUTypeOutRange = 0x120U,
  kNETC_IPFInvHR = 0x150U,
  kNETC_IPFEntryNotFit = 0x151U,
  kNETC_IPFWithoutSTSE = 0x152U,
  kNETC_IPFInvRPP = 0x154U,
  kNETC_IPFFLTATGTOutRange = 0x155U,
  kNETC_IPFInvSwtFLTA = 0x156U,
  kNETC_IPFInvEnetcFLTA = 0x157U,
  kNETC_FDBReachPortLimit = 0x171U,
  kNETC_FDBReachSwtLimit = 0x172U,
  kNETC_FDBInvEPORT = 0x173U,
  kNETC_FDBETEIDOutRange = 0x174U,
  kNETC_FDBParityErr = 0x175U,
  kNETC_L2MCFInvEPORT = 0x181U,
  kNETC_L2MCFETEIDOutRange = 0x182U,
  kNETC_L2MCFInvKEYTYPE = 0x183U,
  kNETC_VFBASEETEIDOutRange = 0x1A0U,
  kNETC_ECQCQ2CGMAPOutRange = 0x1E0U,
  kNETC_ISIPortIDOutRange = 0x260U,
  kNETC_ISIInvISEID = 0x261U,
  kNETC_ISInvOpt = 0x270U,
  kNETC_ISInvID = 0x271U,
  kNETC_ISInvFMEID = 0x272U,
  kNETC_ISFInvISEID = 0x280U,
  kNETC_ISFInvCFGE = 0x281U,
  kNETC_ETInvOpt = 0x290U,
  kNETC_ETInvFMEID = 0x291U,
  kNETC_ISGInvQSTAG = 0x2A0U,
  kNETC_SGISGCLEIDOutRange = 0x2C0U,
  kNETC_SGIInvSDUTYPE = 0x2C1U,
  kNETC_SGISGCLEIDNotAlloc = 0x2C2U,
  kNETC_SGIInvSGCLEID = 0x2C3U,
  kNETC_SGIInvADMINBASETIME = 0x2C4U,
  kNETC_SGIInvCYCLETIME = 0x2C5U,
  kNETC_SGCLOverLength = 0x2D0U,
  kNETC_SGCLTimeIntervalZero = 0x2D1U,
  kNETC_SGCLTimeIntervalOverflow = 0x2D2U,
  kNETC_FMInvEMEID = 0x300U,
  kNETC_FMOptOutRange = 0x301U,
  kNETC_FMFMDOutRange = 0x302U,
  kNETC_BPSBPEIDOutRange = 0x310U
}
 Table command response error status. More...
 
enum  netc_fm_vlan_ud_act_t {
  kNETC_NoUDVlanAction = 0U,
  kNETC_ReplVlanPcpAndDei,
  kNETC_DelVlan
}
 Frame Modification VLAN Update/Delete Action. More...
 
enum  netc_fm_sqt_act_t {
  kNETC_NoSqtAction = 0U,
  kNETC_ReomveRTag
}
 Frame Modification Sequence Tag Action. More...
 
enum  netc_fm_vlan_ar_act_t {
  kNETC_AddCVlanPcpAndDei = 0U,
  kNETC_AddSVlanPcpAndDei,
  kNETC_ReplVidOnly,
  kNETC_ReplVidPcpAndDei
}
 Frame Modification VLAN Add/Replace Action. More...
 
enum  netc_tb_eteid_access_mode_t {
  kNETC_NoETAccess = 0x0U,
  kNETC_SinglePortETAccess,
  kNETC_MulitPortPackedETAccess,
  kNETC_MulitPortAbsETAccess
}
 Define FDB/L2MCF/IS table entry access the primary Egress Treatment table entry group mode. More...
 
enum  netc_tb_ipf_update_action_t {
  kNETC_IPFCfgEUpdate = 0x1U,
  kNETC_IPFStsEUpdate = 0x2U
}
 Ingress Port Filter Table Update Actions. More...
 
enum  netc_tb_ipf_attr_mask_t {
  kNETC_IPFSwtPortMasMask = 0x1U,
  kNETC_IPFEthernetMask = 0x2U,
  kNETC_IPFOuterVlanMask = 0x4U,
  kNETC_IPFInnerVlanMask = 0x8U,
  kNETC_IPFSeqTagMask = 0x70U,
  kNETC_IPFIpHeaderMask = 0x80U,
  kNETC_IPFIpVersionMask = 0x100U,
  kNETC_IPFIpExtMask = 0x200U,
  kNETC_IPFL4HeaderMask = 0x400U,
  kNETC_IPFWakeOnLanMask = 0x800U
}
 Ingress Port Filter frame attribute mask. More...
 
enum  netc_tb_ipf_seq_tag_t {
  kNETC_IPFNoRtag = 0x0U,
  kNETC_IPFDraftRtag,
  kNETC_IPFRtag,
  kNETC_IPFHsrTag
}
 Ingress Port Filter frame attribute Sequence Tag Code. More...
 
enum  netc_tb_ipf_l4_header_t {
  kNETC_IPFOtherL4,
  kNETC_IPFTcp,
  kNETC_IPFUdp,
  kNETC_IPFSctp
}
 Ingress Port Filter frame attribute L4 Header Code. More...
 
enum  netc_tb_ipf_forward_action_t {
  kNETC_IPFForwardDiscard = 0U,
  kNETC_IPFForwardPermit,
  kNETC_IPFRedirectToMgmtPort,
  kNETC_IPFCopyToMgmtPort
}
 Ingress port filter forwarding Action. More...
 
enum  netc_tb_ipf_filter_action_t {
  kNETC_IPFNoAction = 0U,
  kNETC_IPFWithRatePolicer,
  kNETC_IPFWithIngressStream,
  kNETC_IPFWithL2Filtering
}
 Ingress port filter Filter Action. More...
 
enum  netc_tb_isi_key_type {
  kNETC_KCRule0 = 0U,
  kNETC_KCRule1,
  kNETC_KCRule2,
  kNETC_KCRule3
}
 Stream identification table key type. More...
 
enum  netc_tb_is_isq_action_t {
  kNETC_ISNotPerformFRER = 0,
  kNETC_ISPerformFRER
}
 Ingress Stream table Ingress Sequence Action. More...
 
enum  netc_tb_is_forward_action_t {
  kNETC_ISDiscard = 0U,
  kNETC_ISRedirectToMgmtPort = 1U,
  kNETC_ISAllow = 1U,
  kNETC_ISAllowWithSIMap = 2U,
  kNETC_ISStreamForward = 2U,
  kNETC_ISBridgeForward,
  kNETC_ISCopyToMgmtPortAndStream,
  kNETC_ISCopyToMgmtPortAndBridge
}
 Ingress Stream table forwarding Action. More...
 
enum  netc_tb_is_ctd_mode_t {
  kNETC_ISNoCTD = 0x0U,
  kNETC_ISSinglePortCTD,
  kNETC_ISAllPortCTD
}
 Ingress Stream table Cut-Through Disable mode. More...
 
enum  netc_tb_rp_update_action_t {
  kNETC_RPCfgEUpdate = 0x1U,
  kNETC_RPFeEUpdate = 0x2U,
  kNETC_RPPsEUpdate = 0x4U,
  kNETC_RPStsEUpdate = 0x8U
}
 Rate Policer Table Update Actions. More...
 
enum  netc_tb_sgi_update_action_t {
  kNETC_SGIAcfEUpdate = 0x1U,
  kNETC_SGICfgEUpdate = 0x2U,
  kNETC_SGISgisEUpdate = 0x4U
}
 Stream Gate Instance table Update Actions. More...
 
enum  netc_tb_sgi_state_t {
  kNETC_GSNotOper = 0x0U,
  kNETC_GSUseDefaultParam,
  kNETC_GSUseDefUntilAdminAct,
  kNETC_GSUseOperUntilAdminAct,
  kNETC_GSUseOperList
}
 Stream Gate Instance State. More...
 
enum  netc_tb_fm_layer2_act_t {
  kNETC_UseL2HeaderAct = 0U,
  kNETC_UseSpecPlayload
}
 Frame Modification table Layer 2 Actions. More...
 
enum  netc_tb_fm_mac_header_act_t {
  kNETC_NoMacAction = 0U,
  kNETC_ReplSmac = 2U,
  kNETC_ReplSmacAndDmacAct1,
  kNETC_ReplSmacAndDmacAct2,
  kNETC_ReplDmac,
  kNETC_SwapDmacAndSmac
}
 Frame Modification table Layer 2 Header MAC Actions. More...
 
enum  netc_tb_fm_vlan_header_act_t {
  kNETC_NoVlanAction = 0U,
  kNETC_DelOuterVlan,
  kNETC_AddOuterVlan,
  kNETC_ReplOuterVlan
}
 Frame Modification table Layer 2 VLAN Actions. More...
 
enum  netc_tb_fm_outer_vid_act_t {
  kNETC_UseFrameVid = 0U,
  kNETC_UseSpecVid
}
 Frame Modification table Layer 2 outer VLAN VID Actions. More...
 
enum  netc_tb_fm_outer_tpid_act_t {
  kNETC_UseFrameTpid = 0U,
  kNETC_UseStdCVlan,
  kNETC_UseStdSVlan,
  kNETC_UseCustomCVlan,
  kNETC_UseCustomSVlan
}
 Frame Modification table Outer TPID action. More...
 
enum  netc_tb_fm_outer_pcp_act_t {
  kNETC_UseFramePcp = 0U,
  kNETC_UseSpecPcp,
  kNETC_UseFramePcpMap,
  kNETC_UseQosMap
}
 Frame Modification table Outer PCP action. More...
 
enum  netc_tb_fm_outer_dei_act_t {
  kNETC_UseFrameDei = 0U,
  kNETC_UseSpecDei,
  kNETC_UseDrMap
}
 Frame Modification table Outer DEI action. More...
 
enum  netc_tb_fm_payload_act_t {
  kNETC_NoAction = 0U,
  kNETC_ReplAllEthPld,
  kNETC_ReplPldWithOffset
}
 Frame Modification table Payload Actions. More...
 
enum  netc_tb_fdb_update_action_t {
  kNETC_FDBCfgEUpdate = 0x1U,
  kNETC_FDBActEUpdate = 0x2U
}
 FDB table Update Actions. More...
 
enum  netc_tb_fdb_ctd_mode_t {
  kNETC_FDBNoCTD = 0x0U,
  kNETC_FDBSinglePortCTD = 0x1U,
  kNETC_FDBAllPortCTD = 0x2U
}
 FDB table Cut-Through Disable mode. More...
 
enum  netc_tb_fdb_sc_keye_mc_t {
  kNETC_FDBKeyeMacthAny = 0x0,
  kNETC_FDBKeyeMacthFID = 0x1,
  kNETC_FDBKeyeMacthMacMulticast = 0x2,
  kNETC_FDBKeyeMacthBoth = 0x3
}
 FDB table search criteria Key Element Match Criteria. More...
 
enum  netc_tb_fdb_sc_cfge_mc_t {
  kNETC_FDBCfgeMacthAny = 0x0,
  kNETC_FDBCfgeMacthDynamic = 0x1,
  kNETC_FDBCfgeMacthPortBitmap = 0x2,
  kNETC_FDBCfgeMacthBoth = 0x3
}
 FDB table search criteria Configuration Element Match Criteria. More...
 
enum  netc_tb_fdb_sc_acte_mc_t {
  kNETC_FDBActeMacthAny = 0x0,
  kNETC_FDBActeMatchExact = 0x1
}
 FDB table search criteria Activity Element Match Criteria. More...
 
enum  netc_tb_l2mcf_key_type_t {
  kNETC_IPv4ASMKey = 0U,
  kNETC_IPv4SSMKey
}
 L2 IPV4 Multicast Filter table key type. More...
 
enum  etc_tb_l2mcf_sc_keye_mc_t {
  kNETC_L2MCFKeyeMacthAny = 0x0,
  kNETC_L2MCFKeyeMacthFID = 0x1
}
 L2 IPV4 Multicast Filter table search criteria Key Element Match Criteria. More...
 
enum  etc_tb_l2mcf_sc_cfge_mc_t {
  kNETC_L2MCFCfgeMacthAny = 0x0,
  kNETC_L2MCFCfgeMacthDynamic = 0x1,
  kNETC_L2MCFCfgeMacthPortBitmap = 0x2,
  kNETC_L2MCFCfgeMacthBoth = 0x3
}
 L2 IPV4 Multicast Filter table search criteria Configuration Element Match Criteria. More...
 
enum  etc_tb_l2mcf_sc_acte_mc_t {
  kNETC_L2MCFActeMacthAny = 0x0,
  kNETC_L2MCFActeMatchExact = 0x1
}
 FDB table search criteria Activity Element Match Criteria. More...
 
enum  netc_tb_iseqg_sqtag_t {
  kNETC_SqDraftRTag = 1U,
  kNETC_SqRTag,
  kNETC_SqHsrTag
}
 Sequence Tag Type. More...
 
enum  netc_tb_eseqr_sqtag_t {
  kNETC_AcceptAnyTag = 0U,
  kNETC_AcceptDraftRTag = 1U,
  kNETC_AcceptRTag,
  kNETC_AcceptHsrTag
}
 Egress Sequence Recovery table Sequence Tag Type. More...
 
enum  netc_tb_tgs_entry_id_t {
  kNETC_TGSSwtPort0 = 0U,
  kNETC_TGSSwtPort1,
  kNETC_TGSSwtPort2,
  kNETC_TGSSwtPort3,
  kNETC_TGSSwtPort4,
  kNETC_TGSEnetc0Port,
  kNETC_TGSEnetc1Port
}
 Time Gate Scheduling table entry ID for switch and ENETC. More...
 
enum  netc_tb_tgs_gate_type_t {
  kNETC_SetGateStates = 0U,
  kNETC_SetAndHoldMac,
  kNETC_SetAndReleaseMac
}
 Administrative gate operation type. More...
 
enum  netc_tb_et_efm_mode_t {
  kNETC_NormalMode = 0U,
  kNETC_L2Act1,
  kNETC_PldAct1
}
 Egress Frame Modification entry mode. More...
 
enum  netc_tb_et_esq_act_t {
  kNETC_NoEsqAction = 0U,
  kNETC_HasEsqAction = 2U
}
 Egress Sequence Actions. More...
 
enum  netc_tb_et_ec_act_t {
  kNETC_NoEcCounter = 0U,
  kNETC_HasEcCounter
}
 Egress Counter Action. More...
 
enum  netc_tb_etmcq_update_action_t {
  kNETC_CQCfgEUpdate = 0x1U,
  kNETC_CQStsEUpdate
}
 ETM Class Queue table Update Actions. More...
 
enum  netc_tb_etmcs_entry_id_t {
  kNETC_CSSwtPort0 = 0U,
  kNETC_CSSwtPort1,
  kNETC_CSSwtPort2,
  kNETC_CSSwtPort3,
  kNETC_CSSwtPort4
}
 ETM Class Scheduler table entry ID. More...
 
enum  netc_tb_etmcs_ca_assg_t {
  kNETC_CQ7AssignToSchedIn15 = 0U,
  kNETC_CQ7AssignToSchedIn14,
  kNETC_CQ7AssignToSchedIn13,
  kNETC_CQ7AssignToSchedIn12,
  kNETC_CQ7AssignToSchedIn11,
  kNETC_CQ7AssignToSchedIn10,
  kNETC_CQ7AssignToSchedIn9,
  kNETC_CQ7AssignToSchedIn8,
  kNETC_CQ7AssignToSchedIn7
}
 ETM Class Scheduler table Class queue assignment to scheduler inputs mode. More...
 
enum  netc_tb_bp_fc_cfg_t {
  kNETC_FlowCtrlDisable = 0U,
  kNETC_FlowCtrlWithBP,
  kNETC_FlowCtrlWithSBP,
  kNETC_FlowCtrlWithBPAndSBP
}
 Buffer Pool Flow Control (FC) Configuration. More...
 

Functions

status_t NETC_CmdBDRInit (netc_cbdr_hw_t *base, const netc_cmd_bdr_config_t *config)
 Initialize the command BD ring. More...
 
status_t NETC_CmdBDRDeinit (netc_cbdr_hw_t *base)
 Deinitialize the command BD ring. More...
 
status_t NETC_CmdBDSendCommand (netc_cbdr_hw_t *base, netc_cmd_bdr_t *cbdr, netc_cmd_bd_t *cbd, netc_cbd_version_t version)
 Send the Command Buffer Descriptor to operate on a NTMP table. More...
 
status_t NETC_AddIPFTableEntry (netc_cbdr_handle_t *handle, netc_tb_ipf_config_t *config, uint32_t *entryID)
 Add entry into the ingress Port Filter Table. More...
 
status_t NETC_UpdateIPFTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_ipf_cfge_t *cfg)
 Update entry in the ingress Port Filter Table. More...
 
status_t NETC_QueryIPFTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_ipf_config_t *config)
 Query entry in the ingress Port Filter Table. More...
 
status_t NETC_DelIPFTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID)
 Delete an entry in the ingress Port Filter Table. More...
 
status_t NETC_ResetIPFMatchCounter (netc_cbdr_handle_t *handle, uint32_t entryID)
 Reset the counter of an ingress port filter Table entry. More...
 
status_t NETC_GetIPFMatchedCount (netc_cbdr_handle_t *handle, uint32_t entryID, uint64_t *count)
 Get the matched count of an ingress port filter Table entry. More...
 
status_t NETC_AddISITableEntry (netc_cbdr_handle_t *handle, netc_tb_isi_config_t *config, uint32_t *entryID)
 Add entry into Ingress Stream Identification table. More...
 
status_t NETC_DelISITableEntry (netc_cbdr_handle_t *handle, uint32_t entryID)
 Delete an entry in Ingress stream identification table. More...
 
status_t NETC_QueryISITableEntry (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_isi_config_t *config)
 Query Ingress Stream Identification table. More...
 
status_t NETC_QueryISITableEntryWithKey (netc_cbdr_handle_t *handle, netc_tb_isi_keye_t *keye, netc_tb_isi_rsp_data_t *rsp)
 Query Ingress Stream Identification table with key. More...
 
status_t NETC_AddOrUpdateISTableEntry (netc_cbdr_handle_t *handle, netc_tb_is_config_t *config, bool isAdd)
 Add or update entry in Ingress Stream table. More...
 
status_t NETC_QueryISTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_is_config_t *config)
 Query Ingress Stream table. More...
 
status_t NETC_DelISTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID)
 Delete an entry in Ingress stream table. More...
 
status_t NETC_AddISFTableEntry (netc_cbdr_handle_t *handle, netc_tb_isf_config_t *config, uint32_t *entryID)
 Add entry into ingress stream filter table. More...
 
status_t NETC_UpdateISFTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_isf_cfge_t *cfg)
 Update entry into ingress stream filter table. More...
 
status_t NETC_DelISFTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID)
 Delete an entry in Ingress stream filter table. More...
 
status_t NETC_QueryISFTableEntry (netc_cbdr_handle_t *handle, netc_tb_isf_keye_t *keye, netc_tb_isf_rsp_data_t *rsp)
 Query entry from the Ingress stream filter table. More...
 
status_t NETC_AddISCTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID)
 Add entry in ingress stream count table. More...
 
status_t NETC_GetISCStatistic (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_isc_stse_t *statistic)
 Get ingress stream count statistic. More...
 
status_t NETC_ResetISCStatistic (netc_cbdr_handle_t *handle, uint32_t entryID)
 Reset the count of the ingress stream count. More...
 
status_t NETC_AddOrUpdateSGITableEntry (netc_cbdr_handle_t *handle, netc_tb_sgi_config_t *config, bool isAdd)
 Add or update entry in stream gate instance table. More...
 
status_t NETC_DelSGITableEntry (netc_cbdr_handle_t *handle, uint32_t entryID)
 Delete entry in the stream gate instance table. More...
 
status_t NETC_GetSGIState (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_sgi_sgise_t *statis)
 Get statistic of specified stream gate instance table entry. More...
 
status_t NETC_QuerySGITableEntry (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_sgi_rsp_data_t *rsp)
 Query entry from the stream gate instance table. More...
 
status_t NETC_AddSGCLTableEntry (netc_cbdr_handle_t *handle, netc_tb_sgcl_gcl_t *config)
 Add entry into Stream Gate Control List Table. More...
 
status_t NETC_DelSGCLTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID)
 Delete entry of Stream Gate Control List Table. More...
 
status_t NETC_GetSGCLGateList (netc_cbdr_handle_t *handle, netc_tb_sgcl_gcl_t *gcl, uint32_t length)
 Get Stream Gate Control List Table entry gate control list. More...
 
status_t NETC_GetSGCLState (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_sgcl_sgclse_t *state)
 Get state (ref count) for Stream Gate Control List table entry. More...
 
status_t NETC_QueryRPTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_rp_rsp_data_t *rsp)
 Query entry from the Rate Policer table. More...
 
status_t NETC_AddOrUpdateRPTableEntry (netc_cbdr_handle_t *handle, netc_tb_rp_config_t *config, netc_tb_cmd_t cmd)
 Add or update entry in Rate Policer table. More...
 
status_t NETC_DelRPTableEntry (netc_cbdr_handle_t *handle, uint32_t entryID)
 Delete entry in the Rate Policer table. More...
 
status_t NETC_GetRPStatistic (netc_cbdr_handle_t *handle, uint32_t entryID, netc_tb_rp_stse_t *statis)
 Get statistic of specified Rate Policer table entry. More...
 
status_t NETC_ConfigTGSAdminList (netc_cbdr_handle_t *handle, netc_tb_tgs_gcl_t *config)
 Config the QBV (Time Gate Scheduling) More...
 
status_t NETC_GetTGSOperationList (netc_cbdr_handle_t *handle, netc_tb_tgs_gcl_t *gcl, uint32_t length)
 Get time gate table operation list. More...
 

Data Structure Documentation

union netc_cmd_bd_t

Field Documentation

uint64_t netc_cmd_bd_t::addr

Data.

netc_tb_cmd_t netc_cmd_bd_t::cmd
netc_tb_access_mode_t netc_cmd_bd_t::accessType
uint32_t netc_cmd_bd_t::__pad1__
uint32_t netc_cmd_bd_t::version
uint32_t netc_cmd_bd_t::enCompInt
uint32_t netc_cmd_bd_t::resReady
uint32_t netc_cmd_bd_t::npf
uint32_t netc_cmd_bd_t::numMatched
uint32_t netc_cmd_bd_t::error
uint32_t netc_cmd_bd_t::en
uint32_t netc_cmd_bd_t::siBitMap
uint32_t netc_cmd_bd_t::index
uint32_t netc_cmd_bd_t::cmd
uint32_t netc_cmd_bd_t::__pad2__
uint32_t netc_cmd_bd_t::status
uint32_t netc_cmd_bd_t::ci
uint32_t netc_cmd_bd_t::sf
struct netc_cmd_bdr_config_t

Data Fields

netc_cmd_bd_tbdBase
 BDR base address which shall be 128 bytes aligned.
 
uint16_t bdLength
 Size of BD ring which shall be multiple of 8 BD.
 
bool enCompInt
 Enable/Disable command BD completion interrupt.
 
struct netc_cmd_bdr_t

Data Fields

netc_cmd_bd_tbdBase
 BDR base address which shall be 128 bytes aligned.
 
uint16_t bdLength
 Size of BD ring.
 
uint16_t producerIndex
 Current index for execution. More...
 
uint16_t cleanIndex
 Current index for cleaning. More...
 
bool bdrEnable
 Current command BD ring is enable or not. More...
 

Field Documentation

uint16_t netc_cmd_bdr_t::producerIndex
uint16_t netc_cmd_bdr_t::cleanIndex
bool netc_cmd_bdr_t::bdrEnable
struct netc_tb_common_header_t

Data Fields

uint32_t updateActions: 16
 Update Actions.
 
uint32_t queryActions: 4
 Query Actions.
 
struct netc_tb_ipf_keye_t

Data Fields

uint16_t precedence
 Precedence value of an entry.
 
struct {
   uint16_t   swtPortMas: 1
 Switch port masquerading, applicable only if the incoming port is designated as a switch management port.
 
   uint16_t   ethernet: 1
 Ethernet type Present.
 
   uint16_t   outerVlan: 1
 Outer VLAN Present.
 
   uint16_t   innerVlan: 1
 Inner VLAN Present.
 
   netc_tb_ipf_seq_tag_t   seqTag: 3
 Sequence Tag Code.
 
   uint16_t   ipHeader: 1
 IP Header Present.
 
   uint16_t   ipVersion: 1
 0b = IPv4, 1b = IPv6
 
   uint16_t   ipExt: 1
 IPv4 option / IPv6 extension present.
 
   netc_tb_ipf_l4_header_t   l4Header: 2
 L4 Header code.
 
   uint16_t   wakeOnLan: 1
 Wake-on-LAN Magic Packet Present.
 
frameAttr
 Frame Attribute flags.
 
uint16_t frameAttrMask
 Frame attribute mask, set with OR of netc_tb_ipf_attr_mask_t.
 
uint16_t dscp: 6
 Differentiated Services Code Point.
 
uint16_t dscpMask: 6
 Differentiated Services Code Point Mask.
 
uint16_t srcPort: 5
 Source Port ID.
 
uint16_t srcPortMask: 5
 Source Port ID Mask.
 
uint16_t outerVlanTCI
 Outer VLAN Tag Control Information.
 
uint16_t outerVlanTCIMask
 Outer VLAN Tag Control Information Mask.
 
uint8_t dmac [6]
 Destination MAC Address.
 
uint8_t dmacMask [6]
 Destination MAC Address Mask.
 
uint8_t smac [6]
 Source MAC Address.
 
uint8_t smacMask [6]
 Source MAC Address Mask.
 
uint16_t innerVlanTCI
 Inner VLAN Tag Control Information.
 
uint16_t innerVlanTCIMask
 Inner VLAN Tag Control Information Mask.
 
uint16_t etherType
 2-byte EtherType
 
uint16_t etherTypeMask
 EtherType Mask.
 
uint8_t IPProtocol
 IP Protocol.
 
uint8_t IPProtocolMask
 IP Protocol Mask.
 
uint8_t srcIPAddr [16]
 IP Source Address, Bits 127-0: IPv6 source address, Bits 127-96: IPv4 source address.
 
uint8_t srcIPAddrMask [16]
 IP Source Address Mask.
 
uint16_t l4SrcPort
 L4 Source Port.
 
uint16_t l4SrcPortMask
 L4 Source Port Mask.
 
uint8_t destIPAddr [16]
 IP Destination Address, Bits 127-0: IPv6 source address, Bits 127-96: IPv4 source address.
 
uint8_t destIPAddrMask [16]
 IP Destination Address Mask.
 
uint16_t l4DestPort
 L4 Destination Port.
 
uint16_t l4DestPortMask
 L4 Destination Port Mask.
 
uint8_t data
 Payload Byte n.
 
uint8_t mask
 Payload Byte n Mask.
 
struct netc_tb_ipf_cfge_t

Data Fields

uint32_t ipv: 4
 Internal Priority Value.
 
uint32_t oipv: 1
 Overwrite IPV.
 
uint32_t dr: 2
 Drop Resilience.
 
uint32_t odr: 1
 Overwrite DR.
 
netc_tb_ipf_forward_action_t fltfa: 2
 Filter Forwarding action. More...
 
uint32_t imire: 1
 Ingress Mirroring Enable.
 
uint32_t wolte: 1
 Wake-onLAN trigger enable.
 
netc_tb_ipf_filter_action_t flta: 2
 FIlter Action. More...
 
uint32_t rpr: 2
 Relative Precedent Resolution.
 
uint32_t ctd: 1
 Cut through disable. More...
 
netc_host_reason_t hr: 4
 Host Reason metadata when frame is redirected/copied to the switch management port.
 
uint32_t timecape: 1
 Timestam capture enable.
 
uint32_t fltaTgt
 Target for selected switch forwarding action or filter action.
 

Field Documentation

netc_tb_ipf_forward_action_t netc_tb_ipf_cfge_t::fltfa
netc_tb_ipf_filter_action_t netc_tb_ipf_cfge_t::flta
uint32_t netc_tb_ipf_cfge_t::ctd
struct netc_tb_ipf_stse_t

Data Fields

uint32_t matchCount [2]
 A count of how many times this entry has been matched. More...
 

Field Documentation

uint32_t netc_tb_ipf_stse_t::matchCount[2]
struct netc_tb_ipf_req_data_t
struct netc_tb_ipf_rsp_data_t

Data Fields

uint32_t entryID
 Present only for commands which perform a query.
 
netc_tb_ipf_keye_t keye
 Present only for commands which perform a query.
 
netc_tb_ipf_stse_t stse
 Present only for commands which perform a query.
 
netc_tb_ipf_cfge_t cfge
 Present only for commands which perform a query.
 
struct netc_tb_ipf_data_t
struct netc_tb_ipf_config_t
struct netc_tb_isi_keye_t

Data Fields

netc_tb_isi_key_type keyType: 2
 Define the key type used for the current isi entry.
 
uint8_t srcPortID: 5
 Source Port ID, used when kc portp filed is 1. More...
 
uint8_t spm: 1
 Source Port Masquerading, used when kc spm filed is 1. More...
 
uint8_t framekey [16]
 Frame portion of the key. More...
 

Field Documentation

uint8_t netc_tb_isi_keye_t::srcPortID

Only for SWITCH

uint8_t netc_tb_isi_keye_t::spm

Only for SWITCH

uint8_t netc_tb_isi_keye_t::framekey[16]
struct netc_tb_isi_cfge_t

Data Fields

uint32_t iSEID
 Ingress stream entry ID, 0xFFFFFFFF means NULL.
 
struct netc_tb_isi_req_data_t
struct netc_tb_isi_rsp_data_t

Data Fields

uint32_t entryID
 Only present for query command.
 
netc_tb_isi_keye_t keye
 Only present for query command.
 
netc_tb_isi_cfge_t cfge
 Only present for query command.
 
struct netc_tb_isi_data_t
struct netc_tb_isi_config_t
struct netc_tb_is_cfge_t

Data Fields

uint32_t sfe: 1
 Stream Filtering Enable.
 
uint32_t ipv: 4
 Internal Priority Value, active when opiv is set to 1.
 
uint32_t oipv: 1
 Override internal priority value.
 
uint32_t dr: 2
 Drop Resilience, active when odr is set to 1.
 
uint32_t odr: 1
 Overwrite DR.
 
uint32_t imire: 1
 Ingress Mirroring Enable, not applicable to ENETC.
 
uint32_t timecape: 1
 Timestamp Capture Enable, not applicable to ENETC.
 
uint32_t sppd: 1
 Source Port Pruning Disable, not applicable to ENETC.
 
netc_tb_is_isq_action_t isqa: 2
 Ingress Sequence Action, not applicable to ENETC.
 
uint32_t orp: 1
 Override Rate Policer ID.
 
uint32_t osgi: 1
 Override stream gate instance entry id (default is NULL)
 
netc_host_reason_t hr: 4
 
     Host Reason when frame is redirected (fa = 01b) to the switch management port or

copied to the switch management port (fa = 100b or 101b), value specified has to be a software defined Host Reason (8-15). More...

 
netc_tb_is_forward_action_t fa: 3
 Forwad Option.
 
netc_tc_sdu_type_t sduType: 2
 Service Data Unit Type to user for MSDU.
 
uint32_t msdu: 16
 Maximum Service Data Unit.
 
uint32_t ifmeLenChange: 7
 Ingress Frame Modification Entry Frame Length Change, specified in unit of bytes using a 2's complement notation.
 
uint32_t eport: 5
 Egress Port which need do egress packet processing, active when oeteid is set to 1, not applicable to ENETC.
 
netc_tb_is_oeteid_mode_t oETEID: 2
 
           Override ET_EID (Egress Treatment table entry, which specified egress

packet processing actions)

 
netc_tb_is_ctd_mode_t ctd: 2
 Cut-Through Disable mode, valid if fa = 010b ~ 101b.
 
uint32_t isqEID
 Ingress Sequence Generation Entry ID, Valid when isqa is set to 1. More...
 
uint32_t rpEID
 Rate Policer Entry ID, Valid when orp =1. More...
 
uint32_t sgiEID
 Stream Gate Instance Entry ID, Valid when osgi =1. More...
 
uint32_t ifmEID
 Ingress Frame Modification Entry ID. More...
 
uint32_t etEID
 Base Egress Treatment Entry ID for primary Egress Treatment group, Valid alid if fa = 010b ~ 101b. More...
 
uint32_t iscEID
 Ingress Stream counter Index. More...
 
uint32_t ePortBitmap
 Egress Port bitmap, identifies the ports to which the frame is to be forwarding or ET applicability port bitmap when oETEID = 10b. More...
 
uint32_t siMap: 16
 Station Interface Map, only valid for ENETC function when fa field is set to 10b.
 

Field Documentation

netc_host_reason_t netc_tb_is_cfge_t::hr
uint32_t netc_tb_is_cfge_t::isqEID

0xFFFF_FFFF is NULL. Not applicable to ENETC

uint32_t netc_tb_is_cfge_t::rpEID

0xFFFF_FFFF is NULL

uint32_t netc_tb_is_cfge_t::sgiEID

0xFFFF_FFFF is NULL

uint32_t netc_tb_is_cfge_t::ifmEID

0xFFFF_FFFF is NULL

uint32_t netc_tb_is_cfge_t::etEID

0xFFFF_FFFF is NULL. Not applicable to ENETC

uint32_t netc_tb_is_cfge_t::iscEID

0xFFFF_FFFF is NULL.

uint32_t netc_tb_is_cfge_t::ePortBitmap

Not applicable to ENETC

struct netc_tb_is_req_data_t

Data Fields

netc_tb_is_cfge_t cfge
 Only perform for update or add command.
 
struct netc_tb_is_rsp_data_t

Data Fields

uint32_t entryID
 Only perform for query command.
 
netc_tb_is_cfge_t cfge
 Only perform for query command.
 
struct netc_tb_is_data_t
struct netc_tb_is_config_t
struct netc_tb_isf_keye_t

Data Fields

uint32_t isEID
 Ingress Stream Entry ID.
 
uint8_t pcp: 3
 Priority Code Point, Outer VLAN TAG PCP of the received frame.
 
struct netc_tb_isf_cfge_t

Data Fields

uint32_t ipv: 4
 Internal Priority Value, active when opiv is set to 1.
 
uint32_t oipv: 1
 Override internal priority value.
 
uint32_t dr: 2
 Drop Resilience, active when odr is set to 1.
 
uint32_t odr: 1
 Overwrite DR.
 
uint32_t imire: 1
 Ingress Mirroring Enable, not applicable to ENETC.
 
uint32_t timecape: 1
 Timestamp Capture Enable, not applicable to ENETC.
 
uint32_t osgi: 1
 Override stream gate instance entry id.
 
uint32_t ctd: 1
 Cut-Through Disable, will disable cut-through for all destined ports when set 1, not applicable to ENETC.
 
uint32_t orp: 1
 Override Rate Policer (instance) ID.
 
netc_tc_sdu_type_t sduType: 2
 Service Data Unit Type to user for MSDU.
 
uint32_t msdu: 16
 Maximum Service Data Unit.
 
uint32_t rpEID
 Rate Policer Entry ID, Valid when orp =1. More...
 
uint32_t sgiEID
 Stream Gate Instance Entry ID, Valid when osgi =1. More...
 
uint32_t iscEID
 Ingress Stream counter Index. More...
 

Field Documentation

uint32_t netc_tb_isf_cfge_t::rpEID

0xFFFF_FFFF is NULL

uint32_t netc_tb_isf_cfge_t::sgiEID

0xFFFF_FFFF is NULL

uint32_t netc_tb_isf_cfge_t::iscEID

0xFFFF_FFFF is NULL.

struct netc_tb_isf_req_data_t

Data Fields

netc_tb_isf_cfge_t cfge
 Only perform for update or add command.
 
struct netc_tb_isf_rsp_data_t

Data Fields

uint32_t entryID
 Only perform for query command.
 
netc_tb_isf_keye_t keye
 Only perform for query command.
 
netc_tb_isf_cfge_t cfge
 Only perform for query command.
 
struct netc_tb_isf_data_t
struct netc_tb_isf_config_t
struct netc_tb_rp_cfge_t

Data Fields

uint32_t cir
 Committed information Rate.
 
uint32_t cbs
 Commited Burst Size.
 
uint32_t eir
 Excess information Rate.
 
uint32_t ebs
 Excess Burst Size.
 
uint32_t mren: 1
 Mark All Frames Red Enable, Not valid when ndor=1.
 
uint32_t doy: 1
 Drop on Yellow enable.
 
uint32_t cm: 1
 Color mode, 0b = Color blind, 1b = Color aware.
 
uint32_t cf: 1
 Coupling flag, enables coupling the Committed (C) bucket and Excess (E) bucket.
 
uint32_t ndor: 1
 No drop on red.
 
netc_tb_rp_sdu_type_t sduType: 2
 Service Data Unit Type.
 
uint32_t __pad0__: 25
 Reserved.
 
struct netc_tb_rp_fee_t

Data Fields

uint8_t fen: 1
 Function Enable.
 
uint8_t __pad0__: 7
 Reserved.
 
struct netc_tb_rp_pse_t

Data Fields

uint8_t mr: 1
 Mark Red Flag.
 
uint8_t res0: 7
 Reserved.
 
struct netc_tb_rp_stse_t

Data Fields

uint32_t byteCount [2]
 Number of bytes received by the rate policer instance.
 
uint32_t dropFrames [2]
 Number of frames dropped by the rate policer instance.
 
uint32_t dr0GrnFrames [2]
 Number of frames marked green with DR=0 by the rate policer instance.
 
uint32_t dr1GrnFrames [2]
 Number of frames marked green with DR=1 by the rate policer instance.
 
uint32_t dr2GrnFrames [2]
 Number of frames marked yellow with DR=2 by the rate policer instance.
 
uint32_t remarkYlwFrames [2]
 Number of frames re-marked from green to yellow by the rate policer instance.
 
uint32_t dr3RedFrames [2]
 Number of frames marked red with DR=3 by the rate policer instance.
 
uint32_t remarkRedFrames [2]
 Number of frames re-marked from green or yellow to red by the rate policer instance.
 
uint32_t lts
 Last timestamp.
 
uint32_t bci: 31
 Committed token bucket contents, integer portion (31 bits)
 
uint32_t bcs: 1
 Committed token bucket sign bit (1 bit)
 
uint32_t bcf
 Committed token bucket contents, fractional portion (31 bits)
 
uint32_t bei
 Excess token bucket contents, integer portion (32 bits)
 
uint32_t bef: 31
 Excess token bucket contents, fractional portion (31 bits)
 
uint32_t bes: 1
 Committed token bucket sign bit.
 
struct netc_tb_rp_req_data_t
struct netc_tb_rp_rsp_data_t

Data Fields

uint32_t entryID
 Present only for commands which perform a query.
 
netc_tb_rp_stse_t stse
 Present only for commands which perform a query.
 
netc_tb_rp_cfge_t cfge
 Present only for commands which perform a query.
 
netc_tb_rp_fee_t fee
 Present only for commands which perform a query.
 
netc_tb_rp_pse_t pse
 Present only for commands which perform a query.
 
struct netc_tb_rp_data_t
struct netc_tb_rp_config_t
struct netc_tb_isc_stse_t

Data Fields

uint32_t rxCount
 Receive Count.
 
uint32_t msduDropCount
 MSDU Drop Count.
 
uint32_t policerDropCount
 Policer Drop Count.
 
uint32_t sgDropCount
 Stream Gating Drop Count.
 
struct netc_tb_isc_req_data_t
struct netc_tb_isc_rsp_data_t
struct netc_tb_isc_data_t
struct netc_tb_sgi_cfge_t

Data Fields

uint8_t oexen: 1
 Octets Exceeded (Gate Closed Due To Octets Exceeded function) Enable.
 
uint8_t irxen: 1
 Invalid Receive (Gate Closed Due To Invalid Rx) Enable.
 
netc_tb_sgi_sdu_type_t sduType: 2
 The type of PDU/SDU for Interval Octets Maximum check for Gate Entry.
 
struct netc_tb_sgi_acfge_t

Data Fields

uint32_t adminSgclEID
 Administrative Stream Gate Control List Entry ID, 0xFFFFFFFF is NULL.
 
uint32_t adminBaseTime [2]
 Admin Base Time.
 
uint32_t adminCycleTimeExt
 Admin Cycle Time Extension.
 
struct netc_tb_sgi_icfge_t

Data Fields

uint8_t ipv: 4
 Internal Priority Value (IPV), Valid if oipv is 1.
 
uint8_t oipv: 1
 Override frame IPV, otherwise the IPV value is determined by the stream gate control list entry.
 
uint8_t gst: 1
 Specifies Gate State before the administrative stream gate control list takes affect, 0b = Closed; 1b = Open.
 
uint8_t ctd: 1
 Specifies Cut Through disable status before the administrative stream gate control list takes affect , Not applicable to ENETC function.
 
struct netc_tb_sgi_sgise_t

Data Fields

uint32_t operSgclEID
 Operational Stream Gate Control List Entry ID.
 
uint32_t configChangeTime [2]
 Configuration Change Time.
 
uint32_t operBaseTime [2]
 Operational Base Time.
 
uint32_t operCycleTimeExt
 Oper Cycle Time Extension.
 
uint32_t oex: 1
 Octets Exceeded Flag.
 
uint32_t irx: 1
 Invalid Receive Flag.
 
netc_tb_sgi_state_t state: 3
 Current Gate Instance State.
 
struct netc_tb_sgi_req_data_t
struct netc_tb_sgi_rsp_data_t
struct netc_tb_sgi_data_t
struct netc_tb_sgi_config_t
struct netc_sgcl_gate_entry_t

Data Fields

uint32_t timeInterval
 Time Interval for Gate Entry.
 
uint32_t iom: 24
 Interval Octets Maximum for Gate Entry, specifies the maximum bytes (octets) allowed to pass (open), valid if iomen = 1.
 
uint32_t ipv: 4
 Internal Priority Value for Gate Entry.
 
uint32_t oipv: 1
 Override Internal Priority Value for Gate Entry.
 
uint32_t ctd: 1
 Cut Through Disable for Gate Entry.
 
uint32_t iomen: 1
 Interval Octet Maximum Enabled for Gate Entry, 0b = Don'track count, 1b = Track count.
 
uint32_t gtst: 1
 Gate State for Gate Entry, 0b = Closed; 1b = Open.
 
struct netc_tb_sgcl_cfge_t

Data Fields

uint32_t cycleTime
 Cycle Time.
 
uint8_t listLength
 List Length.
 
uint16_t extOipv: 1
 Extension (means the stream gate control list ends and before cycleTime restarts) Override Internal Priority Value.
 
uint16_t extIpv: 4
 List Extension Internal Priority Value, valid if extOipv = 1.
 
uint16_t extCtd: 1
 Extension Cut Through Disabled, 0b = No action, 1b = Disabled.
 
uint16_t extGtst: 1
 Extension Gate State, 0b = closed, 1b = Open.
 
struct netc_tb_sgcl_sgclse_t

Data Fields

uint8_t refCount
 Reference Count, 1 indicates that the gate control list is an administrative or an operational gate control list in a stream gate instance.
 
struct netc_tb_sgcl_req_data_t
struct netc_tb_sgcl_rsp_data_t
struct netc_tb_sgcl_data_t
struct netc_tb_sgcl_gcl_t

Data Fields

uint16_t extOipv: 1
 Extension (means the stream gate control list ends and before cycleTime restarts) Override Internal Priority Value.
 
uint16_t extIpv: 4
 List Extension Internal Priority Value, valid if extOipv = 1.
 
uint16_t extCtd: 1
 Extension Cut Through Disabled, 0b = No action, 1b = Disabled.
 
uint16_t extGtst: 1
 Extension Gate State, 0b = closed, 1b = Open.
 
uint32_t cycleTime
 Cycle Time.
 
uint32_t numEntries
 Control List entry numbers.
 
netc_sgcl_gate_entry_tgcList
 Pointer to stream gate control list array.
 
struct netc_tb_fm_cfge_t

Data Fields

netc_tb_fm_layer2_act_t l2Act: 1
 Layer 2 Actions.
 
netc_tb_fm_mac_header_act_t macHdrAct: 3
 Layer 2 Header MAC Actions.
 
netc_tb_fm_vlan_header_act_t vlanHdrAct: 2
 Layer 2 VLAN Actions.
 
netc_tb_fm_outer_vid_act_t outerVidAct: 2
 Outer VID Actions.
 
netc_tb_fm_sqt_act_t sqtAct: 3
 Sequence Tag Action, Not applicable for ingress frame modifications.
 
uint16_t smacPort: 5
 Source MAC Address Register Port, valid if macHdrAct=010b,011b,100b.
 
uint8_t dmac [6]
 Destination MAC Address, valid if macHdrAct = 011b,101b.
 
uint32_t outerVlanID: 12
 Outer VLAN VID, valid if outerVidAct = 01b.
 
uint32_t outerVlanPcp: 3
 Outer VLAN PCP, valid if outerPcpAct = 01b.
 
uint32_t outerVlanDei: 1
 Outer VLAN DEI, valid if outerDeiAct = 01b.
 
netc_tb_fm_outer_tpid_act_t outerTpidAct: 3
 Outer TPID action.
 
netc_tb_fm_outer_pcp_act_t outerPcpAct: 3
 Outer PCP action.
 
netc_tb_fm_outer_dei_act_t outerDeiAct: 2
 Outer DEI action.
 
netc_tb_fm_payload_act_t pldAct: 3
 Payload Actions, Not applicable for ingress frame modifications.
 
uint8_t pldOffset
 Payload Offset, valid if outerPldAct = 010b.
 
uint16_t fmdBytes
 Frame Modification Bytes, valid if outerPldAct = 001b,010b or l2Act = 1b.
 
uint32_t fmdEID
 Frame Modification Data Entry ID, valid if outerPldAct = 001b,010b or l2Act = 1b. More...
 

Field Documentation

uint32_t netc_tb_fm_cfge_t::fmdEID

0xFFFF is null pointer

struct netc_tb_fm_req_data_t
struct netc_tb_fm_rsp_data_t
struct netc_tb_fm_data_t
struct netc_tb_fm_config_t
struct netc_tb_fmd_req_data_t

Data Fields

uint8_t cfge []
 Configuration Element Data size is variable.
 
struct netc_tb_fmd_rsp_data_t

Data Fields

uint8_t cfge []
 Configuration Element Data size is variable.
 
struct netc_tb_fmd_data_t
struct netc_tb_fmd_update_config_t

Data Fields

uint32_t res
 Hold for request->commonHeader.
 
uint8_t cfge []
 Configuration Element Data size is variable.
 
struct netc_tb_fmd_query_buffer_t

Data Fields

uint32_t entryID
 EntryID of the queried entry.
 
uint8_t cfge []
 Configuration Element Data size is variable.
 
struct netc_tb_vf_keye_t
struct netc_tb_vf_cfge_t

Data Fields

uint32_t portMembership: 24
 Port Membership Bitmap.
 
uint32_t stgID: 4
 Spanning Tree Group Member ID.
 
uint32_t fid: 12
 Filtering ID.
 
uint32_t mlo: 3
 MAC Learning Options.
 
uint32_t mfo: 2
 MAC Forwarding Options.
 
uint32_t ipmfe: 1
 IP Multicast Filtering Enable.
 
uint32_t ipmfle: 1
 IP Multicast Flooding Enable.
 
uint32_t etaPortBitmap: 24
 Egress Treatment Applicability Port Bitmap for the secondary Egress Treatment group.
 
uint32_t baseETEID
 Base Egress Treatment Entry ID for the secondary Egress Treatment group.
 
struct netc_tb_vf_search_criteria_t

Data Fields

uint32_t resumeEntryId
 Resume Entry ID, when starting a search, pass the NULL Entry ID. More...
 

Field Documentation

uint32_t netc_tb_vf_search_criteria_t::resumeEntryId
struct netc_tb_vf_req_data_t

Data Fields

netc_tb_vf_cfge_t cfge
 Present only for update or add commands.
 
netc_tb_vf_search_criteria_t sCriteria
 Active when access method is kNETC_Search.
 
struct netc_tb_vf_rsp_data_t

Data Fields

uint32_t status
 Present only for query command with search access method.
 
uint32_t entryID
 Present only for query command.
 
netc_tb_vf_keye_t keye
 Present only for query command.
 
netc_tb_vf_cfge_t cfge
 Present only for query command.
 
struct netc_tb_vf_data_t
struct netc_tb_vf_config_t
struct netc_tb_fdb_cfge_t

Data Fields

uint32_t portBitmap: 24
 Forwarding destination Port Bitmap and ET applicability port bitmap when oETEID = 10b.
 
netc_tb_fdb_oeteid_mode_t oETEID: 2
 Override ET_EID option.
 
uint32_t ePort: 5
 Egress Ports, active when oETEid = 01b or ctd = 01b.
 
uint32_t iMirE: 1
 Ingress Mirroring Enable.
 
netc_tb_fdb_ctd_mode_t ctd: 2
 Cut-Through Disable.
 
uint32_t dynamic: 1
 Static or Dynamic Entry, 0b = Static entry, 1b = Dynamic entry.
 
uint32_t timeCapE: 1
 Timestamp Capture Enable when set.
 
uint32_t etEID
 Base egress treatment table entry id for primary Egress Treatment group, is valid if the oETEID field is set to value other than kNETC_FDBNoEPP. More...
 

Field Documentation

uint32_t netc_tb_fdb_cfge_t::etEID

0xFFFFFFFF is NULL.

struct netc_tb_fdb_acte_t

Data Fields

uint8_t actCnt: 7
 Activity Counter.
 
uint8_t actFlag: 1
 Activity Flag.
 
struct netc_tb_fdb_search_criteria_t

Data Fields

uint32_t resumeEntryId
 Resume Entry ID, pass the NULL Entry ID when starting a search.
 
netc_tb_fdb_keye_t keye
 Key Element data which used to match against the table entries.
 
netc_tb_fdb_cfge_t cfge
 Configuration Element data which used to match against the table entries.
 
netc_tb_fdb_acte_t acte
 Activity Element data which used to match against the table entries.
 
netc_tb_fdb_sc_keye_mc_t keyeMc: 2
 Key Element data match criteria.
 
netc_tb_fdb_sc_cfge_mc_t cfgeMc: 3
 Configuration Element data match criteria.
 
netc_tb_fdb_sc_acte_mc_t acteMc: 1
 Activity Element data match criteria.
 
struct netc_tb_fdb_req_data_t

Data Fields

netc_tb_common_header_t commonHeader
 Define update actions (use netc_tb_fdb_update_action_t) and query actions.
 
netc_tb_fdb_cfge_t cfge
 Present only for commands which perform an update or add.
 
uint32_t entryID
 Active when access method is kNETC_EntryIDMatch.
 
netc_tb_fdb_keye_t keye
 Active when access method is kNETC_ExactKeyMatch.
 
netc_tb_fdb_search_criteria_t sCriteria
 Active when access method is kNETC_Search.
 
struct netc_tb_fdb_rsp_data_t

Data Fields

uint32_t status
 RESUME_ENTRY_ID, valid only in responses for commands which use the Search Access Method.
 
uint32_t entryID
 Present only for query command.
 
netc_tb_fdb_keye_t keye
 Present only for query command.
 
netc_tb_fdb_cfge_t cfge
 Present only for query command.
 
netc_tb_fdb_acte_t acte
 Present only for query command.
 
struct netc_tb_fdb_data_t
struct netc_tb_fdb_config_t
struct netc_tb_l2mcf_keye_t

Data Fields

netc_tb_l2mcf_key_type_t keyType: 4
 Key Type.
 
uint32_t fid: 12
 Filtering ID.
 
uint32_t ipv4DestAddr
 IPv4 Destination Address.
 
uint32_t ipv4SrcAddr
 IPv4 Source Address.
 
struct netc_tb_l2mcf_search_criteria_t

Data Fields

uint32_t resumeEntryId
 Resume Entry ID, pass the NULL Entry ID when starting a search.
 
netc_tb_l2mcf_keye_t keye
 Key Element data which used to match against the table entries.
 
netc_tb_l2mcf_cfge_t cfge
 Configuration Element data which used to match against the table entries.
 
netc_tb_l2mcf_acte_t acte
 Activity Element data which used to match against the table entries.
 
etc_tb_l2mcf_sc_keye_mc_t keyeMc: 1
 Key Element data match criteria.
 
etc_tb_l2mcf_sc_cfge_mc_t cfgeMc: 3
 Configuration Element data match criteria.
 
etc_tb_l2mcf_sc_acte_mc_t acteMc: 1
 Activity Element data match criteria.
 
struct netc_tb_l2mcf_req_data_t
struct netc_tb_l2mcf_rsp_data_t
struct netc_tb_l2mcf_data_t
struct netc_tb_l2mcf_config_t
struct netc_tb_iseqg_cfge_t

Data Fields

netc_tb_iseqg_sqtag_t sqTag: 3
 Sequence Tag Type. More...
 
uint8_t __pad0__: 5
 Reserved. More...
 

Field Documentation

netc_tb_iseqg_sqtag_t netc_tb_iseqg_cfge_t::sqTag
uint8_t netc_tb_iseqg_cfge_t::__pad0__
struct netc_tb_iseqg_sgse_t

Data Fields

uint16_t sqgNum
 Sequence Generation Number.
 
struct netc_tb_iseqg_req_data_t
struct netc_tb_iseqg_rsp_data_t
struct netc_tb_iseqg_data_t
struct netc_tb_iseqg_config_t
struct netc_tb_eseqr_cfge_t

Data Fields

netc_tb_eseqr_sqtag_t sqTag: 3
 Sequence Tag, specify the expected sequence tag type in the frame.
 
uint32_t sqrTnsq: 1
 Sequence Recovery Take No Sequence.
 
uint32_t sqrAlg: 1
 Sequence Recovery Algorithm, 0b = Vector algorithm, 1b = Match algorithm.
 
uint32_t sqrType: 1
 Sequence Recovery Function type, 0b = Sequence recovery function, 1b = Individual recovery function.
 
uint32_t sqrHl: 7
 Sequence Recovery History Length, valid if sqrAlg = 0b.
 
uint32_t sqrFwl: 12
 Sequence Recovery Future Window Length, valid if sqrAlg = 0b.
 
uint32_t sqrTp: 12
 Sequence Timeout Period, the unit is 1.048576 milliseconds.
 
struct netc_tb_eseqr_stse_t

Data Fields

uint32_t inOrderPackets [2]
 In Order Packets.
 
uint32_t outOfOrderPackets [2]
 Out of Order Packets.
 
uint32_t roguePackets [2]
 Rogue Packets.
 
uint32_t duplicatePackets [2]
 Duplicate Packets.
 
uint32_t lostPackets [2]
 Lost Packets.
 
uint32_t taglessPackets [2]
 Tag-Less Packets.
 
uint32_t esqrResetCounts
 Sequence Recovery Resets.
 
struct netc_tb_eseqr_srse_t

Data Fields

uint32_t sqrNum: 16
 Sequence Recovery Number.
 
uint32_t takeAny: 1
 Take Any.
 
uint32_t lce: 1
 Lost Count Enable.
 
uint32_t sqrTs: 12
 Sequence Recovery Timestamp.
 
uint32_t sqrHistory [4]
 Recovery History bit vector, each bit corresponding to sequence numbers, bit 1 means a packet with that sequence number has been previously received.
 
struct netc_tb_eseqr_req_data_t
struct netc_tb_eseqr_rsp_data_t
struct netc_tb_eseqr_data_t
struct netc_tb_eseqr_config_t
struct netc_tgs_gate_entry_t

Data Fields

uint32_t interval
 Entry Time Interval.
 
uint32_t tcGateState: 8
 Traffic Class Gate States for Gate Entry, 8 bits for 8 Traffic Class , 0b means Gate closed, 1b means Gate open.
 
netc_tb_tgs_gate_type_t operType: 4
 Gate operation type ( IEEE 802.1Q-2018) field for gate control list entry i.
 
uint32_t gate
 Entry Gate Mask.
 
struct netc_tb_tgs_cfge_t

Data Fields

uint64_t adminBaseTime
 Administrative Base Time.
 
uint32_t adminCycleTime
 Administrative Cycle Time.
 
uint32_t adminCycleTimeExt
 Administrative Cycle Time Extension.
 
uint32_t adminControlListLength
 Administrative Control List Length.
 
netc_tgs_gate_entry_t adminGcl []
 Administrative Gate control list.
 
struct netc_tb_tgs_olse_t

Data Fields

uint64_t configChangeTime
 The time at which this operational gate control list became active.
 
uint64_t configChangeError
 Count of error configuration changes.
 
uint64_t operBaseTime
 Operational Base Time.
 
uint32_t operCycleTime
 Operational Cycle Time.
 
uint32_t operCycleTimeExt
 Operational Cycle Time Extension.
 
uint32_t operControlListLength
 Operational Control List Length.
 
netc_tgs_gate_entry_t operGcl []
 Operational Gate control list.
 
struct netc_tb_tgs_req_data_t

Data Fields

netc_tb_tgs_cfge_t cfge
 Present only for commands which perform a update.
 
struct netc_tb_tgs_rsp_data_t

Data Fields

uint32_t entryID
 Present only for commands which perform a query.
 
netc_tb_tgs_cfge_t cfge
 Present only for commands which perform a query.
 
netc_tb_tgs_olse_t olse
 Present only for commands which perform a query.
 
struct netc_tb_tgs_data_t
struct netc_tb_tgs_gcl_t

Data Fields

uint64_t baseTime
 Base Time.
 
uint32_t cycleTime
 Cycle Time.
 
uint32_t extTime
 Cycle Time Extension.
 
uint32_t numEntries
 Control List entry numbers.
 
netc_tgs_gate_entry_tgcList
 Pointer to time gate control list array.
 
struct netc_tb_et_cfge_t

Data Fields

netc_tb_et_efm_mode_t efmMode: 2
 Egress Frame Modification mode.
 
netc_tb_et_esq_act_t esqa: 2
 Egress Sequence Actions.
 
netc_tb_et_ec_act_t eca: 2
 Egress Counter Action.
 
uint8_t __pad1__: 1
 Reserve for data align.
 
uint8_t efmLenChange: 7
 Egress Frame Modification Length Change, specified in units of bytes using a 2's complement notation.
 
uint16_t efmDataLen: 11
 Egress Frame Modification Data Length.
 
uint32_t efmEID
 Egress Frame Modification Entry Id.
 
uint32_t ecEID
 Egress Count Table Entry ID.
 
uint32_t esqaTgtEID
 Egress Sequence Actions Target Entry ID, active when esqa = 10b.
 
struct netc_tb_et_req_data_t
struct netc_tb_et_rsp_data_t
struct netc_tb_et_data_t
struct netc_tb_et_config_t
struct netc_tb_etmcq_cfge_t

Data Fields

netc_hw_etm_class_queue_idx_t cq2cgMap: 4
 Class Queue to Congestion Group Mapping.
 
struct netc_tb_etmcq_stse_t

Data Fields

uint32_t rejByteCnt [2]
 Reject Byte Count.
 
uint32_t rejFrameCnt [2]
 Reject Frame Count.
 
uint32_t deqByteCnt [2]
 Dequeue Byte Count.
 
uint32_t deqFrameCnt [2]
 Dequeue Frame Count.
 
uint32_t dropByteCnt [2]
 Dropped Frames, Memory Lost.
 
uint32_t dropFrameCnt [2]
 Dropped Frames, Memory Recovered.
 
uint32_t frmCnt
 Frame Count.
 
struct netc_tb_etmcq_req_data_t
struct netc_tb_etmcq_rsp_data_t
struct netc_tb_etmcq_data_t
struct netc_tb_etmcq_config_t

Data Fields

uint32_t entryID
 Need use NETC_TB_ETM_CQ_ENTRY_ID macro to create entry ID.
 
struct netc_tb_etmcs_cfge_t

Data Fields

netc_tb_etmcs_ca_assg_t cqAssg: 4
 Class Queue Assignment, input 0 to 7 are weighted fair whereby input 8 to 15 are strict priority.
 
uint32_t oal: 11
 Overead accounting length.
 
struct {
   uint8_t   xCode: 3
 Weight code x value.
 
   uint8_t   yCode: 5
 Weight code y value.
 
wbfsWeight [8]
 Weight for scheduler input 0 ~ 7, effective weight is: (2^x)/(1-(y/64))
 
struct netc_tb_etmcs_req_data_t

Data Fields

netc_tb_etmcs_entry_id_t entryID
 One class scheduler entry per port.
 
struct netc_tb_etmcs_rsp_data_t
struct netc_tb_etmcs_data_t
struct netc_tb_etmcs_config_t

Data Fields

netc_tb_etmcs_entry_id_t entryID
 One class scheduler entry per port.
 
struct netc_tb_etmcg_cfge_t

Data Fields

uint16_t tdDr0En: 1
 Tail drop enable for DR0 Frame.
 
uint16_t tdDr1En: 1
 Tail drop enable for DR1 Frame.
 
uint16_t tdDr2En: 1
 Tail drop enable for DR2 Frame.
 
uint16_t tdDr3En: 1
 Tail drop enable for DR3 Frame.
 
uint16_t oal: 12
 Overhead accounting length, 2's complement value (range -2048 to +2047)
 
struct {
   uint16_t   tn: 5
 TA.
 
   uint16_t   ta: 8
 Tn.
 
tdDRThresh [4]
 Tail Drop Threshold (TA * 2^Tn) for DR0 ~ DR3 Frames, valid if tdDrnEn = 1b.
 
struct netc_tb_etmcg_stse_t

Data Fields

uint32_t byteCount [2]
 Number of bytes currently in use in all class queues that are members of this group. More...
 

Field Documentation

uint32_t netc_tb_etmcg_stse_t::byteCount[2]
struct netc_tb_etmcg_req_data_t
struct netc_tb_etmcg_rsp_data_t
struct netc_tb_etmcg_data_t
struct netc_tb_etmcg_config_t

Data Fields

uint32_t entryID
 Need use NETC_TB_ETM_CG_ENTRY_ID macro to create entry ID.
 
struct netc_tb_ec_stse_t

Data Fields

uint32_t enqFrmCnt [2]
 Enqueued Frame Count.
 
uint32_t rejFrmCnt [2]
 Rejected Frame Count.
 
struct netc_tb_ec_req_data_t
struct netc_tb_ec_rsp_data_t
struct netc_tb_ec_data_t
struct netc_tb_bp_cfge_t

Data Fields

bool sbpEn: 1
 Shared Buffer Pool Enable, set true measn a shared buffer pool is associated with this buffer pool.
 
netc_tb_bp_fc_cfg_t gcCfg: 2
 Flow Control (FC) Configuration.
 
uint8_t pfcVector
 Priority Flow Control (PFC) Vector, not support in NETC 3.0 and 3.1 version.
 
uint16_t maxThresh: 12
 Maximum Threshold, value 0 means disable maximum threshold checking, use NETC_TB_BP_THRESH macro to set this value.
 
uint16_t fcOnThresh: 12
 Flow Control On Threshold, If the buffer pool usage crosses this threshold, and if fcOnThresh is greater than fcOffThresh, the flow control state of the buffer pool is set to 1, use NETC_TB_BP_THRESH macro to set this value. More...
 
uint16_t fcOffThresh: 12
 Flow Control Off Threshold, If buffer pool usage drops to this threshold or below, the flow control state of the buffer pool is set to 0, , use NETC_TB_BP_THRESH macro to set this value.
 
uint32_t sbpThresh: 12
 Shared Buffer Pool Threshold, use NETC_TB_BP_THRESH macro to set this value.
 
uint32_t sbpEid
 Shared Buffer Pool Entry ID, valid if sbpEn is true.
 
uint32_t fcPorts
 Flow Control Port bitmap, indicates which ports are to be flow controlled for this buffer pool.
 

Field Documentation

uint16_t netc_tb_bp_cfge_t::fcOnThresh
struct netc_tb_bp_bpse_t

Data Fields

uint32_t amountUsed
 Amount Used, number of internal memory words (average of 20 bytes each) currently in use in this buffer pool. More...
 
uint32_t amountUsedHWM
 Amount Used High Watermark, value sticks at the highest AMOUNT_USED seen since the last watermark reset.
 
uint32_t fcState: 1
 Flow Control (FC) State, ON (1) or OFF (0)
 
uint32_t bpd: 1
 Buffer Pool Disabled, 1 means the buffer pool has been disabled due to an uncorrectable ECC error.
 

Field Documentation

uint32_t netc_tb_bp_bpse_t::amountUsed
struct netc_tb_bp_req_data_t
struct netc_tb_bp_rsp_data_t
struct netc_tb_bp_data_t
struct netc_tb_bp_config_t

Data Fields

uint32_t entryID
 Buffer pool ID, range in 0 ~ (SWT_GetBPTableEntryNum() - 1)
 
netc_tb_bp_cfge_t cfge
 Buffer Pool table config element.
 
struct netc_tb_sbp_cfge_t

Data Fields

uint32_t maxThresh: 12
 Maximum Threshold, If shared buffer pool usage is greater than or equal to this threshold, use NETC_TB_BP_THRESH macro to set this value.
 
uint16_t fcOnThresh: 12
 Flow Control On Threshold, If the shared buffer pool usage crosses this threshold, and if fcOnThresh is greater than fcOffThresh, the flow control state of the buffer pool is set to 1, use NETC_TB_BP_THRESH macro to set this value. More...
 
uint16_t fcOffThresh: 12
 Flow Control Off Threshold, If shared buffer pool usage drops to this threshold or below, the flow control state of the buffer pool is set to 0, use NETC_TB_BP_THRESH macro to set this value.
 

Field Documentation

uint16_t netc_tb_sbp_cfge_t::fcOnThresh
struct netc_tb_sbp_sbpse_t

Data Fields

uint32_t amountUsed
 Amount Used, number of internal memory words (average of 20 bytes each) currently in use in this buffer pool. More...
 
uint32_t amountUsedHWM
 Amount Used High Watermark, value sticks at the highest AMOUNT_USED seen since the last watermark reset.
 
uint32_t fcState: 1
 Flow Control (FC) State, ON (1) or OFF (0)
 

Field Documentation

uint32_t netc_tb_sbp_sbpse_t::amountUsed
struct netc_tb_sbp_req_data_t
struct netc_tb_sbp_rsp_data_t
struct netc_tb_sbp_data_t
struct netc_tb_sbp_config_t

Data Fields

uint32_t entryID
 Shared Buffer pool ID, range in 0 ~ (SWT_GetSBPTableEntryNum() - 1)
 
netc_tb_sbp_cfge_t cfge
 Shared Buffer Pool table config element.
 
union netc_tb_data_buffer_t

Data Fields

netc_tb_tgs_data_t tgs
 Time Gate Scheduling table data buffer.
 
netc_tb_rp_data_t rp
 Rate Policer table data buffer.
 
netc_tb_ipf_data_t ipf
 Ingress Port filter table data buffer.
 
netc_tb_fdb_data_t fdb
 FDB table data buffer.
 
netc_tb_l2mcf_data_t l2mcf
 L2 IPV4 Multicast Filter table data buffer.
 
netc_tb_vf_data_t vf
 VLAN Filter table data buffer.
 
netc_tb_isi_data_t isi
 Ingress Stream Identification table data buffer.
 
netc_tb_is_data_t is
 Ingress Stream table data buffer.
 
netc_tb_isf_data_t isf
 Ingress Stream Filter table data buffer.
 
netc_tb_isc_data_t isc
 Ingress Stream Count table data buffer.
 
netc_tb_sgi_data_t sgi
 Stream Gate Instance table data buffer.
 
netc_tb_sgcl_data_t sgcl
 Stream Gate Control List table data buffer.
 
netc_tb_fm_data_t fm
 Frame Modification table data buffer.
 
netc_tb_fmd_data_t fmd
 Frame Modification Data table data buffer.
 
netc_tb_et_data_t et
 Egress Treatment table data buffer.
 
netc_tb_ec_data_t ec
 Egress Count table data buffer.
 
netc_tb_etmcq_data_t cq
 ETM Class Queue table data buffer.
 
netc_tb_etmcs_data_t cs
 ETM Class Scheduler table data buffer.
 
netc_tb_etmcg_data_t cg
 ETM Class Group table data buffer.
 
netc_tb_iseqg_data_t iseqg
 Ingress Sequence Generation table data buffer.
 
netc_tb_eseqr_data_t eseqr
 Egress Sequence Recovery table data buffer.
 
netc_tb_bp_data_t bp
 Buffer Pool table data buffer.
 
netc_tb_sbp_data_t sbp
 Shared Buffer Pool table data buffer.
 
struct netc_cbdr_hw_t

Data Fields

__IO uint32_t CBDRMR
 Command BDR mode register. More...
 
__I uint32_t CBDRSR
 Command BDR status register. More...
 
__IO uint32_t CBDRBAR0
 Command BDR base address register 0.
 
__IO uint32_t CBDRBAR1
 Command BDR base address register 1.
 
__IO uint32_t CBDRPIR
 Command BDR producer index register.
 
__IO uint32_t CBDRCIR
 Command BDR consumer index register.
 
__IO uint32_t CBDRLENR
 Command BDR length register.
 

Field Documentation

__IO uint32_t netc_cbdr_hw_t::CBDRMR
__I uint32_t netc_cbdr_hw_t::CBDRSR
struct netc_cbdr_handle_t

Data Fields

netc_cbdr_hw_tbase
 Point to hardware command bd ring register group. More...
 
netc_cmd_bdr_tcmdr
 Point to command BD ring handle. More...
 
netc_tb_data_buffer_tbuffer
 Point to table common data buffer. More...
 

Field Documentation

netc_cbdr_hw_t* netc_cbdr_handle_t::base
netc_cmd_bdr_t* netc_cbdr_handle_t::cmdr
netc_tb_data_buffer_t* netc_cbdr_handle_t::buffer

Macro Definition Documentation

#define NETC_FD_EID_ENCODE_OPTION_0 (   entryId)    ((uint32_t)(entryId)&0xFFFU)
Note
sqta should be netc_fm_sqt_act_t type, vuda should be netc_fm_vlan_ud_act_t type and vara should be netc_fm_vlan_ar_act_t type.

Typedef Documentation

Note
For use kNETC_ReomveTag action, If R-TAG/draft 2.0 R-TAG/HSR tag not present, then a misconfiguration event will be generated and handled according to the port's PFMCR register.

Enumeration Type Documentation

Enumerator
kNETC_TGSTable 

Time Gate Scheduling table index.

kNETC_RPTable 

Rate Policer table index.

kNETC_IPFTable 

Ingress Port filter table index.

kNETC_FDBTable 

FDB table index.

kNETC_L2MCFTable 

L2 IPV4 Multicast Filter table index.

kNETC_VFTable 

VLAN Filter table index.

kNETC_ECQTable 

ETM Class Queue table index.

kNETC_ECSTable 

ETM Class Scheduler table index.

kNETC_ISITable 

Ingress Stream Identification table index.

kNETC_ISTable 

Ingress Stream table index.

kNETC_ISFTable 

Ingress Stream Filter table index.

kNETC_ETTable 

Egress Treatment table index.

kNETC_ISGTable 

Ingress Sequence Generation table index.

kNETC_ESRTable 

Egress Sequence Recovery table index.

kNETC_SGITable 

Stream Gate Instance table index.

kNETC_SGCLTable 

Stream Gate Control List table index.

kNETC_ISCTable 

Ingress Stream Count table index.

kNETC_ECTable 

Egress Count table index.

kNETC_FMTable 

Frame Modification table index.

kNETC_BPTable 

Buffer Pool table index.

kNETC_SBPTable 

Shared Buffer Pool table index.

kNETC_ECGTable 

ETM Class Group table index.

kNETC_FMDTable 

Frame Modification Data table index.

Enumerator
kNETC_DeleteEntry 

Delete operation.

kNETC_UpdateEntry 

Update operation.

kNETC_QueryEntry 

Query operation.

kNETC_QueryAndDeleteEntry 

Query operation followed by a delete operation.

kNETC_QueryAndUpdateEntry 

Query operation followed by a update operation.

kNETC_AddEntry 

Add operation.

kNETC_AddOrUpdateEntry 

If the entry exists, is update operation, if not exist, is the Add operation.

kNETC_AddAndQueryEntry 

Add operation followed by a query operation.

kNETC_AddQueryAndUpdateEntry 

Add operation followed by a query operation, Then, if the entry existed prior to the Add operation of this command, the Update operation will be performed.

Enumerator
kNETC_EntryIDMatch 

Entry ID Match.

kNETC_ExactKeyMatch 

Exact Match Key Element Match.

kNETC_Search 

Search with search criteria.

kNETC_TernaryKeyMatch 

Ternary Match Key Element Match.

Enumerator
kNETC_NtmpV1_0 

NTMP Version 1.0.

kNETC_NtmpV2_0 

NTMP Version 2.0.

Enumerator
kNETC_FormatError 

Format error : 1.

Illegal class or command. 2. Invalid SF bit setting. 3. LENGTH is zero for long format. 4. LENGTH is too small for buffer size.

kNETC_SizeError 

Size error : 1.

Invalid table index, out of range. 2. Table overflow, no additional entries available.

kNETC_AccessError 

Access violation error, the entity is not allowed to perform the task requested.

kNETC_ClassError 

Class specific error.

kNETC_IntegrityError 

Integrity error, the command did not execute due to a data integrity error (ECC on internal memory or AXI read/write error)

kNETC_InvTableID 

Invalid table ID.

kNETC_InvAccMethod 

Invalid Access method.

kNETC_TableIdxOutRange 

Table index out of range.

kNETC_DBNotEnough 

Request data buffer size or response data buffer size is not sufficient.

kNETC_InvCmd 

Invalid command.

kNETC_ReqDBError 

Request Data buffer error.

kNETC_MultiBitError 

Multi-bit ECC or parity error observed during command processing.

kNETC_HashEntryLimit 

Exceeded hash entry limit.

kNETC_HashChainLimit 

Exceeded maximum hash collision chain limit and the CAM if present is full.

kNETC_InvHWGenEntryID 

Invalid ENTRY_ID for ENTRY_ID generated by hardware.

kNETC_SrchResDBNotEnough 

Search command filled the response data buffer before completing the command.

kNETC_CmdIdxTableWithITM 

Command for index table before OSR[ITM_STATE]=0.

kNETC_InvQueryAction 

Invalid Query action.

kNETC_InvTableAccPrivilege 

Invalid table access privilege.

kNETC_ReadSysBusErr 

System Bus Read Error.

kNETC_WriteSysBusErr 

System Bus Write Error.

kNETC_ClientErr 

Client encountered a fault.

kNETC_TGSCmdIssue 

Command issued when time gating function is disabled for the port.

kNETC_TGSUpdateExistList 

Update action attempted on an existing admin gate control list.

(should delete admin gate control list first before creating a new admin list)

kNETC_TGSUpdateOverLength 

Update action attempted exceeds TGSTCAPR[MAX_GCL_LEN].

kNETC_TGSUpdateOverSize 

Update action attempted exceeds TGSTCAPR[NUM_WORDS].

kNETC_TGSEntryNotEnough 

Insufficient resources to perform the requested operation (not enough free time gate list entries)

kNETC_TGSUpdateNSList 

Update action attempted with ADMIN_CYCLE_TIME, ADMIN_TIME_INTERVAL_GE_i or truncated ADMIN_TIME_INTERVAL_GE_n due ADMIN_CYCLE_TIME specified is not sufficient to transmit 64 byte of frame data + header overhead.

kNETC_TGSUpdateEarlierStartTime 

Update action attempted with ADMIN_BASE_TIME specified s more than one second in the past from tcs advance time.

kNETC_TGSUpdateOverflowCycle 

Update action attempted with ADMIN_CYCLE_TIME + ADMIN_CYCLE_TIME_EXT is greater than 2^32-1.

kNETC_TGSQueryBeforeListActive 

Query action issued when config change occurred.

Retry query.

kNETC_TGSUpdateInvGateValue 

Update action attempted with ADMIN_HR_CB_GE_i set to an invalid value.

kNETC_RPSDUTypeOutRange 

SDU_TYPE specified in entry CFGE_DATA is out of range.

kNETC_IPFInvHR 

HR value not valid.

Only checked if command issued from the Switch and FLTFA=0x2 or FLTFA=0x3

kNETC_IPFEntryNotFit 

Entry being added does not fit in table.

kNETC_IPFWithoutSTSE 

CFGE_DATA update without STSE_DATA update.

kNETC_IPFInvRPP 

RPR set to a reserved value.

Only checked if FLTA=0x2.

kNETC_IPFFLTATGTOutRange 

FLTA_TGT is outside valid range and not NULL.

Only checked if FLTA>0x0

kNETC_IPFInvSwtFLTA 

FLTA=0x3 when command issued from the Switch.

kNETC_IPFInvEnetcFLTA 

FLTFA>0x1 when command issued from an ENETC PF.

kNETC_FDBReachPortLimit 

Failed to add or update and entry because the Port BPCR[DYN_LIMIT] has been reached.

kNETC_FDBReachSwtLimit 

Failed to add entry because the Switch FDBHTMCR[DYN_LIMIT] has been reached.

kNETC_FDBInvEPORT 

EPORT value not valid.

Only checked if (OETEID=0x1 OR CTD=0x1)

kNETC_FDBETEIDOutRange 

ET_EID is out of range and not NULL.

Only checked if OETEID>0x0

kNETC_FDBParityErr 

Parity error encountered when adding guaranteed entry.

kNETC_L2MCFInvEPORT 

EPORT value not valid.

Only checked if (OETEID=0x1 OR CTD=0x1)

kNETC_L2MCFETEIDOutRange 

ET_EID is not NULL or within the valid range.

Only checked if OETEID>0x0.

kNETC_L2MCFInvKEYTYPE 

KEY_TYPE value not valid.

kNETC_VFBASEETEIDOutRange 

BASE_ET_EID is out of range or MLO is not valid.

kNETC_ECQCQ2CGMAPOutRange 

CQ2CG_MAP value out-of-range in update command.

kNETC_ISIPortIDOutRange 

Port ID specified in KEYE_DATA is out of range.

kNETC_ISIInvISEID 

IS_EID in invalid.

kNETC_ISInvOpt 

Option specified in one or more of the following fields is not valid – FA, CTD or ISQA, SDU_TYPE.

kNETC_ISInvID 

One or more of following : 1.

Entry IDs are not in valid range or Entry ID is not Null. 2. Check valid ranges specified for these Entry IDs in Ingress Stream table entry – RP_EID, SGI_EID, ISQ_EID, ET_EID or EPORT. 3. ET_EID is checked if (FA =010b .. 101b) & (OETEID!=0). 4. EPORT is checked if (FA = 010b .. 101b) & (OETEID= 0x1 OR CTD= 0x1). 5. HR is chked if FA = 001b, 100b, or 101b. HR specified cannot be 0x0

kNETC_ISInvFMEID 

FM_EID format or index is out of range : 1.

FM_EID format option type is invalid. 2. FM_EID format is option 1 and the Index is out of range and not Null, or FM_EID format is option 2 and VUDA or SQTA is out of range.

kNETC_ISFInvISEID 

IS_EID in KEYE_DATA is invalid.

kNETC_ISFInvCFGE 

Any of the following in CFGE_DATA is invalid : 1.

One or more of following Entry IDs are not in valid range or Entry ID specified is not Null. Checks are performed for following Entry IDs CFGE DATA – RP_EID, SGI_EID, ISC_EID. 2. SDU_TYPE is invalid

kNETC_ETInvOpt 

Command option specified is invalid or not supported.

ESQA is not 00 or 10 (others are reserved), or ECA > 1 (reserved).

kNETC_ETInvFMEID 

FM_EID format or index is out of range.

Check performed is as follows : 1. EFM_EID format option type is invalid, or EFM_EID format is option 1 and the Index is out of range and not Null, or EFM_EID format is option 2 and VUDA or SQTA is out of range . 2. the Egress Counter Table index EC_EID is out of range. 3. The Egress Sequence Actions Target Entry ID ESQA_TGT_EID is out of range

kNETC_ISGInvQSTAG 

SQ_TAG specified is not valid.

kNETC_SGISGCLEIDOutRange 

SGCL_EID specified in out of range for Add or Update operation.

kNETC_SGIInvSDUTYPE 

SDU_TYPE is specified is invalid for Add or Update operation.

kNETC_SGISGCLEIDNotAlloc 

Either the SGCL_EID specified as admin gate control list in Add or Update operation has not been allocated or SGCL_EID is not the first entry in gate control list or the reference count in SGCL entry is not 0.

kNETC_SGIInvSGCLEID 

SGCL_EID specified for Update operation is in invalid.

kNETC_SGIInvADMINBASETIME 

ADMIN_BASE_TIME specified for Add or Update operation is more than 2^30ns in the past.

kNETC_SGIInvCYCLETIME 

Cumulated time value of CYCLE_TIME in Stream gate Control list plus CYCLE_TIME_EXT specified in Add or Update operation is >=2^30ns or CYCLE_TIME specified is 0.

kNETC_SGCLOverLength 

Number words required for the LIST_LENGTH specified for the Add operation exceeds the number of words allocated for SGCL table.

kNETC_SGCLTimeIntervalZero 

TIME_INTERVAL_GE_N specified in Add operation is 0.

Note that upper 2 bits of TIME_INTERVAL_GE_N are ignored, TIME_INTERVAL_GE_N[29:0] must not be 0.

kNETC_SGCLTimeIntervalOverflow 

Cumulated time value of TIME_INTERVAL_GE_N[29:0] for the gate list specified in Add operation is >= 2^30ns.

kNETC_FMInvEMEID 

FM_EID format is invalid.

kNETC_FMOptOutRange 

Following fields specified are out of range - MAC_HDR_ACT, VLAN_HDR_ACT, SQT_ACT, OUTER_PCP_DEI_ACT, PLD_ACT.

kNETC_FMFMDOutRange 

FMD_EID,FMD_BYTES specified is out of range.

When FMD_EID is not set to Null, valid range is FMD_EID[15:0]*24 + FMD_BYTES <= (FMDITCAPR[NUM_WORDS]*24).

kNETC_BPSBPEIDOutRange 

SBP_EN is 1 and SBP_EID value is out-of-range in update command.

Note
Misconfiguration error if replace or delete action is specified and if VLAN tag is not present in frame.
Enumerator
kNETC_NoUDVlanAction 

No Update/Delete VLAN action.

kNETC_ReplVlanPcpAndDei 

Replace outer VLAN's PCP/DEI based on the port's PPCPDEIMR.

The tag's original VID and TPID are preserved

kNETC_DelVlan 

Delete outer VLAN Tag.

Note
Must be set to 000b for Ingress frame modification, otherwise misconfiguration error..
Enumerator
kNETC_NoSqtAction 

No SQT action.

kNETC_ReomveRTag 

Remove R-TAG/draft 2.0 R-TAG/HSR tag, If R-TAG/HSR tag not present, misconfiguration error.

Note
For ingress frame modificaion with 00b or 01b, use the ingress port to select PCP and DEI from the Bridge port default VLAN register (BPDVR). For egress frame modification with 00b or 01b, use the internal QoS associated with the frame (IPV, DR) to access the QoS to PCP mapping profile (PQOSMR[QVMP] , QOSVLANMPaR0/1/2/3) to set the new PCP value. Use internal DR associated with frame to access the DR to DEI mapping profile (PPCPDEIMR[DRnDEI]) to set the new DEI value.
Enumerator
kNETC_AddCVlanPcpAndDei 

Add outer VLAN with VID and PCP/DEI updated as described above.

TPID=0x8100

kNETC_AddSVlanPcpAndDei 

Add outer VLAN with VID and PCP/DEI updated as described above.

TPID=0x88A8

kNETC_ReplVidOnly 

Replace VLAN with VID.

The tag's original PCP, DEI and TPID are preserved

kNETC_ReplVidPcpAndDei 

Replace VLAN with VID and PCP/DEI updated by port's PPCPDEIMR.

The tag's original TPID is preserved

Note
The FDB/L2 IPv4 Multicast filter table has precedence over any assignment made via the Ingress Stream table. For Mulit port mode, the index to access the Egress Treatment table is computed by adding an offset to the base index of the Egress Treatment group. That offset is derived from the applicability bitmap as follows: starting from the lowest significant bit of the bitmap, the first encountered bit set to 1, corresponds to offset 0, and so on. This continues till the destination port location in the bitmap is reached
Enumerator
kNETC_NoETAccess 

No Egress Treatment table access.

kNETC_SinglePortETAccess 

Only frame sent to a special port (define in ePort) can access a single Egress Treatment table entry, the applicability bitmap specified by FDB/L2MCF/IS ePort field.

kNETC_MulitPortPackedETAccess 

Only frames sent to a special set of ports (ports set to 1 in ePortBitmap) can access the Egress Treatment table, the applicability bitmap = IS ePortBitmap field or FDB/L2MCF portBitmap field.

kNETC_MulitPortAbsETAccess 

Frames sent to all of ports can access the Egress Treatment table, means the applicability bitmap is set with 1 for all ports.

Enumerator
kNETC_IPFCfgEUpdate 

Configuration Element Update.

kNETC_IPFStsEUpdate 

Statistics Element Update.

Enumerator
kNETC_IPFSwtPortMasMask 

Switch port masquerading Mask.

kNETC_IPFEthernetMask 

Ethernet type Mask.

kNETC_IPFOuterVlanMask 

Outer VLAN Mask.

kNETC_IPFInnerVlanMask 

Inner VLAN Mask.

kNETC_IPFSeqTagMask 

Sequence Tag Code Mask.

kNETC_IPFIpHeaderMask 

IP Header Mask.

kNETC_IPFIpVersionMask 

IP Version Mask.

kNETC_IPFIpExtMask 

IPv4 option / IPv6 extension Mask.

kNETC_IPFL4HeaderMask 

L4 Code Mask.

kNETC_IPFWakeOnLanMask 

Wake-on-LAN Magic Packet Mask.

Enumerator
kNETC_IPFNoRtag 

R-TAG/HSR tag is not present.

kNETC_IPFDraftRtag 

802.1CB draft 2.0 R-TAG is present

kNETC_IPFRtag 

802.1CB R-TAG is present

kNETC_IPFHsrTag 

HSR Tag is present.

Enumerator
kNETC_IPFOtherL4 

The L4 Header is considered as other L4 if it is not one of the following L4 Headers.

kNETC_IPFTcp 

TCP header is present.

kNETC_IPFUdp 

UDP header is present.

kNETC_IPFSctp 

SCTP header is present.

Enumerator
kNETC_IPFForwardDiscard 

Frame be discard.

kNETC_IPFForwardPermit 

Frame be permit.

kNETC_IPFRedirectToMgmtPort 

Redirect frame to switch management port without any frame modification, Switch only.

kNETC_IPFCopyToMgmtPort 

Copy frame to switch management port without any frame modification, Switch only.

Enumerator
kNETC_IPFNoAction 

No action.

kNETC_IPFWithRatePolicer 

Rate action with the Rate Policer Entry ID (RP_EID) set to the value configured in the fltaTgt field.

kNETC_IPFWithIngressStream 

Ingress stream identification action where the Ingress Stream Entry ID (IS_EID) is set to the value configured in the fltaTgt field.

kNETC_IPFWithL2Filtering 

Setting a pre L2 filtering SI bitmap (set to the value configured in the fltaTgt) that will be used by the L2 filtering function to determine the final SI bitmap, ENETC only.

Enumerator
kNETC_KCRule0 

Use key construction rule 0 (ISIDKC0CR0)

kNETC_KCRule1 

Use key construction rule 1 (ISIDKC1CR0)

kNETC_KCRule2 

Use key construction rule 2 (ISIDKC2CR0).

Only for SWITCH

kNETC_KCRule3 

Use key construction rule 3 (ISIDKC3CR0).

Only for SWITCH

Enumerator
kNETC_ISNotPerformFRER 

Not perform Frame FRER sequence generation function.

kNETC_ISPerformFRER 

Perform Frame FRER sequence generation function.

Enumerator
kNETC_ISDiscard 

Frame be discard.

kNETC_ISRedirectToMgmtPort 

Frame be Re-direct frame to switch management port, Switch only.

kNETC_ISAllow 

Frame is allow without setting the pre L2 filtering SI bitmap, ENETC only.

kNETC_ISAllowWithSIMap 

Frame is allow with setting the pre L2 filtering SI bitmap to the value configured in the SI_MAP field, ENETC only.

kNETC_ISStreamForward 

Frame is forwarded to the port(s) specified in the EGRESS_PORT_BITMAP field, Switch only.

kNETC_ISBridgeForward 

Frame is do 802.1Q Bridge forwarding (VLAN processing and L2 forwarding), Switch only.

kNETC_ISCopyToMgmtPortAndStream 

Copy frame to switch management port with specified HR and stream forwarding, Switch only.

kNETC_ISCopyToMgmtPortAndBridge 

Copy frame to switch management port with specified HR and Bridge forwarding, Switch only.

Enumerator
kNETC_ISNoCTD 

Do not override cut-through state.

kNETC_ISSinglePortCTD 

Disable cut-through for the outgoing port specified in the cfge ePort field.

kNETC_ISAllPortCTD 

Disable cut-through for all ports specified in cfge portBitmap field.

Enumerator
kNETC_RPCfgEUpdate 

Configuration Element Update.

kNETC_RPFeEUpdate 

Functional Enable Element Update.

kNETC_RPPsEUpdate 

Policer State Element Update Element Update.

kNETC_RPStsEUpdate 

Statistics Element Update.

Enumerator
kNETC_SGIAcfEUpdate 

Admin Configuration Element.

kNETC_SGICfgEUpdate 

Configuration Element Update.

kNETC_SGISgisEUpdate 

Stream Gate Instance State Element Update.

Enumerator
kNETC_GSNotOper 

Gate instance is not operational or Gate instance and lists are not valid.

kNETC_GSUseDefaultParam 

Gate instance is operational but no stream gate control list specified, use default Gate Instance parameters.

kNETC_GSUseDefUntilAdminAct 

Use default Gate Instance parameters until administrative stream gate control list takes effect.

kNETC_GSUseOperUntilAdminAct 

Use Operational stream gate control list until new administrative stream gate control list takes effect.

kNETC_GSUseOperList 

Operational stream gate control list is in effect.

Note
This field must be set to 0 for traffic destined to a pseudo link. This field must be set to 0 for any device with ASIL-B safety requirements.
Enumerator
kNETC_UseL2HeaderAct 

L2 actions are specified in L2 header action fields macHdrAct, vlanHdrAct and sqtAct.

kNETC_UseSpecPlayload 

The entire L2 PDU is replaced with fmdBytes of data specified in fmdEID, not applicable for ingress frame modifications.

Note
Ingress frame modifications only support kNETC_NoAction or kNETC_ReplDmac.
Enumerator
kNETC_NoMacAction 

No Mac header action.

kNETC_ReplSmac 

Replace SMAC with the contents of the port's PMAR0/1 register, The port is specified by smacPort field.

kNETC_ReplSmacAndDmacAct1 

Replace SMAC and DMAC, The content of SMAC is the same as kNETC_ReplaceSMAC, the DMAC is specified by dmac[6] field.

kNETC_ReplSmacAndDmacAct2 

Replace SMAC and DMAC, The content of SMAC is the same as kNETC_ReplaceSMAC, the DMAC is specified by frame's SMAC.

kNETC_ReplDmac 

Replace DMAC with specified dmac[6] field value.

kNETC_SwapDmacAndSmac 

Swap DMAC and SMAC.

Note
For use Delete or Replace action, if no outer VLAN header is present, then a misconfiguration event will be generated and handled according to the port's PFMCR register.
Enumerator
kNETC_NoVlanAction 

No VLAN header action.

kNETC_DelOuterVlan 

Delete outer VLAN header.

kNETC_AddOuterVlan 

Add outer VLAN header (new VLAN data will be inserted in the outer position), the VID, PCP, DEI and TPID values are specified by outerVidAct, outerPcpAct, outerDeiAct and outerTpidAct field.

kNETC_ReplOuterVlan 

Replace outer VLAN header, the VID, PCP, DEI and TPID values are specified by outerVidAct, outerPcpAct, outerDeiAct and outerTpidAct field.

Note
For use kNETC_UseFrameVID action, if no outer VLAN header is present, then a misconfiguration event will be generated and handled according to the port's PFMCR register.
Enumerator
kNETC_UseFrameVid 

Use the VID from the valid outer VLAN header of the received frame.

kNETC_UseSpecVid 

Use the VID specified in the outerVlanID field.

Note
For use kNETC_UseFrameTpid action, If outer VLAN header not present, then a misconfiguration event will be generated and handled according to the port's PFMCR register.
Enumerator
kNETC_UseFrameTpid 

Use TPID from outer VLAN header.

kNETC_UseStdCVlan 

Set TPID to Standard C-VLAN 0x8100.

kNETC_UseStdSVlan 

Set TPID to Standard S-VLAN 0x88A8.

kNETC_UseCustomCVlan 

Set TPID to Custom C-VLAN as defined by CVLANR1[ETYPE].

kNETC_UseCustomSVlan 

Set TPID to Custom S-VLAN as defined by CVLANR2[ETYPE].

Note
For use kNETC_UseFramePcp/kNETC_UseFramePcpMap action, If outer VLAN header not present, then a misconfiguration event will be generated and handled according to the port's PFMCR register.
Enumerator
kNETC_UseFramePcp 

Use PCP from frame outer VLAN header.

kNETC_UseSpecPcp 

Use the PCP specified in the outerVlanPcp field.

kNETC_UseFramePcpMap 

The PCP is mapping from frame outer VLAN PCP (do mapping according to the PCP to PCP mapping profile which specified in PPCPDEIMR[IPCPMP/EPCPMP])

kNETC_UseQosMap 

The PCP is mapping from internal QoS (IPV, DR) (do mapping according to the QOS to PCP mapping profile which specified in QOSVLANMPaR0/1/2/3), not applicable for ingress frame modifications.

Note
For use kNETC_UseFrameDei action, If outer VLAN header not present, then a misconfiguration event will be generated and handled according to the port's PFMCR register.
Enumerator
kNETC_UseFrameDei 

Use DEI from frame outer VLAN header.

kNETC_UseSpecDei 

Use the DEI specified in the outerVlanDei field.

kNETC_UseDrMap 

The DEI is mapping from internal DR (do mapping according to the DR to DEI mapping profile which specified in PPCPDEIMR[DRnDEI], not applicable for ingress frame modifications.

Note
This field must be set to 0 for traffic destined to a pseudo link. This field must be set to 0 for any device with ASIL-B safety requirements.
Enumerator
kNETC_NoAction 

No Action.

kNETC_ReplAllEthPld 

Remove entire Ethernet payload and insert with fmdBytes of data specified in fmdEID.

kNETC_ReplPldWithOffset 

Replace fmdBytes of raw data in the Ethernet payload starting at pldOffset, data specified in fmdEID.

Enumerator
kNETC_FDBCfgEUpdate 

Configuration Element Update.

kNETC_FDBActEUpdate 

Activity Element Update.

Enumerator
kNETC_FDBNoCTD 

Do not override cut-through state.

kNETC_FDBSinglePortCTD 

Disable cut-through for the outgoing port specified in the cfge ePort field.

kNETC_FDBAllPortCTD 

Disable cut-through for all ports specified in cfge portBitmap field.

Enumerator
kNETC_FDBKeyeMacthAny 

Match any Key Element Criteria.

kNETC_FDBKeyeMacthFID 

Match Key Element FID.

kNETC_FDBKeyeMacthMacMulticast 

Match Key Element MAC Multicast bit (MAC_ADDR most significant byte's least significant bit)

kNETC_FDBKeyeMacthBoth 

Match both FID field and MAC Multicast bit.

Enumerator
kNETC_FDBCfgeMacthAny 

Match any Configuration Element Criteria.

kNETC_FDBCfgeMacthDynamic 

Match Configuration Element dynamic field.

kNETC_FDBCfgeMacthPortBitmap 

Match Configuration Element portBitmap field.

kNETC_FDBCfgeMacthBoth 

Match both dynamic field and portBitmap.

Enumerator
kNETC_FDBActeMacthAny 

Match any Activity Element Criteria.

kNETC_FDBActeMatchExact 

Exact match with Activity Element.

Enumerator
kNETC_IPv4ASMKey 

Key consists of a filtering ID (FID) and destination multicast IPv4 address.

kNETC_IPv4SSMKey 

Key consists of a filtering ID (FID), IPv4 source address and multicast IPv4 destination address.

Enumerator
kNETC_L2MCFKeyeMacthAny 

Match any Key Element Criteria.

kNETC_L2MCFKeyeMacthFID 

Match Key Element FID.

Enumerator
kNETC_L2MCFCfgeMacthAny 

Match any Configuration Element Criteria.

kNETC_L2MCFCfgeMacthDynamic 

Match Configuration Element dynamic field.

kNETC_L2MCFCfgeMacthPortBitmap 

Match Configuration Element portBitmap field.

kNETC_L2MCFCfgeMacthBoth 

Match both dynamic field and portBitmap.

Enumerator
kNETC_L2MCFActeMacthAny 

Match any Activity Element Criteria.

kNETC_L2MCFActeMatchExact 

Exact match with Activity Element.

Enumerator
kNETC_SqDraftRTag 

802.1CB draft 2.0 R-TAG.

kNETC_SqRTag 

802.1CB R-TAG.

kNETC_SqHsrTag 

HSR Tag.

Enumerator
kNETC_AcceptAnyTag 

Accept any incoming tag type (802.1CB draft 2.0 R-TAG, 802.1CB R-TAG or HSR Tag)

kNETC_AcceptDraftRTag 

802.1CB draft 2.0 R-TAG.

kNETC_AcceptRTag 

802.1CB R-TAG.

kNETC_AcceptHsrTag 

HSR Tag.

Enumerator
kNETC_TGSSwtPort0 

Switch PORT 0 entry ID.

kNETC_TGSSwtPort1 

Switch PORT 1 entry ID.

kNETC_TGSSwtPort2 

Switch PORT 2 entry ID.

kNETC_TGSSwtPort3 

Switch PORT 3 entry ID.

kNETC_TGSSwtPort4 

Switch PORT 4 entry ID.

kNETC_TGSEnetc0Port 

ENETC 0 port entry ID.

kNETC_TGSEnetc1Port 

ENETC 1 port entry ID.

Enumerator
kNETC_SetGateStates 

HoldRequest is unchanged.

kNETC_SetAndHoldMac 

HoldRequest is set to value hold, only active when enable preemption.

kNETC_SetAndReleaseMac 

HoldRequest is set to value release, only active when enable preemption.

Enumerator
kNETC_NormalMode 

Egress Frame Modification entry use normal/Default mode.

kNETC_L2Act1 

Egress Frame Modification entry l2Act = kNETC_UseSpecPlayload.

kNETC_PldAct1 

Egress Frame Modification entry pldAct = kNETC_ReplAllEthPld.

Enumerator
kNETC_NoEsqAction 

No Egress Sequence Action required.

kNETC_HasEsqAction 

Has Egress Sequence Recovery action.

Enumerator
kNETC_NoEcCounter 

Do not increment egress frame counter.

kNETC_HasEcCounter 

Increment egress frame counter.

Enumerator
kNETC_CQCfgEUpdate 

Configuration Element Update.

kNETC_CQStsEUpdate 

Statistics Element Update, all counters (except FRM_CNT) within the Statistics Element are reset.

Enumerator
kNETC_CSSwtPort0 

CS Switch PORT 0 entry ID.

kNETC_CSSwtPort1 

CS Switch PORT 1 entry ID.

kNETC_CSSwtPort2 

CS Switch PORT 2 entry ID.

kNETC_CSSwtPort3 

CS Switch PORT 3 entry ID.

kNETC_CSSwtPort4 

CS Switch PORT 4 entry ID.

Enumerator
kNETC_CQ7AssignToSchedIn15 

CQ 7 assignment to scheduler input 15, means all CQ use strict priority.

kNETC_CQ7AssignToSchedIn14 

CQ 7 assignment to scheduler input 14.

kNETC_CQ7AssignToSchedIn13 

CQ 7 assignment to scheduler input 13.

kNETC_CQ7AssignToSchedIn12 

CQ 7 assignment to scheduler input 12.

kNETC_CQ7AssignToSchedIn11 

CQ 7 assignment to scheduler input 11.

kNETC_CQ7AssignToSchedIn10 

CQ 7 assignment to scheduler input 10.

kNETC_CQ7AssignToSchedIn9 

CQ 7 assignment to scheduler input 9.

kNETC_CQ7AssignToSchedIn8 

CQ 7 assignment to scheduler input 8.

kNETC_CQ7AssignToSchedIn7 

CQ 7 assignment to scheduler input 7, means all CQ use weighted fair.

Enumerator
kNETC_FlowCtrlDisable 

Flow Control disabled.

kNETC_FlowCtrlWithBP 

Flow Control enabled using only buffer pool FC state.

kNETC_FlowCtrlWithSBP 

Flow Control enabled using only shared buffer pool FC state.

kNETC_FlowCtrlWithBPAndSBP 

Flow Control enabled using both buffer pool and shared buffer pool FC state, only both 1 trigger the Flow Control ON.

Function Documentation

status_t NETC_CmdBDRInit ( netc_cbdr_hw_t base,
const netc_cmd_bdr_config_t config 
)
Parameters
base
config
Returns
kStatus_Success
kStatus_Fail
status_t NETC_CmdBDRDeinit ( netc_cbdr_hw_t base)
Parameters
base
Returns
kStatus_Success
status_t NETC_CmdBDSendCommand ( netc_cbdr_hw_t base,
netc_cmd_bdr_t cbdr,
netc_cmd_bd_t cbd,
netc_cbd_version_t  version 
)
Parameters
base
cbdr
cbd
version
Returns
status_t
See netc_cmd_error_t
status_t NETC_AddIPFTableEntry ( netc_cbdr_handle_t handle,
netc_tb_ipf_config_t config,
uint32_t *  entryID 
)
Parameters
handle
config
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_UpdateIPFTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_ipf_cfge_t cfg 
)
Parameters
handle
entryID
cfg
Returns
status_t
See netc_cmd_error_t
status_t NETC_QueryIPFTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_ipf_config_t config 
)
Parameters
handle
entryID
config
Returns
status_t
See netc_cmd_error_t
status_t NETC_DelIPFTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_ResetIPFMatchCounter ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_GetIPFMatchedCount ( netc_cbdr_handle_t handle,
uint32_t  entryID,
uint64_t *  count 
)
Parameters
handle
entryID
count
Returns
status_t
See netc_cmd_error_t
status_t NETC_AddISITableEntry ( netc_cbdr_handle_t handle,
netc_tb_isi_config_t config,
uint32_t *  entryID 
)
Parameters
handle
config
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_DelISITableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_QueryISITableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_isi_config_t config 
)
Parameters
handle
entryID
config
Returns
status_t
See netc_cmd_error_t
status_t NETC_QueryISITableEntryWithKey ( netc_cbdr_handle_t handle,
netc_tb_isi_keye_t keye,
netc_tb_isi_rsp_data_t rsp 
)
Parameters
handle
keye
rsp
Returns
status_t
See netc_cmd_error_t
status_t NETC_AddOrUpdateISTableEntry ( netc_cbdr_handle_t handle,
netc_tb_is_config_t config,
bool  isAdd 
)
Parameters
handle
config
isAdd
Returns
status_t
See netc_cmd_error_t
status_t NETC_QueryISTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_is_config_t config 
)
Parameters
handle
entryID
config
Returns
status_t
See netc_cmd_error_t
status_t NETC_DelISTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_AddISFTableEntry ( netc_cbdr_handle_t handle,
netc_tb_isf_config_t config,
uint32_t *  entryID 
)
Parameters
handle
config
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_UpdateISFTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_isf_cfge_t cfg 
)
Parameters
handle
entryID
cfg
Returns
status_t
See netc_cmd_error_t
status_t NETC_DelISFTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_QueryISFTableEntry ( netc_cbdr_handle_t handle,
netc_tb_isf_keye_t keye,
netc_tb_isf_rsp_data_t rsp 
)
Parameters
handle
keye
rsp
Returns
status_t
See netc_cmd_error_t
status_t NETC_AddISCTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
status_t NETC_GetISCStatistic ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_isc_stse_t statistic 
)
Parameters
handle
entryID
statistic
Returns
status_t
See netc_cmd_error_t
status_t NETC_ResetISCStatistic ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_AddOrUpdateSGITableEntry ( netc_cbdr_handle_t handle,
netc_tb_sgi_config_t config,
bool  isAdd 
)
Parameters
handle
config
isAdd
Returns
status_t
See netc_cmd_error_t
status_t NETC_DelSGITableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_GetSGIState ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_sgi_sgise_t statis 
)
Parameters
handle
entryID
statis
Returns
status_t
See netc_cmd_error_t
status_t NETC_QuerySGITableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_sgi_rsp_data_t rsp 
)
Parameters
handle
entryID
rsp
Returns
status_t
See netc_cmd_error_t
status_t NETC_AddSGCLTableEntry ( netc_cbdr_handle_t handle,
netc_tb_sgcl_gcl_t config 
)
Parameters
handle
config
Returns
status_t
See netc_cmd_error_t
status_t NETC_DelSGCLTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_GetSGCLGateList ( netc_cbdr_handle_t handle,
netc_tb_sgcl_gcl_t gcl,
uint32_t  length 
)
Parameters
handle
gcl
length
Returns
status_t
See netc_cmd_error_t
status_t NETC_GetSGCLState ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_sgcl_sgclse_t state 
)
Parameters
handle
entryID
state
Returns
status_t
See netc_cmd_error_t
status_t NETC_QueryRPTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_rp_rsp_data_t rsp 
)
Parameters
handle
entryID
rsp
Returns
status_t
See netc_cmd_error_t
status_t NETC_AddOrUpdateRPTableEntry ( netc_cbdr_handle_t handle,
netc_tb_rp_config_t config,
netc_tb_cmd_t  cmd 
)
Parameters
handle
config
cmd
Returns
status_t
See netc_cmd_error_t
status_t NETC_DelRPTableEntry ( netc_cbdr_handle_t handle,
uint32_t  entryID 
)
Parameters
handle
entryID
Returns
status_t
See netc_cmd_error_t
status_t NETC_GetRPStatistic ( netc_cbdr_handle_t handle,
uint32_t  entryID,
netc_tb_rp_stse_t statis 
)
Parameters
handle
entryID
statis
Returns
status_t
See netc_cmd_error_t
status_t NETC_ConfigTGSAdminList ( netc_cbdr_handle_t handle,
netc_tb_tgs_gcl_t config 
)
Parameters
handle
config
Returns
status_t
See netc_cmd_error_t
status_t NETC_GetTGSOperationList ( netc_cbdr_handle_t handle,
netc_tb_tgs_gcl_t gcl,
uint32_t  length 
)
Parameters
handle
gcl
length
Returns
status_t
See netc_cmd_error_t