PDK API Guide for J721E
CpswHostPort_Config Struct Reference

Detailed Description

Host port submodule configuration.

Data Fields

Cpsw_CrcType crcType
 
bool removeCrc
 
bool padShortPacket
 
bool passCrcErrors
 
uint32_t rxMtu
 
bool passPriorityTaggedUnchanged
 
bool enableCsumOffload
 
bool enableRxVlanRemap
 
bool enableRxDscpIPv4Remap
 
bool enableRxDscpIPv6Remap
 
CpswPort_VlanConfig vlanCfg
 
CpswHostPort_RxPriorityType rxPriorityType
 
CpswPort_TxPriorityType txPriorityType
 

Field Documentation

Cpsw_CrcType CpswHostPort_Config::crcType

Type of CRC on all port 0 egress, regardless of the CRC type in Ethernet port ingress

bool CpswHostPort_Config::removeCrc

Whether or not CRC is removed on port 0 egress

bool CpswHostPort_Config::padShortPacket

Whether short packets (ingress) are padded to 64-bytes or dropped

bool CpswHostPort_Config::passCrcErrors

Whether packets with CRC errors (ingress) are dropped or transferred to the destination ports

uint32_t CpswHostPort_Config::rxMtu

Max length of a received frame on ingress, including VLAN

bool CpswHostPort_Config::passPriorityTaggedUnchanged

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

bool CpswHostPort_Config::enableCsumOffload

Enable checksum offload feature which allows TCP checksum computation to be offloaded to the CPSW for frames transmitted by any core. The Protocol specific info needs to be populated in the descriptor to indicate the location in the packet where the computed checksum should be inserted

bool CpswHostPort_Config::enableRxVlanRemap

RX VLAN remap controls whether the hardware switch priority for VLAN tagged or priority tagged packets is determined from CPPI thread number (remap disabled) or via CPSW_HOSTPORT_IOCTL_SET_TX_PRIORITY (remap enabled)

bool CpswHostPort_Config::enableRxDscpIPv4Remap

RX DSCP IPv4 remap controls whether the hardware switch priority for IPv4 packets is determined from CPPI thread number (remap disabled) or via CPSW_HOSTPORT_IOCTL_SET_TX_PRIORITY (remap enabled)

bool CpswHostPort_Config::enableRxDscpIPv6Remap

RX DSCP IPv6 remap controls whether the hardware switch priority for IPv6 packets is determined from CPPI thread number (remap disabled) or via CPSW_HOSTPORT_IOCTL_SET_TX_PRIORITY (remap enabled)

CpswPort_VlanConfig CpswHostPort_Config::vlanCfg

Port VLAN configuration

CpswHostPort_RxPriorityType CpswHostPort_Config::rxPriorityType

Ingress priority type

CpswPort_TxPriorityType CpswHostPort_Config::txPriorityType

Egress priority type