PDK API Guide for J721E
CpswMacPort_Cfg Struct Reference

Detailed Description

MAC port module configuration parameters.

Data Fields

bool loopbackEn
 
Enet_CrcType crcType
 
uint32_t rxMtu
 
bool passPriorityTaggedUnchanged
 
EnetPort_VlanCfg vlanCfg
 
EnetPort_EgressPriorityType txPriorityType
 
EnetMac_SgmiiMode sgmiiMode
 
bool txEccErrEn
 
bool rxEccErrEn
 

Field Documentation

◆ loopbackEn

bool CpswMacPort_Cfg::loopbackEn

Whether loopback mode is enabled or not

◆ crcType

Enet_CrcType CpswMacPort_Cfg::crcType

Type of CRC

◆ rxMtu

uint32_t CpswMacPort_Cfg::rxMtu

Max length of a received frame on ingress. This max length includes VLAN

◆ passPriorityTaggedUnchanged

bool CpswMacPort_Cfg::passPriorityTaggedUnchanged

Whether priority tagged packets should be passed unchanged (if set to BTRUE) or replaced with port's VID (if set to BFALSE)

◆ vlanCfg

EnetPort_VlanCfg CpswMacPort_Cfg::vlanCfg

Port VLAN configuration

◆ txPriorityType

EnetPort_EgressPriorityType CpswMacPort_Cfg::txPriorityType

Egress priority type

◆ sgmiiMode

EnetMac_SgmiiMode CpswMacPort_Cfg::sgmiiMode

SGMII mode. Applicable only when port is used in Q/SGMII mode

◆ txEccErrEn

bool CpswMacPort_Cfg::txEccErrEn

Enable TX ECC error test operations. When enabled, ECC errors can be injected via the corresponding ECC module. Otherwise, injected errors won't take any effect. Note that ECC functionality itself is always enabled.

◆ rxEccErrEn

bool CpswMacPort_Cfg::rxEccErrEn

Enable RX ECC error test operations. When enabled, ECC errors can be injected via the corresponding ECC module. Otherwise, injected errors won't take any effect. Note that ECC functionality itself is always enabled.