AM261x MCU+ SDK: CpswAle_PortMirroringCfg Struct Reference

| AM261x MCU+ SDK 26.00.00 |

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

## Detailed Description

Input args for CPSW_ALE_IOCTL_SET_PORT_MIRROR_CFG command.

## Data Fields
bool | srcEn
bool | dstEnEn
bool | matchEn
uint32_t | dstPortNum
uint32_t | toPortNum
CpswAle_MirrorMatchParams | matchParams
uint32_t | srcPortNumMask

## Field Documentation

## ◆ srcEn

bool CpswAle_PortMirroringCfg::srcEn

Enables the source port mirror option. When this bit is set any port with the pX_mirror_sp set in the ALE Port Control registers set will have its received traffic also sent to the mirror_top port

## ◆ dstEnEn

bool CpswAle_PortMirroringCfg::dstEnEn

Enables the destination port mirror option. When this bit is set any traffic destined for the mirror_dp port will have its transmit traffic also sent to the mirror_top port

## ◆ matchEn

bool CpswAle_PortMirroringCfg::matchEn

Enables the match mirror option. When this bit is set any traffic whose destination, source, VLAN or OUI matches the mirror_midx entry index will have that traffic also sent to the mirror_top port

## ◆ dstPortNum

uint32_t CpswAle_PortMirroringCfg::dstPortNum

The port to which destination traffic destined will be duplicated

## ◆ toPortNum

uint32_t CpswAle_PortMirroringCfg::toPortNum

The destination port for the mirror traffic

## ◆ matchParams

CpswAle_MirrorMatchParams CpswAle_PortMirroringCfg::matchParams

ALE lookup table entry info that when a match occurs will cause this traffic to be mirrored to the mirror_top port. Must be valid if matchEn is TRUE

## ◆ srcPortNumMask

uint32_t CpswAle_PortMirroringCfg::srcPortNumMask

Source port number mirroring enable bitmask