Page MenuHomeFreeBSD

vtnet: improve interface capability handling
ClosedPublic

Authored by tuexen on Mon, Sep 22, 8:00 PM.
Tags
None
Referenced Files
F132284567: D52682.id162591.diff
Wed, Oct 15, 12:41 PM
Unknown Object (File)
Fri, Oct 10, 3:07 AM
Unknown Object (File)
Fri, Oct 10, 3:07 AM
Unknown Object (File)
Fri, Oct 10, 3:07 AM
Unknown Object (File)
Thu, Oct 9, 10:12 PM
Unknown Object (File)
Wed, Oct 8, 2:41 PM
Unknown Object (File)
Sat, Oct 4, 10:22 AM
Unknown Object (File)
Fri, Oct 3, 5:57 PM
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.Fri, Sep 26, 7:15 AM
bcr added a subscriber: bcr.

OK from manpages.

tuexen marked an inline comment as done.

Committed in eaf619fddcb2.