Page MenuHomeFreeBSD

Increasing Virtio driver TX scatter gather segments (VTNET_MIN_TX_SEGS) to support JUMBO MTU frames.
ClosedPublic

Authored by lohithbsd_gmail.com on Dec 15 2016, 5:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 9, 3:17 AM
Unknown Object (File)
Tue, Apr 9, 12:56 AM
Unknown Object (File)
Mon, Apr 8, 4:32 PM
Unknown Object (File)
Mon, Apr 8, 10:57 AM
Unknown Object (File)
Mon, Apr 8, 8:51 AM
Unknown Object (File)
Jan 31 2024, 5:09 AM
Unknown Object (File)
Dec 23 2023, 10:03 AM
Unknown Object (File)
Dec 2 2023, 10:49 AM
Subscribers

Details

Summary

Currently in Virtio driver without TSO/GSO features enabled, the max scatter gather segments for the TX path can be 4, which limits the support for 9K JUMBO frames. 9K JUMBO frames results in more than 4 scatter gather segments and virtio driver fails to send the frame down to host OS. With TSO/GSO feature enabled max scatter gather segments can be 64, then 9K JUMBO frames are fine, this is making virtio driver to support JUMBO frames only with TSO/GSO. Increasing the VTNET_MIN_TX_SEGS which is the case for non TSO/GSO to 32 to support upto 64K JUMBO frames to Host.

Test Plan

Verified the 64K JUMBO frames transmission between FreeBSD guest OS and Yocto Linux Host OS.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6254
Build 6497: arc lint + arc unit

Event Timeline

lohithbsd_gmail.com retitled this revision from to Increasing Virtio driver TX scatter gather segments (VTNET_MIN_TX_SEGS) to support JUMBO MTU frames..
lohithbsd_gmail.com updated this object.
lohithbsd_gmail.com edited the test plan for this revision. (Show Details)
adrian edited edge metadata.

looks good! do you need this committed?

This revision is now accepted and ready to land.Dec 30 2016, 2:48 PM

looks good! do you need this committed?

Hi, I've got a few concerns so please hold off for now. Thanks.

looks good! do you need this committed?

Thanks a lot Adrian. I am waiting for Bryan's comments. Yes, need your help in committing.

Cheers,
Lohith

@bryanv do you have time to look at this now?

This revision was automatically updated to reflect the committed changes.