Page MenuHomeFreeBSD

vtnet: improve interface capability handling
ClosedPublic

Authored by tuexen on Sep 22 2025, 8:00 PM.
Tags
None
Referenced Files
F151055970: D52682.diff
Sun, Apr 5, 4:54 PM
F151004136: D52682.diff
Sun, Apr 5, 10:13 AM
F150974936: D52682.id.diff
Sun, Apr 5, 6:28 AM
Unknown Object (File)
Sat, Apr 4, 2:48 PM
Unknown Object (File)
Wed, Apr 1, 5:22 AM
Unknown Object (File)
Wed, Mar 25, 11:19 PM
Unknown Object (File)
Wed, Mar 25, 9:17 AM
Unknown Object (File)
Tue, Mar 24, 2:03 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.