PDK API Guide for J721E
CpswAle_GetPolicerEntryOutArgs Struct Reference

Detailed Description

Output args for CPSW_ALE_IOCTL_GET_POLICER command.

Data Fields

uint32_t policerMatchEnableMask
 
uint32_t port
 
bool portIsTrunk
 
uint32_t priority
 
uint32_t ouiAleEntryIndex
 
uint32_t srcMacAleEntryIndex
 
uint32_t dstMacAleEntryIndex
 
uint32_t ivlanAleEntryIndex
 
uint32_t ovlanAleEntryIndex
 
uint32_t etherTypeAleEntryIndex
 
uint32_t srcIpAleEntryIndex
 
uint32_t dstIpAleEntryIndex
 
bool threadIdEnable
 
uint32_t threadId
 
uint32_t peakRateInBitsPerSec
 
uint32_t commitRateInBitsPerSec
 
uint32_t policerEntryIndex
 
bool egressOpEnabled
 
uint32_t egressOpcode
 
bool enableTTLCheck
 
uint32_t egressTrunkIndex
 
uint32_t destPortMask
 

Field Documentation

uint32_t CpswAle_GetPolicerEntryOutArgs::policerMatchEnableMask

Bitmask selecting classifier types to enabled for this policer

See also
ALE classifier match types
uint32_t CpswAle_GetPolicerEntryOutArgs::port

Port number to match. Is valid if bit CPSW_ALE_POLICER_MATCH_PORT in policerMatchEnableMask is set

bool CpswAle_GetPolicerEntryOutArgs::portIsTrunk

Flag indicating port number is a trunk group Is valid if bit CPSW_ALE_POLICER_MATCH_PORT in policerMatchEnableMask is set

uint32_t CpswAle_GetPolicerEntryOutArgs::priority

Received packet priority to match Is valid if bit CPSW_ALE_POLICER_MATCH_PRIORITY in policerMatchEnableMask is set

uint32_t CpswAle_GetPolicerEntryOutArgs::ouiAleEntryIndex

OUI ALE table entry index to match Is valid if bit CPSW_ALE_POLICER_MATCH_OUI in policerMatchEnableMask is set

uint32_t CpswAle_GetPolicerEntryOutArgs::srcMacAleEntryIndex

MAC address ALE table entry index to match source MAC address Is valid if bit CPSW_ALE_POLICER_MATCH_MACSRC in policerMatchEnableMask is set

uint32_t CpswAle_GetPolicerEntryOutArgs::dstMacAleEntryIndex

MAC address ALE table entry index to match destination MAC address Is valid if bit CPSW_ALE_POLICER_MATCH_MACDST in policerMatchEnableMask is set

uint32_t CpswAle_GetPolicerEntryOutArgs::ivlanAleEntryIndex

Inner VLAN ALE table entry index to match Is valid if bit CPSW_ALE_POLICER_MATCH_IVLAN in policerMatchEnableMask is set

uint32_t CpswAle_GetPolicerEntryOutArgs::ovlanAleEntryIndex

Outer VLAN ALE table entry index to match Is valid if bit CPSW_ALE_POLICER_MATCH_OVLAN in policerMatchEnableMask is set

uint32_t CpswAle_GetPolicerEntryOutArgs::etherTypeAleEntryIndex

Ethertype ALE table entry index to match Is valid if bit CPSW_ALE_POLICER_MATCH_ETHERTYPE in policerMatchEnableMask is set

uint32_t CpswAle_GetPolicerEntryOutArgs::srcIpAleEntryIndex

IP address ALE table entry index to match as source IP address Is valid if bit CPSW_ALE_POLICER_MATCH_IPSRC in policerMatchEnableMask is set

uint32_t CpswAle_GetPolicerEntryOutArgs::dstIpAleEntryIndex

IP address ALE table entry index to match as destination IP address Is valid if bit CPSW_ALE_POLICER_MATCH_IPDST in policerMatchEnableMask is set

bool CpswAle_GetPolicerEntryOutArgs::threadIdEnable

Flag indicating if threadid setting is enabled for this policer entry

uint32_t CpswAle_GetPolicerEntryOutArgs::threadId

Thread Id which will be enabled for this policer match. Valid if threadIdEnable is TRUE

uint32_t CpswAle_GetPolicerEntryOutArgs::peakRateInBitsPerSec

Peak rate in bits per second. 0 indicates rate limit is disabled

uint32_t CpswAle_GetPolicerEntryOutArgs::commitRateInBitsPerSec

Commit rate in bits per second. 0 indicates rate limit is disabled

uint32_t CpswAle_GetPolicerEntryOutArgs::policerEntryIndex

ALE policer table entry index

bool CpswAle_GetPolicerEntryOutArgs::egressOpEnabled

Egress Op Enabled

uint32_t CpswAle_GetPolicerEntryOutArgs::egressOpcode

Egress Op code:

bool CpswAle_GetPolicerEntryOutArgs::enableTTLCheck

TTL check enabled for the interVLAN route. Valid only if egress op code has interVLan route enabled

uint32_t CpswAle_GetPolicerEntryOutArgs::egressTrunkIndex

Trunk index to be used if destPort for itnerVLAN route is a trunk. Valid only if egress op code has interVLan route enabled

uint32_t CpswAle_GetPolicerEntryOutArgs::destPortMask

Port mask to which the packet is to be routeed. Valid only if egress op code has interVLan route enabled