SPRUJB6B November 2024 – May 2025 AM2612
Packets sent from host port 0 (switch ingress) to any Ethernet port can have a checksum calculated and inserted into the Ethernet egress packet. The RX_CHECKSUM_EN bit in the CPSW_P0_CONTROL_REG register must be set for receive checksum operation to be enabled. When bit RX_CHECKSUM_EN is enabled and when the CHKSUM_ENCAP SOP receive buffer descriptor is set, the first four packet bytes contain the checksum information which determines how the checksum is calculated. The CHECKSUM_RESULT field determines where the checksum is inserted in the egress packet. The checksum result location is adjusted by the egress port if a VLAN is to be inserted or removed on Ethernet port egress.