Data Fields
CpswHostPort_Config_s Struct Reference

Host port submodule configuration. More...

#include <cpsw_hostport.h>

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
 

Detailed Description

Host port submodule configuration.

Field Documentation

Cpsw_CrcType CpswHostPort_Config_s::crcType

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

bool CpswHostPort_Config_s::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_s::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_s::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)

bool CpswHostPort_Config_s::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_s::padShortPacket

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

bool CpswHostPort_Config_s::passCrcErrors

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

bool CpswHostPort_Config_s::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_s::removeCrc

Whether or not CRC is removed on port 0 egress

uint32_t CpswHostPort_Config_s::rxMtu

Max length of a received frame on ingress, including VLAN

CpswHostPort_RxPriorityType CpswHostPort_Config_s::rxPriorityType

Ingress priority type

CpswPort_TxPriorityType CpswHostPort_Config_s::txPriorityType

Egress priority type

CpswPort_VlanConfig CpswHostPort_Config_s::vlanCfg

Port VLAN configuration


The documentation for this struct was generated from the following file:

Copyright 2020, Texas Instruments Incorporated