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)
Mon, Jun 8, 12:23 PM
Unknown Object (File)
Mon, Jun 8, 4:50 AM
Unknown Object (File)
May 14 2026, 11:31 AM
Unknown Object (File)
May 14 2026, 2:38 AM
Unknown Object (File)
May 13 2026, 7:27 PM
Unknown Object (File)
May 13 2026, 7:27 PM
Unknown Object (File)
May 13 2026, 7:26 PM
Unknown Object (File)
May 13 2026, 7:25 PM
Subscribers

Details

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

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