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)
Mar 20 2024, 1:46 PM
Unknown Object (File)
Mar 20 2024, 1:43 PM
Unknown Object (File)
Feb 3 2024, 7:59 AM
Unknown Object (File)
Jan 4 2024, 6:42 AM
Unknown Object (File)
Dec 31 2023, 7:39 PM
Unknown Object (File)
Dec 20 2023, 12:49 AM
Unknown Object (File)
Dec 17 2023, 4:31 AM
Unknown Object (File)
Dec 13 2023, 4:19 AM
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.