Page MenuHomeFreeBSD

vtnet: don't provide VIRTIO_NET_HDR_F_DATA_VALID
ClosedPublic

Authored by tuexen on Nov 9 2025, 8:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 19, 8:09 PM
Unknown Object (File)
Wed, Mar 18, 5:09 AM
Unknown Object (File)
Wed, Mar 11, 10:54 AM
Unknown Object (File)
Wed, Mar 11, 10:04 AM
Unknown Object (File)
Wed, Mar 11, 8:52 AM
Unknown Object (File)
Wed, Mar 11, 5:11 AM
Unknown Object (File)
Mon, Mar 9, 12:34 PM
Unknown Object (File)
Fri, Feb 27, 9:01 PM
Subscribers

Details

Diff Detail

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

Event Timeline

tuexen requested review of this revision.Nov 9 2025, 8:26 PM

It's strange that the spec does not allow the driver to set the VIRTIO_NET_HDR_F_DATA_VALID flag. If the host receives a packet over a physical interface that validates the checksum, forwards that packet to a VM, and the VM sends it out again (e. g., because of routing), we now lose the information that the checksum has already been validated. However, the spec appears to be clear on that, and I guess FreeBSD should follow it.

This revision is now accepted and ready to land.Nov 10 2025, 10:01 AM