AM261x MCU+ SDK: CpswAle_PortMacModeCfg Struct Reference

| AM261x MCU+ SDK 26.00.00 |

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

## Detailed Description

Port MAC mode configuration.

## Data Fields
bool | macOnlyCafEn
bool | macOnlyEn

## Field Documentation

## ◆ macOnlyCafEn

bool CpswAle_PortMacModeCfg::macOnlyCafEn

MAC-only Copy All Frames:

- When set a Mac Only port will transfer all received good frames to the host
- When clear a Mac Only port will transfer packets to the host based on ALE destination address lookup operation (which operates more like an Ethernet MAC)

## ◆ macOnlyEn

bool CpswAle_PortMacModeCfg::macOnlyEn

MAC-only. When set enables this port be treated like a MAC port for the host. All traffic received is only sent to the host. The host must direct traffic to this port as the lookup engine will not send traffic to the ports with the p0_maconly bit set and the p0_no_learn also set. If p0_maconly bit is set and the p0_no_learn is not set, the host can send non-directed packets that can be sent to the destination of a MacOnly port. It is also possible that The host can broadcast to ports including MacOnly ports in this mode