|
AM64x MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
84 #define CPSW_ALE_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \
85 ENET_IOCTL_FDB_BASE | \
86 ENET_IOCTL_PER_CPSW | \
90 #define CPSW_ALE_PRIVATE_IOCTL(x) (ENET_IOCTL_TYPE_PRIVATE | \
91 ENET_IOCTL_FDB_BASE | \
92 ENET_IOCTL_PER_CPSW | \
96 #define CPSW_ALE_NUM_MAC_PORTS (CPSW_ALE_NUM_PORTS - 1U)
99 #define CPSW_ALE_MAX_WHITELIST_IP_NXT_HDR (4U)
102 #define CPSW_ALE_ALL_PORTS_MASK ((uint32_t)((1U << CPSW_ALE_NUM_PORTS) - 1U))
105 #define CPSW_ALE_ALL_MACPORTS_MASK ((uint32_t)(((1U << CPSW_ALE_NUM_PORTS) - 1U) - 1U))
108 #define CPSW_ALE_HOST_PORT_MASK (ENET_BIT(0))
111 #define CPSW_ALE_HOST_PORT_NUM (0U)
114 #define CPSW_ALE_MACPORT_BASE (1U)
117 #define CPSW_ALE_MACPORT_TO_ALEPORT(macPortNum) (ENET_MACPORT_NORM(macPortNum) + CPSW_ALE_MACPORT_BASE)
120 #define CPSW_ALE_ALEPORT_TO_MACPORT(alePortNum) (ENET_MACPORT_DENORM(alePortNum - CPSW_ALE_MACPORT_BASE))
123 #define CPSW_ALE_MACPORT_TO_PORTMASK(macPort) (ENET_BIT(CPSW_ALE_MACPORT_TO_ALEPORT(macPort)))
126 #define CPSW_ALE_MCAST_IGN_BITS_MAX (10U)
129 #define CPSW_ALE_PEAKBITRATE_DISABLE (0U)
132 #define CPSW_ALE_COMMITBITRATE_DISABLE (0U)
135 #define CPSW_ALE_THREADID_INVALID (~0U)
147 #define CPSW_ALE_CFG_MODULE_EN (ENET_BIT(0U))
150 #define CPSW_ALE_CFG_BYPASS_EN (ENET_BIT(1U))
153 #define CPSW_ALE_CFG_UNKNOWN_UCAST_FLOOD2HOST (ENET_BIT(2U))
168 #define CPSW_ALE_POLICER_MATCH_PORT (ENET_BIT(0U))
171 #define CPSW_ALE_POLICER_MATCH_PRIORITY (ENET_BIT(1U))
174 #define CPSW_ALE_POLICER_MATCH_OUI (ENET_BIT(2U))
177 #define CPSW_ALE_POLICER_MATCH_MACDST (ENET_BIT(3U))
180 #define CPSW_ALE_POLICER_MATCH_MACSRC (ENET_BIT(4U))
183 #define CPSW_ALE_POLICER_MATCH_OVLAN (ENET_BIT(5U))
186 #define CPSW_ALE_POLICER_MATCH_IVLAN (ENET_BIT(6U))
189 #define CPSW_ALE_POLICER_MATCH_ETHERTYPE (ENET_BIT(7U))
192 #define CPSW_ALE_POLICER_MATCH_IPSRC (ENET_BIT(8U))
195 #define CPSW_ALE_POLICER_MATCH_IPDST (ENET_BIT(9U))
211 #define CPSW_ALE_POLICER_TABLEENTRY_DELETE_OUI (CPSW_ALE_POLICER_MATCH_PRIORITY)
214 #define CPSW_ALE_POLICER_TABLEENTRY_DELETE_MACSRC (CPSW_ALE_POLICER_MATCH_MACSRC)
217 #define CPSW_ALE_POLICER_TABLEENTRY_DELETE_MACDST (CPSW_ALE_POLICER_MATCH_MACDST)
220 #define CPSW_ALE_POLICER_TABLEENTRY_DELETE_IVLAN (CPSW_ALE_POLICER_MATCH_IVLAN)
223 #define CPSW_ALE_POLICER_TABLEENTRY_DELETE_OVLAN (CPSW_ALE_POLICER_MATCH_OVLAN)
226 #define CPSW_ALE_POLICER_TABLEENTRY_DELETE_ETHERTYPE (CPSW_ALE_POLICER_MATCH_ETHERTYPE)
229 #define CPSW_ALE_POLICER_TABLEENTRY_DELETE_IPSRC (CPSW_ALE_POLICER_MATCH_IPSRC)
232 #define CPSW_ALE_POLICER_TABLEENTRY_DELETE_IPDST (CPSW_ALE_POLICER_MATCH_IPDST)
235 #define CPSW_ALE_POLICER_TABLEENTRY_DELETE_ALL (CPSW_ALE_POLICER_TABLEENTRY_DELETE_OUI | \
236 CPSW_ALE_POLICER_TABLEENTRY_DELETE_MACSRC | \
237 CPSW_ALE_POLICER_TABLEENTRY_DELETE_MACDST | \
238 CPSW_ALE_POLICER_TABLEENTRY_DELETE_IVLAN | \
239 CPSW_ALE_POLICER_TABLEENTRY_DELETE_OVLAN | \
240 CPSW_ALE_POLICER_TABLEENTRY_DELETE_ETHERTYPE | \
241 CPSW_ALE_POLICER_TABLEENTRY_DELETE_IPSRC | \
242 CPSW_ALE_POLICER_TABLEENTRY_DELETE_IPDST)
253 typedef enum CpswAle_Ioctl_e
775 typedef enum CpswAle_PortState_e
802 typedef enum CpswAle_FwdStateLevel_e
817 typedef enum CpswAle_RxFilter_e
841 typedef struct CpswAle_MacAddrInfo_s
853 typedef struct CpswAle_UcastEntryInfo_s
882 typedef struct CpswAle_SetUcastEntryInArgs_s
894 typedef struct CpswAle_GetUcastEntryOutArgs_s
910 typedef struct CpswAle_McastEntryInfo_s
930 typedef struct CpswAle_SetMcastEntryInArgs_s
942 typedef struct CpswAle_GetMcastEntryInArgs_s
954 typedef struct CpswAle_GetMcastEntryOutArgs_s
966 typedef struct CpswAle_VlanIdInfo_s
978 typedef struct CpswAle_VlanEntryInfo_s
1020 typedef struct CpswAle_GetVlanEntryOutArgs_s
1053 typedef struct CpswAle_OuiEntryInfo_s
1062 typedef struct CpswAle_IPv4EntryInfo_s
1074 typedef struct CpswAle_IPv6EntryInfo_s
1086 typedef struct CpswAle_SetPortStateInArgs_s
1098 typedef struct CpswAle_GetPortMacAddrInArgs_s
1113 typedef struct CpswAle_GetPortMacAddrOutArgs_s
1131 typedef struct CpswAle_DefaultThreadCfg_s
1153 typedef enum CpswAle_TableEntryType_s
1178 typedef struct CpswAle_MacAddrClassifierInfo_s
1190 typedef struct CpswAle_MirrorMatchParams_s
1223 typedef struct CpswAle_PortMirroringCfg_s
1258 typedef struct CpswAle_TrunkCfg_s
1307 typedef struct CpswAle_PortBcastMcastRateLimitParams_s
1331 typedef struct CpswAle_SetBcastMcastRateLimitInArgs_s
1347 typedef struct CpswAle_GetBcastMcastRateLimitOutArgs_s
1366 typedef enum CpswAle_IpAddrClassifierType_e
1378 typedef struct CpswAle_IpAddrClassifierInfo_s
1393 typedef struct CpswAle_PolicerMatchParams_s
1456 typedef struct CpswAle_SetPolicerEntryInArgs_s
1477 typedef struct CpswAle_SetPolicerEntryOutArgs_s
1529 typedef struct CpswAle_PolicerEntryOutArgs_s
1632 typedef struct CpswAle_DelPolicerEntryInArgs_s
1646 typedef struct CpswAle_GetPolicerStatsInArgs_s
1658 typedef struct CpswAle_GetPolicerStatsOutArgs_s
1681 typedef struct CpswAle_SetPolicerThreadCfgInArgs_s
1699 typedef enum CpswAle_PolicerYellowThresh_e
1732 typedef enum CpswAle_PolicerNoMatchMode_e
1750 typedef struct CpswAle_UnregulatedTrafficPolicer_s
1762 typedef struct CpswAle_PolicerGlobalCfg_s
1793 typedef struct CpswAle_SetInterVlanCfgInArgs_s
1819 typedef struct CpswAle_AgingCfg_s
1831 typedef struct CpswAle_InitVlanCfg_s
1861 typedef struct CpswAle_MalformedPktSecurityCfg_s
1875 typedef struct CpswAle_IPPktSecurityCfg_s
1895 typedef struct CpswAle_MacAuthCfg_s
1910 typedef struct CpswAle_NetworkSecurityCfg_s
1938 typedef struct CpswAle_PortLearningSecurityCfg_s
1951 typedef struct CpswAle_PortVlanSecurityCfg_s
1972 typedef struct CpswAle_PortMacModeCfg_s
2002 typedef struct CpswAle_PortCfg_s
2023 typedef struct CpswAle_Cfg_s
CpswAle_FwdStateLevel fwdState
Definition: cpsw_ale.h:917
CpswAle_PolicerNoMatchMode
Policing Match Mode.
Definition: cpsw_ale.h:1733
CpswAle_MacAuthCfg macAuthCfg
Definition: cpsw_ale.h:1932
@ CPSW_ALE_FWDSTLVL_FWD_LRN
Definition: cpsw_ale.h:811
bool dfltNoFragEn
Definition: cpsw_ale.h:1878
@ CPSW_ALE_IOCTL_BLOCK_CLASSIFIER_HOSTPORT
Blacklist classifier to host port.
Definition: cpsw_ale.h:744
uint32_t dstPortMask
Definition: cpsw_ale.h:1802
@ CPSW_ALE_IOCTL_DEL_POLICER
Delete policer/classifier entry.
Definition: cpsw_ale.h:662
@ CPSW_ALE_PORTSTATE_DISABLED
Definition: cpsw_ale.h:778
@ CPSW_ALE_IOCTL_GET_POLICER
Get policer/classifier entry info.
Definition: cpsw_ale.h:651
CpswAle_VlanIdInfo vlanIdInfo
Definition: cpsw_ale.h:1201
#define CPSW_ALE_PUBLIC_IOCTL(x)
Helper macro to create IOCTL commands for ALE module.
Definition: cpsw_ale.h:84
bool ttlCheckEn
Definition: cpsw_ale.h:1618
Output args for CPSW_ALE_IOCTL_SET_DEFAULT_THREADCFG command.
Definition: cpsw_ale.h:1794
CpswAle_PolicerMatchParams policerMatch
Definition: cpsw_ale.h:1459
Input args for CPSW_ALE_IOCTL_LOOKUP_MCAST command.
Definition: cpsw_ale.h:943
CpswAle_UcastEntryInfo info
Definition: cpsw_ale.h:888
High level structure with ALE network security configuration.
Definition: cpsw_ale.h:1911
@ CPSW_ALE_IPADDR_CLASSIFIER_IPV4
Definition: cpsw_ale.h:1369
uint32_t threadId
Definition: cpsw_ale.h:1465
uint32_t macAuthDisMask
Definition: cpsw_ale.h:1904
uint32_t unregMcastFloodMask
Definition: cpsw_ale.h:1026
@ CPSW_ALE_TABLE_ENTRY_TYPE_VLAN
Definition: cpsw_ale.h:1159
ALE IP address classifier info.
Definition: cpsw_ale.h:1379
bool policerYellowHit
Definition: cpsw_ale.h:1673
uint32_t forceUntaggedEgressMask
Definition: cpsw_ale.h:996
@ CPSW_ALE_IOCTL_SET_OAMLPBK_CFG
Enable OAM loopback for ports in the given port mask.
Definition: cpsw_ale.h:596
#define ENET_OUI_ADDR_LEN
Organization Unique Id (OUI) address length in bytes/octets.
Definition: enet_types.h:156
bool threadIdEn
Definition: cpsw_ale.h:1462
uint32_t numPorts
Definition: cpsw_ale.h:1357
@ CPSW_ALE_POLICER_YELLOWTHRESH_DROP_PERCENT_14
Definition: cpsw_ale.h:1720
CpswAle_NetworkSecurityCfg nwSecCfg
Definition: cpsw_ale.h:2038
CpswAle_MacAddrInfo addr
Definition: cpsw_ale.h:885
uint32_t numPorts
Definition: cpsw_ale.h:1338
uint32_t policerMatchEnMask
Definition: cpsw_ale.h:1533
uint32_t ivlanAleEntryIdx
Definition: cpsw_ale.h:1568
uint32_t noLearnMask
Definition: cpsw_ale.h:1035
bool policingEn
Definition: cpsw_ale.h:1766
@ CPSW_ALE_IOCTL_SET_INTERVLAN_CFG
Set InterVLAN routing configuration.
Definition: cpsw_ale.h:755
CpswAle_VlanEntryInfo CpswAle_PortVlanCfg
Port default VLAN configuration.
Definition: cpsw_ale.h:1997
@ CPSW_ALE_PORTSTATE_LEARN
Definition: cpsw_ale.h:785
Output args for CPSW_ALE_IOCTL_GET_BCAST_MCAST_LIMIT IOCTL command.
Definition: cpsw_ale.h:1348
uint32_t numIgnBits
Definition: cpsw_ale.h:924
CpswAle_PortState portState
Definition: cpsw_ale.h:1092
Input args for CPSW_ALE_IOCTL_GET_PORT_MACADDR command.
Definition: cpsw_ale.h:1099
uint32_t vlanMemberList
Definition: cpsw_ale.h:1023
uint32_t port
Definition: cpsw_ale.h:1538
bool yellowDropEn
Definition: cpsw_ale.h:1770
uint32_t ovlanAleEntryIdx
Definition: cpsw_ale.h:1502
Input args for CPSW_ALE_IOCTL_GET_POLICER_STATS command.
Definition: cpsw_ale.h:1647
@ CPSW_ALE_IOCTL_SET_BCAST_MCAST_LIMIT
Set broadcast/multicast rate limit configuration.
Definition: cpsw_ale.h:607
@ CPSW_ALE_RXFILTER_ALL
Definition: cpsw_ale.h:835
Input args for CPSW_ALE_IOCTL_ADD_UCAST command.
Definition: cpsw_ale.h:883
@ CPSW_ALE_TABLE_ENTRY_TYPE_IPV6
Definition: cpsw_ale.h:1171
CpswAle_MalformedPktSecurityCfg malformedPktCfg
Definition: cpsw_ale.h:1926
uint32_t ouiAleEntryIdx
Definition: cpsw_ale.h:1553
bool aleVlanAwareMode
Definition: cpsw_ale.h:1834
Enet_VlanTagType
Double tagging VLAN type.
Definition: enet_types.h:376
@ CPSW_ALE_IOCTL_GET_DEFAULT_THREADCFG
Get default thread configuration.
Definition: cpsw_ale.h:551
uint32_t noLearnMask
Definition: cpsw_ale.h:1002
uint32_t peakRateInBitsPerSec
Definition: cpsw_ale.h:1598
uint32_t trunkId
Definition: cpsw_ale.h:1261
bool dstEnEn
Definition: cpsw_ale.h:1301
@ CPSW_ALE_PORTSTATE_BLOCKED
Definition: cpsw_ale.h:781
OUI entry info.
Definition: cpsw_ale.h:1054
CpswAle_PortLearningSecurityCfg learningCfg
Definition: cpsw_ale.h:2005
uint32_t ouiAleEntryIdx
Definition: cpsw_ale.h:1482
CpswAle_PortMacModeCfg macModeCfg
Definition: cpsw_ale.h:2011
CpswAle_PolicerMatchParams policerInfo
Definition: cpsw_ale.h:1649
@ CPSW_ALE_RXFILTER_DIRECT
Definition: cpsw_ale.h:823
uint32_t numLSBIgnoreBits
Definition: cpsw_ale.h:1080
bool rateLimitAtTxPort
Definition: cpsw_ale.h:1353
bool touched
Definition: cpsw_ale.h:901
uint32_t addrCnt
Definition: cpsw_ale.h:1107
uint32_t unknownRegMcastFloodMask
Definition: cpsw_ale.h:1849
bool unknownVlanNoLearn
Definition: cpsw_ale.h:1843
@ CPSW_ALE_POLICER_NOMATCH_MODE_YELLOW
Definition: cpsw_ale.h:1738
CpswAle_Ioctl
ALE IOCTL commands.
Definition: cpsw_ale.h:254
ALE configuration.
Definition: cpsw_ale.h:2024
@ CPSW_ALE_POLICER_NOMATCH_MODE_GREEN
Definition: cpsw_ale.h:1735
@ CPSW_ALE_TABLE_ENTRY_TYPE_IPV4
Definition: cpsw_ale.h:1168
Input args for CPSW_ALE_IOCTL_SET_POLICER command.
Definition: cpsw_ale.h:1478
CpswAle_IPv6EntryInfo ipv6Info
Definition: cpsw_ale.h:1387
CpswAle_MacAddrClassifierInfo srcMacAddrInfo
Definition: cpsw_ale.h:1420
@ CPSW_ALE_POLICER_YELLOWTHRESH_DROP_PERCENT_13
Definition: cpsw_ale.h:1723
@ CPSW_ALE_IOCTL_ADD_OUI
Add OUI address entry. IOCTL params:
Definition: cpsw_ale.h:309
bool portIsTrunk
Definition: cpsw_ale.h:1405
@ CPSW_ALE_FWDSTLVL_FWD
Definition: cpsw_ale.h:805
uint32_t portNum
Definition: cpsw_ale.h:1101
bool dropUntagged
Definition: cpsw_ale.h:1957
bool disallowIPFrag
Definition: cpsw_ale.h:1014
bool bcastRateLimitForPortEn
Definition: cpsw_ale.h:1315
uint16_t etherType
Definition: cpsw_ale.h:1440
@ CPSW_ALE_IOCTL_REMOVE_LEARNED_ENTRIES
Delete all learned entries for a given port.
Definition: cpsw_ale.h:453
CpswAle_PolicerMatchParams policerMatch
Definition: cpsw_ale.h:1684
uint32_t unknownForceUntaggedEgressMask
Definition: cpsw_ale.h:1846
CpswAle_MacAddrInfo * addrs
Definition: cpsw_ale.h:1117
uint32_t peakRateInBitsPerSec
Definition: cpsw_ale.h:1468
uint32_t srcIpAleEntryIdx
Definition: cpsw_ale.h:1583
Input args for CPSW_ALE_IOCTL_SET_TRUNK_CFG command.
Definition: cpsw_ale.h:1259
@ CPSW_ALE_POLICER_YELLOWTHRESH_DROP_PERCENT_50
Definition: cpsw_ale.h:1705
MAC authentication configuration.
Definition: cpsw_ale.h:1896
uint32_t ovlanAleEntryIdx
Definition: cpsw_ale.h:1573
uint32_t portNum
Definition: cpsw_ale.h:1311
Input args for CPSW_ALE_IOCTL_SET_BCAST_MCAST_LIMIT command.
Definition: cpsw_ale.h:1332
CpswAle_FwdStateLevel
Forward state level.
Definition: cpsw_ale.h:803
@ CPSW_ALE_IOCTL_LOOKUP_VLAN
Return entry info for given VLAN id.
Definition: cpsw_ale.h:374
uint32_t dstPortNum
Definition: cpsw_ale.h:1241
@ CPSW_ALE_IOCTL_SET_POLICER
Set policer/classifier entry.
Definition: cpsw_ale.h:640
ALE aging time configuration.
Definition: cpsw_ale.h:1820
@ CPSW_ALE_IOCTL_REMOVE_VLAN
Delete entry info for given VLAN id.
Definition: cpsw_ale.h:396
@ CPSW_ALE_IOCTL_DISABLE_PORT_MIRROR
Disable port mirror (match mirror, destination port mirror and source port mirror).
Definition: cpsw_ale.h:574
uint32_t unregMcastFloodMask
Definition: cpsw_ale.h:988
Input args for CPSW_ALE_IOCTL_DEL_POLICER IOCTL command.
Definition: cpsw_ale.h:1633
CpswAle_MacAddrInfo addr
Definition: cpsw_ale.h:933
bool portIsTrunk
Definition: cpsw_ale.h:1543
bool mcastRateLimitForPortEn
Definition: cpsw_ale.h:1319
@ CPSW_ALE_IOCTL_GET_PORT_MACADDR
Get MAC addresses reachable on given port.
Definition: cpsw_ale.h:529
CpswAle_PolicerNoMatchMode policerNoMatchMode
Definition: cpsw_ale.h:1779
@ CPSW_ALE_IOCTL_REMOVE_ADDR
Delete entry info for given unicast/multicast address.
Definition: cpsw_ale.h:385
uint32_t vlanMemberList
Definition: cpsw_ale.h:984
@ CPSW_ALE_IOCTL_GET_PORT_STATE
Get port state.
Definition: cpsw_ale.h:518
uint32_t bcastLimitNumPktsPerSec
Definition: cpsw_ale.h:1322
CpswAle_TableEntryType
Defines ALE table entry type.
Definition: cpsw_ale.h:1154
CpswAle_RxFilter
Packet filtering type (cumulative).
Definition: cpsw_ale.h:818
bool secure
Definition: cpsw_ale.h:866
bool srcIPEn
Definition: cpsw_ale.h:1280
Input args for CPSW_ALE_IOCTL_ADD_MCAST command.
Definition: cpsw_ale.h:931
Port MAC mode configuration.
Definition: cpsw_ale.h:1973
CpswAle_PortState
ALE port state.
Definition: cpsw_ale.h:776
@ CPSW_ALE_IOCTL_SET_RX_FILTER
Set host port RX filter.
Definition: cpsw_ale.h:486
Input args for CPSW_ALE_IOCTL_SET_POLICER command.
Definition: cpsw_ale.h:1457
bool noSaUpdateEn
Definition: cpsw_ale.h:1945
bool autoLearnWithVlan
Definition: cpsw_ale.h:1840
uint64_t addr
Definition: csl_udmap_tr.h:3
Multicast entry type info apart from MAC address.
Definition: cpsw_ale.h:911
bool dfltNxtHdrWhitelistEn
Definition: cpsw_ale.h:1882
bool trunk
Definition: cpsw_ale.h:876
uint32_t ivlanId
Definition: cpsw_ale.h:1430
@ CPSW_ALE_TABLE_ENTRY_TYPE_OUI
Definition: cpsw_ale.h:1165
@ CPSW_ALE_RXFILTER_BCAST
Definition: cpsw_ale.h:826
Input args for CPSW_ALE_IOCTL_SET_DEFAULT_THREADCFG command and out args for CPSW_ALE_IOCTL_GET_DEFAU...
Definition: cpsw_ale.h:1132
uint32_t modeFlags
Definition: cpsw_ale.h:2026
uint32_t dstIpAleEntryIdx
Definition: cpsw_ale.h:1517
CpswAle_IPv4EntryInfo ipv4Info
Definition: cpsw_ale.h:1205
uint32_t dstPortMask
Definition: cpsw_ale.h:1626
CpswAle_McastEntryInfo info
Definition: cpsw_ale.h:936
bool macPortDfltThreadDis
Definition: cpsw_ale.h:1147
bool srcEn
Definition: cpsw_ale.h:1228
uint32_t vlanId
Definition: cpsw_ale.h:969
CpswAle_IpAddrClassifierType
IP address classifier type.
Definition: cpsw_ale.h:1367
uint32_t vlanId
Definition: cpsw_ale.h:847
CpswAle_PolicerMatchParams policerMatch
Definition: cpsw_ale.h:1635
uint32_t priority
Definition: cpsw_ale.h:1410
@ CPSW_ALE_IOCTL_ADD_UCAST
Add unicast address entry.
Definition: cpsw_ale.h:277
uint32_t ipNxtHdrWhitelistCnt
Definition: cpsw_ale.h:1886
bool dropDualVlan
Definition: cpsw_ale.h:1961
CpswAle_MacAddrInfo * addrs
Definition: cpsw_ale.h:1104
CpswAle_MacAddrClassifierInfo dstMacAddrInfo
Definition: cpsw_ale.h:1197
bool noLearn
Definition: cpsw_ale.h:1941
uint32_t peakRateInBitsPerSec
Definition: cpsw_ale.h:1753
uint32_t numLSBIgnoreBits
Definition: cpsw_ale.h:1068
#define CPSW_ALE_MAX_WHITELIST_IP_NXT_HDR
Maximum IP next header whitelist.
Definition: cpsw_ale.h:99
CpswAle_TableEntryType entryType
Definition: cpsw_ale.h:1193
uint32_t regMcastFloodMask
Definition: cpsw_ale.h:992
bool vidIngressCheck
Definition: cpsw_ale.h:1038
@ CPSW_ALE_FWDSTLVL_BLK_FWD_LRN
Definition: cpsw_ale.h:808
uint32_t egressTrunkIdx
Definition: cpsw_ale.h:1622
Output args for CPSW_ALE_IOCTL_LOOKUP_MCAST command.
Definition: cpsw_ale.h:1021
CpswAle_AgingCfg agingCfg
Definition: cpsw_ale.h:2032
CpswAle_MacAddrInfo addr
Definition: cpsw_ale.h:945
uint32_t portNum
Definition: cpsw_ale.h:1184
uint32_t portNum
Definition: cpsw_ale.h:1089
bool autoAgingEn
Definition: cpsw_ale.h:1822
ALE classifier/policer match parameters.
Definition: cpsw_ale.h:1394
@ CPSW_ALE_TABLE_ENTRY_TYPE_ADDR
Definition: cpsw_ale.h:1156
Policer global configuration parameters.
Definition: cpsw_ale.h:1763
uint32_t priority
Definition: cpsw_ale.h:1548
@ CPSW_ALE_IOCTL_SET_POLICER_THREADCFG
Set thread id for given classifier/policer.
Definition: cpsw_ale.h:697
bool redDropEn
Definition: cpsw_ale.h:1773
CpswAle_MacAddrInfo addr
Definition: cpsw_ale.h:1181
bool threadIdEn
Definition: cpsw_ale.h:1591
@ CPSW_ALE_RXFILTER_MCAST
Definition: cpsw_ale.h:829
Port specific auto learning security configuration.
Definition: cpsw_ale.h:1939
bool policerHit
Definition: cpsw_ale.h:1663
@ CPSW_ALE_IOCTL_GET_POLICER_GLOBAL_CFG
Configure policer global settings.
Definition: cpsw_ale.h:718
bool macOnlyCafEn
Definition: cpsw_ale.h:1980
This file contains the type definitions and helper macros for the Enet Forwarding Database (FDB) modu...
#define CPSW_ALE_NUM_PORTS
Number of switch ports in the subsystem. Number of Mac ports + 1 host port
Definition: enet_soc_cfg.h:139
bool vidIngressCheck
Definition: cpsw_ale.h:1954
bool egressOpEn
Definition: cpsw_ale.h:1607
CpswAle_IPv4EntryInfo ipv4Info
Definition: cpsw_ale.h:1384
Init time VLAN configuration.
Definition: cpsw_ale.h:1832
uint32_t policerEntryIdx
Definition: cpsw_ale.h:1604
@ CPSW_ALE_IOCTL_GET_INTERVLAN_CFG
Get InterVLAN routing configuration.
Definition: cpsw_ale.h:766
uint32_t threadId
Definition: cpsw_ale.h:1595
uint32_t dstMacAleEntryIdx
Definition: cpsw_ale.h:1563
bool vid0ModeEn
Definition: cpsw_ale.h:1923
CpswAle_PortVlanCfg pvidCfg
Definition: cpsw_ale.h:2014
uint32_t aleEntryIdx
Definition: cpsw_ale.h:1047
@ CPSW_ALE_IOCTL_REMOVE_ALL_ENTRIES
Delete all entries.
Definition: cpsw_ale.h:464
bool hostOuiNoMatchDeny
Definition: cpsw_ale.h:1918
bool enablePri
Definition: cpsw_ale.h:1291
uint32_t policerMatchEnMask
Definition: cpsw_ale.h:1397
uint32_t aleEntryIdx
Definition: cpsw_ale.h:904
Input args for CPSW_ALE_IOCTL_SET_PORT_STATE command.
Definition: cpsw_ale.h:1087
@ CPSW_ALE_IOCTL_DEL_ALL_POLICER_THREADID
Delete all policer entries and associated ALE entry with the given thread id.
Definition: cpsw_ale.h:730
@ CPSW_ALE_IOCTL_SET_DEFAULT_THREADCFG
Set default thread configuration.
Definition: cpsw_ale.h:540
bool dstEnEn
Definition: cpsw_ale.h:1233
@ CPSW_ALE_IOCTL_LOOKUP_UCAST
Return entry info for given unicast address.
Definition: cpsw_ale.h:352
MAC address and VLAN Id.
Definition: cpsw_ale.h:842
uint32_t toPortNum
Definition: cpsw_ale.h:1244
Output args for CPSW_ALE_IOCTL_GET_POLICER_STATS command.
Definition: cpsw_ale.h:1659
bool dfltThreadEn
Definition: cpsw_ale.h:1138
uint32_t commitRateInBitsPerSec
Definition: cpsw_ale.h:1756
Enet_VlanTagType tagType
Definition: cpsw_ale.h:972
ALE init time port specific configuration params.
Definition: cpsw_ale.h:2003
uint32_t srcIpAleEntryIdx
Definition: cpsw_ale.h:1512
@ CPSW_ALE_IOCTL_REMOVE_IPV6ADDR
Delete entry info for given IPv6 address.
Definition: cpsw_ale.h:429
CpswAle_IpAddrClassifierType ipAddrType
Definition: cpsw_ale.h:1381
uint32_t srcMacAleEntryIdx
Definition: cpsw_ale.h:1487
CpswAle_OuiEntryInfo ouiInfo
Definition: cpsw_ale.h:1415
#define ENET_IPv4_ADDR_LEN
IPv4 address length in bytes/octets.
Definition: enet_types.h:159
@ CPSW_ALE_POLICER_YELLOWTHRESH_DROP_PERCENT_17
Definition: cpsw_ale.h:1717
uint32_t srcMacAleEntryIdx
Definition: cpsw_ale.h:1558
uint32_t unknownUnregMcastFloodMask
Definition: cpsw_ale.h:1852
bool srcEn
Definition: cpsw_ale.h:1296
@ CPSW_ALE_POLICER_YELLOWTHRESH_DROP_PERCENT_20
Definition: cpsw_ale.h:1714
bool clearStats
Definition: cpsw_ale.h:1652
bool cpswVlanAwareMode
Definition: cpsw_ale.h:1837
uint32_t aleEntryMask
Definition: cpsw_ale.h:1640
Unregulated traffic (no classifier hit) policing params.
Definition: cpsw_ale.h:1751
CpswAle_VlanIdInfo vlanIdInfo
Definition: cpsw_ale.h:981
IP packet security configuration.
Definition: cpsw_ale.h:1876
bool vidIngressCheck
Definition: cpsw_ale.h:1006
bool innerVlanEn
Definition: cpsw_ale.h:1286
bool threadIdEn
Definition: cpsw_ale.h:1687
@ CPSW_ALE_IPADDR_CLASSIFIER_IPV6
Definition: cpsw_ale.h:1372
Port specific VLAN security configuration.
Definition: cpsw_ale.h:1952
Input args for CPSW_ALE_IOCTL_SET_PORT_MIRROR_CFG command.
Definition: cpsw_ale.h:1224
VLAN entry type info.
Definition: cpsw_ale.h:979
uint32_t egressTrunkIdx
Definition: cpsw_ale.h:1813
CpswAle_IpAddrClassifierInfo dstIpInfo
Definition: cpsw_ale.h:1450
@ CPSW_ALE_IOCTL_REMOVE_ETHERTYPE
Delete entry info for given EtherType.
Definition: cpsw_ale.h:440
@ CPSW_ALE_IOCTL_GET_POLICER_STATS
Get ALE policer statistics.
Definition: cpsw_ale.h:686
uint32_t mcastLimitNumPktsPerSec
Definition: cpsw_ale.h:1325
CpswAle_IPPktSecurityCfg ipPktCfg
Definition: cpsw_ale.h:1929
@ CPSW_ALE_IOCTL_GET_BCAST_MCAST_LIMIT
Get configured broadcast/multicast rate limit configuration.
Definition: cpsw_ale.h:618
CpswAle_MirrorMatchParams matchParams
Definition: cpsw_ale.h:1249
bool priorityOrEn
Definition: cpsw_ale.h:1144
uint32_t addrCnt
Definition: cpsw_ale.h:1121
@ CPSW_ALE_IOCTL_ADD_ETHERTYPE
Add EtherType entry.
Definition: cpsw_ale.h:342
Output args for CPSW_ALE_IOCTL_GET_POLICER, CPSW_ALE_IOCTL_SET_POLICER_THREADCFG, CPSW_ALE_IOCTL_BLOC...
Definition: cpsw_ale.h:1530
CpswAle_PortVlanSecurityCfg vlanCfg
Definition: cpsw_ale.h:2008
@ CPSW_ALE_IOCTL_ADD_IPV6ADDR
Add IPv6 address.
Definition: cpsw_ale.h:331
bool rateLimitAtTxPort
Definition: cpsw_ale.h:1334
uint32_t threadId
Definition: cpsw_ale.h:1690
@ CPSW_ALE_POLICER_NOMATCH_MODE_RED
Definition: cpsw_ale.h:1741
Output args for CPSW_ALE_IOCTL_LOOKUP_UCAST command.
Definition: cpsw_ale.h:895
uint32_t routeIdx
Definition: cpsw_ale.h:1806
uint32_t numIgnBits
Definition: cpsw_ale.h:948
IPv6 entry info.
Definition: cpsw_ale.h:1075
bool super
Definition: cpsw_ale.h:914
uint32_t unknownVlanMemberListMask
Definition: cpsw_ale.h:1855
uint32_t srcPortNumMask
Definition: cpsw_ale.h:1252
bool policerRedHit
Definition: cpsw_ale.h:1668
CpswAle_PolicerYellowThresh yellowThresh
Definition: cpsw_ale.h:1776
@ CPSW_ALE_POLICER_YELLOWTHRESH_DROP_PERCENT_100
Definition: cpsw_ale.h:1702
@ CPSW_ALE_IOCTL_ADD_MCAST
Add multicast address entry.
Definition: cpsw_ale.h:288
ALE classifier/policer match parameters for source or destination MAC address.
Definition: cpsw_ale.h:1179
uint32_t etherTypeAleEntryIdx
Definition: cpsw_ale.h:1507
uint32_t portNum
Definition: cpsw_ale.h:1402
uint32_t regMcastFloodMask
Definition: cpsw_ale.h:1029
@ CPSW_ALE_IOCTL_DUMP_TABLE
Dump ALE table entries.
Definition: cpsw_ale.h:266
bool rateLimitEn
Definition: cpsw_ale.h:1350
@ CPSW_ALE_IOCTL_SET_PORT_STATE
Set port state.
Definition: cpsw_ale.h:507
@ CPSW_ALE_IOCTL_ADD_IPV4ADDR
Add IPv4 address.
Definition: cpsw_ale.h:320
uint32_t etherTypeAleEntryIdx
Definition: cpsw_ale.h:1578
@ CPSW_ALE_POLICER_YELLOWTHRESH_DROP_PERCENT_25
Definition: cpsw_ale.h:1711
ALE port mirroring configuration for mirroring based on packet match.
Definition: cpsw_ale.h:1191
@ CPSW_ALE_POLICER_YELLOWTHRESH_DROP_PERCENT_33
Definition: cpsw_ale.h:1708
IPv4 entry info.
Definition: cpsw_ale.h:1063
uint32_t policerEntryIdx
Definition: cpsw_ale.h:1520
CpswAle_IpAddrClassifierInfo srcIpInfo
Definition: cpsw_ale.h:1445
@ CPSW_ALE_IOCTL_SET_TRUNK_CFG
Set port trunking configuration.
Definition: cpsw_ale.h:585
@ CPSW_ALE_IOCTL_LOOKUP_MCAST
Return entry info for given multicast address.
Definition: cpsw_ale.h:363
Input args for CPSW_ALE_IOCTL_SET_POLICER_THREADCFG command.
Definition: cpsw_ale.h:1682
bool dstIPEn
Definition: cpsw_ale.h:1275
bool authModeEn
Definition: cpsw_ale.h:1898
uint32_t ivlanAleEntryIdx
Definition: cpsw_ale.h:1497
CpswAle_PolicerYellowThresh
Yellow threshold value.
Definition: cpsw_ale.h:1700
uint32_t dstMacAleEntryIdx
Definition: cpsw_ale.h:1492
@ CPSW_ALE_PORTSTATE_FORWARD
Definition: cpsw_ale.h:788
uint32_t aleEntryIdx
Definition: cpsw_ale.h:960
uint32_t commitRateInBitsPerSec
Definition: cpsw_ale.h:1471
This file contains the Enet configuration parameters.
bool disallowIPFrag
Definition: cpsw_ale.h:1044
uint32_t totalAddrCnt
Definition: cpsw_ale.h:1124
uint32_t commitRateInBitsPerSec
Definition: cpsw_ale.h:1601
CpswAle_OuiEntryInfo ouiInfo
Definition: cpsw_ale.h:1213
#define ENET_MAC_ADDR_LEN
MAC address length in bytes/octets.
Definition: enet_types.h:153
@ CPSW_ALE_IOCTL_SET_PORT_MIRROR_CFG
Set port mirroring configuration.
Definition: cpsw_ale.h:562
Broadcast/multicast bandwidth limit configuration parameters.
Definition: cpsw_ale.h:1308
CpswAle_McastEntryInfo info
Definition: cpsw_ale.h:957
CpswAle_UcastEntryInfo info
Definition: cpsw_ale.h:897
bool limitIPNxtHdr
Definition: cpsw_ale.h:1041
uint32_t portNum
Definition: cpsw_ale.h:857
@ CPSW_ALE_IOCTL_SET_POLICER_GLOBAL_CFG
Configure policer global settings. IOCTL params:
Definition: cpsw_ale.h:707
@ CPSW_ALE_TABLE_ENTRY_TYPE_ETHERTYPE
Definition: cpsw_ale.h:1162
@ CPSW_ALE_IOCTL_AGE_ALL_ENTRIES
Age all entries now.
Definition: cpsw_ale.h:475
bool blocked
Definition: cpsw_ale.h:861
uint32_t threadId
Definition: cpsw_ale.h:1141
bool ttlCheckEn
Definition: cpsw_ale.h:1799
CpswAle_InitVlanCfg vlanCfg
Definition: cpsw_ale.h:2035
uint32_t portMask
Definition: cpsw_ale.h:920
bool macOnlyEn
Definition: cpsw_ale.h:1991
@ CPSW_ALE_IOCTL_DUMP_POLICER_ENTRIES
Dump ALE policer entries.
Definition: cpsw_ale.h:675
CpswAle_IPv6EntryInfo ipv6Info
Definition: cpsw_ale.h:1209
VLAN id info.
Definition: cpsw_ale.h:967
uint32_t ovlanId
Definition: cpsw_ale.h:1435
bool super
Definition: cpsw_ale.h:870
@ CPSW_ALE_IOCTL_ADD_VLAN
Add inner/outer VLAN entry.
Definition: cpsw_ale.h:299
void CpswAle_initCfg(CpswAle_Cfg *aleCfg)
Initialize CPSW ALE configuration parameters.
@ CPSW_ALE_IOCTL_REMOVE_IPV4ADDR
Delete entry info for given IPv4 address.
Definition: cpsw_ale.h:418
@ CPSW_ALE_IOCTL_GET_RX_FILTER
Get current host port Rx filter.
Definition: cpsw_ale.h:497
Output args for CPSW_ALE_IOCTL_GET_PORT_MACADDR command.
Definition: cpsw_ale.h:1114
CpswAle_UnregulatedTrafficPolicer noMatchPolicer
Definition: cpsw_ale.h:1784
uint32_t dstIpAleEntryIdx
Definition: cpsw_ale.h:1588
CpswAle_PolicerMatchParams policerMatch
Definition: cpsw_ale.h:1796
uint32_t forceUntaggedEgressMask
Definition: cpsw_ale.h:1032
bool limitIPNxtHdr
Definition: cpsw_ale.h:1010
bool dropDoubleVlan
Definition: cpsw_ale.h:1966
@ CPSW_ALE_POLICER_NOMATCH_MODE_UNREGULATED_TRAFFIC_POLICER
Definition: cpsw_ale.h:1744
CpswAle_MacAddrClassifierInfo dstMacAddrInfo
Definition: cpsw_ale.h:1425
uint32_t trunkHashBase
Definition: cpsw_ale.h:1270
#define ENET_IPv6_ADDR_LEN
IPv6 address length in bytes/octets.
Definition: enet_types.h:162
Unicast entry type info apart from MAC address that can be set.
Definition: cpsw_ale.h:854
@ CPSW_ALE_RXFILTER_NOTHING
Definition: cpsw_ale.h:820
CpswAle_PolicerGlobalCfg policerGlobalCfg
Definition: cpsw_ale.h:2029
uint16_t etherType
Definition: cpsw_ale.h:1217
uint32_t numPorts
Definition: cpsw_ale.h:1264
@ CPSW_ALE_IOCTL_REMOVE_OUI
Delete entry info for given OUI address.
Definition: cpsw_ale.h:407
uint32_t agingPeriodInMs
Definition: cpsw_ale.h:1825
@ CPSW_ALE_RXFILTER_ALLMCAST
Definition: cpsw_ale.h:832
bool matchEn
Definition: cpsw_ale.h:1238
Output args for CPSW_ALE_IOCTL_LOOKUP_MCAST command.
Definition: cpsw_ale.h:955
uint32_t egressOpcode
Definition: cpsw_ale.h:1614
bool ageable
Definition: cpsw_ale.h:873
@ CPSW_ALE_IOCTL_DISABLE_BCAST_MCAST_LIMIT
Disable broadcast/multicast rate limit.
Definition: cpsw_ale.h:629