Page MenuHomeFreeBSD

hyperv/hn: Reorganize TX csum offloading
ClosedPublic

Authored by sepherosa_gmail.com on Jan 28 2016, 5:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 6, 1:11 AM
Unknown Object (File)
Aug 31 2025, 6:01 PM
Unknown Object (File)
Aug 31 2025, 1:45 PM
Unknown Object (File)
Aug 11 2025, 4:34 AM
Unknown Object (File)
Aug 2 2025, 1:29 AM
Unknown Object (File)
Jul 28 2025, 4:22 AM
Unknown Object (File)
Jul 21 2025, 4:46 PM
Unknown Object (File)
Jul 21 2025, 4:35 PM
Subscribers

Details

Summary

For non-TSO offloading, we don't need to access mbuf to know which csum offloading is requested, we can just use the CSUM_{IP,TCP,UDP} in the csum_flags.

For TSO offloading, we still can depend on CSUM_{TSO4,TSO6} in the csum_flags to tell whether the TSO packet is an IPv4 TSO packet or an IPv6 TSO packet.

This streamlines csum offloading handling (remove the two goto) and allows us the nuke the unnecessary get_transport_proto_type().

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sepherosa_gmail.com retitled this revision from to hyperv/hn: Reorganize TX csum offloading.
sepherosa_gmail.com updated this object.
sepherosa_gmail.com edited the test plan for this revision. (Show Details)

This needs a more comprehensive description. :-)

sepherosa_gmail.com edited edge metadata.

This needs a more comprehensive description. :-)

OK, description updated :)

This revision is now accepted and ready to land.Jan 29 2016, 10:42 AM
adrian edited edge metadata.

Good!

This revision was automatically updated to reflect the committed changes.