Page MenuHomeFreeBSD

vtnet: improve interface capability handling
ClosedPublic

Authored by tuexen on Sep 22 2025, 8:00 PM.
Tags
None
Referenced Files
F146507580: D52682.id162843.diff
Tue, Mar 3, 5:53 AM
Unknown Object (File)
Fri, Feb 27, 9:34 PM
Unknown Object (File)
Fri, Feb 27, 7:41 AM
Unknown Object (File)
Tue, Feb 24, 1:22 AM
Unknown Object (File)
Mon, Feb 23, 2:09 AM
Unknown Object (File)
Mon, Feb 23, 2:08 AM
Unknown Object (File)
Mon, Feb 23, 2:08 AM
Unknown Object (File)
Fri, Feb 20, 10:20 AM
Subscribers

Details

Summary

Enable the handling of the IFCAP_RXCSUM_IPV6 handling by handling IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 as a pair.
Also make clear, that software and hardware LRO require receive checksum offload.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

tuexen added a reviewer: manpages.
sys/dev/virtio/network/if_vtnet.c
1373

IPv6 has no checksum. How about this

* VirtIO does not distinguish between IPv4 and IPv6, 
* it uses only the one feature flag VIRTIO_NET_F_GUEST_CSUM,
* so treat them as a pair.
tuexen added inline comments.
sys/dev/virtio/network/if_vtnet.c
1373

I think the comment is now clearer.

Removing the ifdefs and allow receive checksum offloading for IPv6 is a good thing. Also, enabling/disabling receive checksum pairwise for IPv4 and IPv6 make sense for VirtIO.

This revision is now accepted and ready to land.Sep 26 2025, 7:15 AM
bcr added a subscriber: bcr.

OK from manpages.

tuexen marked an inline comment as done.

Committed in eaf619fddcb2.