AM261x MCU+ SDK: CpswAle_Cfg Struct Reference

| AM261x MCU+ SDK 26.00.00 |

Data Fields
CpswAle_Cfg Struct Reference
APIs for Networking modules » APIs for Enet LLD » Enet Forwarding Database (FDB) » CPSW Address Lookup Engine (ALE)

## Detailed Description

ALE configuration.

This data structure contains configuration items related to the ALE_CONTROL register fields.

## Data Fields
uint32_t | modeFlags
CpswAle_PolicerGlobalCfg | policerGlobalCfg
CpswAle_AgingCfg | agingCfg
CpswAle_InitVlanCfg | vlanCfg
CpswAle_NetworkSecurityCfg | nwSecCfg
CpswAle_PortCfg | portCfg [CPSW_ALE_NUM_PORTS]
uint32_t | policerTablePartSize [CPSW_ALE_POLICER_TABLE_PART_MAX]

## Field Documentation

## ◆ modeFlags

uint32_t CpswAle_Cfg::modeFlags

ALE Control fields. Bit mask based on CPSW_ALE_CFG_MASK

## ◆ policerGlobalCfg

CpswAle_PolicerGlobalCfg CpswAle_Cfg::policerGlobalCfg

ALE Policer configuration

## ◆ agingCfg

CpswAle_AgingCfg CpswAle_Cfg::agingCfg

Aging config

## ◆ vlanCfg

CpswAle_InitVlanCfg CpswAle_Cfg::vlanCfg

VLAN config

## ◆ nwSecCfg

CpswAle_NetworkSecurityCfg CpswAle_Cfg::nwSecCfg

Network security related configuration of ALE

## ◆ portCfg

CpswAle_PortCfg CpswAle_Cfg::portCfg[CPSW_ALE_NUM_PORTS]

ALE Port configs

## ◆ policerTablePartSize

uint32_t CpswAle_Cfg::policerTablePartSize[CPSW_ALE_POLICER_TABLE_PART_MAX]

Policer table partition into levels. Partition configuration must be provided from high priority level (CPSW_ALE_POLICER_PARTITION_LEVEL_1) to lowest (CPSW_ALE_POLICER_PARTITION_DEFAULT). Unused partitions should be set to 0, in which case, they are clubbed to default partition.