User Details
- User Since
- Jul 13 2025, 2:07 PM (68 w, 5 d)
Wed, Nov 4
Oct 2 2026
Sep 30 2026
Aug 24 2026
Looks like code improvements to me. I also don't see a functional change.
Aug 22 2026
vtnet defined the receive-side offload functions only if INET or INET6 were defined. While I copied this to virtio_net.h, I missed checking if INET or INET6 was defined when calling one of these functions from tuntap.
Aug 20 2026
Aug 11 2026
Aug 10 2026
Changes how virtio_net.h does byte conversion. Instead of using virtio_gtoh16, which is unintuitive when called from the host, it uses the new macro VIRTIO_NET_TX_MODERN_LE.
Jul 8 2026
Rebased the patch on the current FreeBSD main branch.
Jul 4 2026
Jul 1 2026
After applying this patch, the ip_reass_test tests pass on my system.
It seems this bug shows only after D57518 because, before that change, the loopback interface with IFCAP_RXCSUM enabled just told IP for each packet that the checksum has been checked and is valid. After that change, the loopback interface does not pretend that anymore, and IP validates the checksum.
Jun 29 2026
Jun 24 2026
Jun 23 2026
Jun 22 2026
@jhb's comments addressed.
@pouria, thanks for the clarifications. Your inline comments in if_offload.c and if_offload.h disappeared after I renamed them to if_tx_offload.c and if_tx_offload.h. I created new inline comments and quoted your text.
Addresses @pouria's comments.
Jun 10 2026
Jun 9 2026
Plan changed. Instead of computing the checksum in the bridge, do it right before the driver gets the packet: D56564
Jun 6 2026
Thanks for your review!
Jun 3 2026
Jun 2 2026
May 31 2026
Call virtio_net_rx_csum() only if VIRTIO_NET_HDR_F_NEEDS_CSUM or VIRTIO_NET_HDR_F_DATA_VALID is set.
May 30 2026
Update the vnet_hdr_len in tap_set_cap().
May 28 2026
May 19 2026
Apr 26 2026
Addresses @bcr's comment.
To check the impact of IPv4 header checksum, I ran tests.
Offloading of IP header and TCP/UDP checksum need to work independently. This solves a bug.
Apr 25 2026
Addresses @kp's comment.
Leave the lines that initialize ip_sum with 0, which some NICs require.
Change option syntax from -Bw to -W, add -R, and revise the code.
Apr 24 2026
Apr 23 2026
Addresses @gallatin's comments.
Apr 22 2026
Addresses @gallatin's comment.
Apr 21 2026
Apr 19 2026
Mar 22 2026
Mar 21 2026
Mar 18 2026
Mar 17 2026
Why changing hw.virtio.pci.transitional to 1 by default:
Mar 2 2026
Mar 1 2026
Feb 28 2026
Feb 26 2026
Feb 22 2026
Looks good to me. It improves readability, in my opinion. Also, it eliminates unnecessary m_freem calls with a null pointer.
I agree on @pouria's comment.
Feb 19 2026
Solves this bug:
Feb 10 2026
Feb 9 2026
Feb 3 2026
Allow enabling/disabling the new capabilities: IFCAP_TXCSUM, IFCAP_TXCSUM_IPV6, and IFCAP_VLAN_HWCSUM.
Use CSUM_BITS string defined in sys/mbuf.h for output.
Feb 2 2026
Feb 1 2026
Jan 31 2026
Addressed @tuxen's style comments.
Without this patch, transmit checksum offloading for TCP/IPv6 and UDP/IPv6 is never used and transmit checksum offloading for IPv4, TCP/IPv4 and UDP/IPv4 is always used, even if disabled via ifconfig ue? -txcsum.
Jan 29 2026
I see the code of this driver the first time, but incrementing IFCOUNTER_OERRORS everywhere where tx_dropped is incremented makes sense. The positions of the lines where the other IFCOUNTER_* counters are incremented seems correct to me as well.
Jan 22 2026
Based on Dmitry's explanation
Seems to improve the code. Less lines and it looks less complex. This changes the functionality only if IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 or IFCAP_TXCSUM and IFCAP_TXCSUM_IPV6 get out of sync but, in my understanding of the code, this cannot happen.
Jan 20 2026
Looks good to me. I see no functional change but less lines of code and a more consistent way to change capenable and hwassist.
Jan 17 2026
Looks good to me.
Looks good. It makes sense to add TXCSUM_IPV6 since the interface supports it.
Jan 12 2026
Jan 10 2026
To address @tuexen's and @p.mousavizadeh_protonmail.com's comments, I restrict the code changes in this review to the changes required to process incoming packets with IP checksum offloading and leave code improvements for another review.
Jan 8 2026
The question is, what means TXCSUM?
Jan 2 2026
I agree @markj. It is not easy to understand the code. However, before this patch, without any other options, optlen is 0 and, thus, the jumbo option will never be added.
The different checksum offloading features should work independently.
Dec 19 2025
Dec 18 2025
Use the same semantic for cklen as in the UDP case.
