Page MenuHomeFreeBSD

dwc: add receive checksum offload for IPv6
ClosedPublic

Authored by tuexen on Sat, Jan 17, 11:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 25, 4:41 AM
Unknown Object (File)
Sun, Jan 25, 3:30 AM
Unknown Object (File)
Fri, Jan 23, 10:50 AM
Unknown Object (File)
Thu, Jan 22, 5:25 PM
Unknown Object (File)
Tue, Jan 20, 5:28 PM
Unknown Object (File)
Sun, Jan 18, 6:06 PM
Unknown Object (File)
Sun, Jan 18, 1:52 PM
Unknown Object (File)
Sun, Jan 18, 11:10 AM
Subscribers

Details

Summary

This patch adds support for receive checksum offload for TCP/IPv6 and UDP/IPv6. Since receive checksum offload can't be configured separately for IPv4 and IPv6, IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 can't be changed independently.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks good to me.

Since the interface does receive checksum offloading for TCP and UDP over IPv6 already, adding IFCAP_RXCSUM_IPV6 has no functional change. Instead, this lets the interface better report what it does.

Coupling IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 makes sense since the interface seems to do both or nothing.

sys/dev/dwc/if_dwc.c
616–617

After D54754 has been committed, IFCAP_RXCSUM_IPV6 and IFCAP_TXCSUM_IPV6 can be exchanged by IFCAP_HWCSUM_IPV6.

This revision is now accepted and ready to land.Sat, Jan 17, 1:54 PM
tuexen added inline comments.
sys/dev/dwc/if_dwc.c
616–617

After D54754 has been committed, IFCAP_RXCSUM_IPV6 and IFCAP_TXCSUM_IPV6 can be exchanged by IFCAP_HWCSUM_IPV6.

That is the plan...

This revision was automatically updated to reflect the committed changes.
tuexen marked an inline comment as done.