Page MenuHomeFreeBSD

vtnet: deprecate loader tunable fixup_needs_csum
ClosedPublic

Authored by timo.voelker_fh-muenster.de on Sep 15 2025, 10:05 AM.
Tags
None
Referenced Files
F135947255: D52546.id162211.diff
Fri, Nov 14, 11:06 AM
Unknown Object (File)
Tue, Nov 11, 5:44 AM
Unknown Object (File)
Tue, Nov 11, 4:42 AM
Unknown Object (File)
Mon, Nov 10, 7:19 AM
Unknown Object (File)
Sat, Nov 1, 8:36 PM
Unknown Object (File)
Wed, Oct 29, 10:10 AM
Unknown Object (File)
Wed, Oct 29, 8:39 AM
Unknown Object (File)
Wed, Oct 29, 8:38 AM
Subscribers

Details

Summary

Deprecate loader tunable fixup_needs_csum of the vtnet interface.

If this tunable is enabled and vtnet receives a packet with VIRTIO_NET_HDR_F_NEEDS_CSUM set, vtnet computes the TCP/UDP checksum and writes it in the checksum field. This was somewhat useful in the time when vtnet pretended that such a packet has a correct checksum and set the mbuf flag CSUM_DATA_VALID. However, since D51686, this is not the case anymore.

Furthermore, the guest can avoid receiving packets with an incorrect checksum and VIRTIO_NET_HDR_F_NEEDS_CSUM set by disabling the feature VIRTIO_NET_F_GUEST_CSUM. With vtnet, this is possible by disabling RXCSUM on the interface.

Diff Detail

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

Event Timeline

share/man/man4/vtnet.4
87

I guess you want something like

This tunable is deprecated and will be removed in
.Fx 16 .
timo.voelker_fh-muenster.de added inline comments.
share/man/man4/vtnet.4
87

Yes, that's probably better. Thanks!

This revision is now accepted and ready to land.Sep 16 2025, 9:37 PM