RX Checksum Offload

Versal Adaptive SoC Technical Reference Manual (AM011)

Document ID
Release Date
1.6 English

When receive checksum offloading is enabled, the IPv4 header checksum is checked per the IETF Std RFC 791, where the packet meets the following criteria.

  • If present, the VLAN header must be four octets long and the CFI bit must not be set
  • Encapsulation must be IETF Std RFC 894 Ethernet type encoding or IETF Std RFC 1042 SNAP encoding
  • It is a IPv4 packet
  • IP header is of a valid length

The controller also checks the TCP checksum per IETF Std RFC 793, or the UDP checksum per IETF Std RFC 768, if the following criteria are met.

  • A IPv4 or IPv6 packet
  • Good IP header checksum (if IPv4)
  • No IP fragmentation
  • A TCP or UDP packet

When an IP, TCP, or UDP frame is received, the receive buffer descriptor provides an indication if the controller was able to verify the checksums. There is also an indication if the frame had LLC SNAP encapsulation. These indication bits replace the specific type ID match indication bits when receive checksum offload is enabled.

If any of the checksums are verified to be incorrect by the controller, the packet is discarded and the appropriate statistics counter is incremented.