Page MenuHomeFreeBSD

dwc: improve checksum offloading
Needs ReviewPublic

Authored by tuexen on Mon, Dec 29, 2:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 30, 4:41 PM
Unknown Object (File)
Tue, Dec 30, 3:37 PM
Unknown Object (File)
Tue, Dec 30, 8:08 AM
Subscribers

Details

Summary

This patch provides two improvements for TCP/IPv4 and UDP/IPv4 checksum offloading:

  1. Use *CIC_SEG instead of *CIC_FULL, since FreeBSD always provides a pseudo header checksum.
  2. Don't make IPv4 header checksum offloading a prerequisite for TCP/IPv4 or UDP/IPv4 checksum offloading.

This is the root cause of PR 291696, since right now the epair interface does not support IPv4 header checksum offloading, but TCP/IPv4 and UDP/IPv4 checksum offloading.

Thanks to Marek Benc for reporting the issue and testing the fix.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped