Page MenuHomeFreeBSD

timo.voelker_fh-muenster.de (Timo Völker)
User

Projects

User does not belong to any projects.

User Details

User Since
Jul 13 2025, 2:07 PM (14 w, 2 d)

Recent Activity

Tue, Sep 30

timo.voelker_fh-muenster.de accepted D52684: vtnet: disable hardware TCP LRO by default.

I did some tests to understand the consequence of disabling "hardware LRO".

Tue, Sep 30, 1:02 PM

Sun, Sep 28

timo.voelker_fh-muenster.de accepted D52765: vtnet: improve control of transmit offloading.

Right, I remember disabling txcsum, which didn't take affect, because hwassist wasn't updated. The patch seems to solve this issue. Thanks!

Sun, Sep 28, 7:21 AM

Fri, Sep 26

timo.voelker_fh-muenster.de accepted D52682: vtnet: improve interface capability handling.

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.

Fri, Sep 26, 7:15 AM

Thu, Sep 25

timo.voelker_fh-muenster.de added inline comments to D52682: vtnet: improve interface capability handling.
Thu, Sep 25, 3:38 PM

Sep 16 2025

timo.voelker_fh-muenster.de added inline comments to D52546: vtnet: deprecate loader tunable fixup_needs_csum.
Sep 16 2025, 12:32 PM
timo.voelker_fh-muenster.de updated the diff for D52546: vtnet: deprecate loader tunable fixup_needs_csum.

Addressed comment from @tuexen

Sep 16 2025, 12:32 PM
timo.voelker_fh-muenster.de added a comment to D52547: tcp: improve compilation of cc and their helper modules.

The suggested changes in the summary make sense to me and the changes in sys/conf/files seem to correctly correspond to them. Looks all good to me. However, I haven't touched this file and don't know enough to review it.

Sep 16 2025, 12:27 PM

Sep 15 2025

timo.voelker_fh-muenster.de requested review of D52546: vtnet: deprecate loader tunable fixup_needs_csum.
Sep 15 2025, 10:05 AM
timo.voelker_fh-muenster.de added a comment to D52465: epair: add VLAN_HWTAGGING.

The code looks good to me.

Well I think the document should be revised a little. Indeed for inbound traffic, if the mbuf has flag M_VLANTAG, the epair(4) end should accept but not try to discard or trim the flag, since the input path of the driver does nothing.

Also the net stack would expect the driver to do vlan header extracting, but current implementation does *NOTHING* but just pass in the mbuf as is. So IFCAP_VLAN_HWTAGGING for the input patch is more false capability.

Sep 15 2025, 7:52 AM

Sep 10 2025

timo.voelker_fh-muenster.de accepted D52394: dhclient: improve UDP checksum handling.
Sep 10 2025, 2:26 PM
timo.voelker_fh-muenster.de added inline comments to D52465: epair: add VLAN_HWTAGGING.
Sep 10 2025, 6:49 AM

Sep 9 2025

timo.voelker_fh-muenster.de added a reviewer for D52465: epair: add VLAN_HWTAGGING: ronald_klop.ws.
Sep 9 2025, 6:46 PM
timo.voelker_fh-muenster.de added inline comments to D52465: epair: add VLAN_HWTAGGING.
Sep 9 2025, 6:44 PM
timo.voelker_fh-muenster.de requested review of D52465: epair: add VLAN_HWTAGGING.
Sep 9 2025, 6:35 PM

Sep 8 2025

timo.voelker_fh-muenster.de added inline comments to D52394: dhclient: improve UDP checksum handling.
Sep 8 2025, 10:07 AM

Sep 3 2025

timo.voelker_fh-muenster.de updated the diff for D51686: vtnet: fix translation between mbuf and virtio flags.

I rebased my changes on the current state of FreeBSD head and addressed the comments from @tuexen.

Sep 3 2025, 10:24 AM

Sep 2 2025

timo.voelker_fh-muenster.de added a reviewer for D51686: vtnet: fix translation between mbuf and virtio flags: manpages.
Sep 2 2025, 1:17 PM
timo.voelker_fh-muenster.de updated the diff for D51686: vtnet: fix translation between mbuf and virtio flags.

Addressing comments from a chat with @tuexen.

Sep 2 2025, 1:15 PM

Sep 1 2025

timo.voelker_fh-muenster.de added a comment to D51289: tuntap: add SIOCGIFCAP and SIOCSIFCAP ioctls.

I don't know what that is. I can't find PRIV_NET_SETIFCAP in tuntap.c.

AFAIK, tunioctl is not called after ifhwioctl, however, I don't think it's necessary, since other cases of tunioctl are also lack privilege check.

Sep 1 2025, 11:16 AM
timo.voelker_fh-muenster.de updated the diff for D51289: tuntap: add SIOCGIFCAP and SIOCSIFCAP ioctls.

For SIOCSIFCAP, check if requested capabilities are supported before enabling them.

Sep 1 2025, 11:13 AM

Aug 28 2025

timo.voelker_fh-muenster.de added inline comments to D51639: epair: add TXCSUM and TXCSUM6.
Aug 28 2025, 9:29 AM
timo.voelker_fh-muenster.de updated the diff for D51639: epair: add TXCSUM and TXCSUM6.

Addressing @tuexen's comment by adding a sentence in the man page that explains the sync of TXCSUM and TXCSUM6.

Aug 28 2025, 9:29 AM
timo.voelker_fh-muenster.de accepted D51999: vtnet: fix computation of sysctl variables.

I tested this patch with D51686 applied by looking at the csum counters per queue and the general rx_csum_offloaded counter with sysctl dev.vtnet. With nc, I sent TCP packets from a Linux host to a FreeBSD VM that uses virtio with multiple queues.

Aug 28 2025, 9:02 AM

Aug 27 2025

timo.voelker_fh-muenster.de added inline comments to D51686: vtnet: fix translation between mbuf and virtio flags.
Aug 27 2025, 7:37 PM
timo.voelker_fh-muenster.de updated the diff for D51686: vtnet: fix translation between mbuf and virtio flags.

To focus on the guest-side in this review, I removed the tuntap related code and extended the vtnet code instead.

Aug 27 2025, 7:35 PM
timo.voelker_fh-muenster.de added inline comments to D51639: epair: add TXCSUM and TXCSUM6.
Aug 27 2025, 11:58 AM
timo.voelker_fh-muenster.de updated the diff for D51639: epair: add TXCSUM and TXCSUM6.

Addressing comments from @bcr

Aug 27 2025, 11:57 AM
timo.voelker_fh-muenster.de added a comment to D51639: epair: add TXCSUM and TXCSUM6.

My only concern now is the need for the LOCK mechanism itself.

Aug 27 2025, 11:13 AM
timo.voelker_fh-muenster.de updated the diff for D51639: epair: add TXCSUM and TXCSUM6.

Addressing comments

Aug 27 2025, 11:10 AM

Aug 20 2025

timo.voelker_fh-muenster.de added a comment to D52046: vtnet, ptnet: include opt_*.h files early.

Why not adding these includes in virtio_net.h?

Aug 20 2025, 6:43 PM

Aug 19 2025

timo.voelker_fh-muenster.de added a comment to D21315: bhyve: tap: add support for offloads.

Good, but how did you address the problem I pointed out in 2019, as explained above?
Is that not an issue anymore?

Aug 19 2025, 8:07 PM

Aug 10 2025

timo.voelker_fh-muenster.de added a comment to D51291: tuntap: add IFCAP_TXCSUM and IFCAP_TXCSUM_IPV6.

@timo.voelker_fh-muenster.de Is it intended that this patch now contains the changes from D51289?

Aug 10 2025, 9:41 PM
timo.voelker_fh-muenster.de updated the diff for D51291: tuntap: add IFCAP_TXCSUM and IFCAP_TXCSUM_IPV6.

Removed the changes that are in review D51289.

Aug 10 2025, 9:40 PM

Aug 2 2025

timo.voelker_fh-muenster.de updated the diff for D51289: tuntap: add SIOCGIFCAP and SIOCSIFCAP ioctls.

Addressed @kevans's comment regarding using a lock for SIOCGIFCAP.

Aug 2 2025, 7:41 PM
timo.voelker_fh-muenster.de added inline comments to D51686: vtnet: fix translation between mbuf and virtio flags.
Aug 2 2025, 7:16 PM
timo.voelker_fh-muenster.de updated the diff for D51686: vtnet: fix translation between mbuf and virtio flags.

virtio_net_rx_csum_by_offset now returns (1) in case INET and INET6 are not defined (as suggested by @tuexen)

Aug 2 2025, 7:13 PM

Aug 1 2025

timo.voelker_fh-muenster.de added inline comments to D51686: vtnet: fix translation between mbuf and virtio flags.
Aug 1 2025, 8:58 PM
timo.voelker_fh-muenster.de updated the diff for D51686: vtnet: fix translation between mbuf and virtio flags.

Changed type of variable isipv6 from int to bool.

Aug 1 2025, 8:57 PM
timo.voelker_fh-muenster.de added a comment to D21315: bhyve: tap: add support for offloads.

I worked on a similar problem. I somehow found this related review afterwards. My code changes are in review D51688.

Aug 1 2025, 8:50 PM
timo.voelker_fh-muenster.de requested review of D51688: bhyve: add checksum offloading for tap.
Aug 1 2025, 8:44 PM
timo.voelker_fh-muenster.de updated the diff for D51291: tuntap: add IFCAP_TXCSUM and IFCAP_TXCSUM_IPV6.

No functional changes. Just modified comments and code style.

Aug 1 2025, 8:22 PM
timo.voelker_fh-muenster.de requested review of D51686: vtnet: fix translation between mbuf and virtio flags.
Aug 1 2025, 7:44 PM

Jul 31 2025

timo.voelker_fh-muenster.de updated the diff for D51639: epair: add TXCSUM and TXCSUM6.

For SIOCSIFCAP, ifr->ifr_reqcap is assigned directly to ifp->if_capenable instead of masking it with if_capabilities. The man page of ifnet told me that the masking is done earlier in the ioctl call chain.

Jul 31 2025, 8:03 PM
timo.voelker_fh-muenster.de added a comment to D51289: tuntap: add SIOCGIFCAP and SIOCSIFCAP ioctls.

My general concern here is that we could put ourselves into a weird position if we start disabling capabilities that we'd expect if tun_vhdrlen != 0 and that it'd be better to force TAPSVNETHDR to disable it instead

Currently, I don't need SIOCSIFCAP. I can just remove the code if that resolves concerns.

I think I'm OK either way- you're preserving an existing problem at most, and it's not even a major problem.

Jul 31 2025, 7:14 AM
timo.voelker_fh-muenster.de added a comment to D51639: epair: add TXCSUM and TXCSUM6.

Should epair also provide support for IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6? I guess it will deliver packets with the corresponding mbuf header flags already...

Jul 31 2025, 6:37 AM

Jul 30 2025

timo.voelker_fh-muenster.de added a comment to D51289: tuntap: add SIOCGIFCAP and SIOCSIFCAP ioctls.

Thanks for your review @markj

Jul 30 2025, 8:34 PM
timo.voelker_fh-muenster.de added a comment to D51289: tuntap: add SIOCGIFCAP and SIOCSIFCAP ioctls.

Thanks for your review @kevans

Jul 30 2025, 8:33 PM
timo.voelker_fh-muenster.de requested review of D51639: epair: add TXCSUM and TXCSUM6.
Jul 30 2025, 8:04 PM
timo.voelker_fh-muenster.de added a reviewer for D51475: sctp, tcp, udp: improve deferred computation of checksums: markj.
Jul 30 2025, 10:06 AM
timo.voelker_fh-muenster.de updated the diff for D51475: sctp, tcp, udp: improve deferred computation of checksums.
  • No code changes.
  • Removed epair code and documentation (will be added with a separate commit)
  • Addressed @tuexen comments on documentation in mbuf man page and mbuf.h.
Jul 30 2025, 10:05 AM

Jul 29 2025

timo.voelker_fh-muenster.de updated the diff for D51475: sctp, tcp, udp: improve deferred computation of checksums.

Did a rebase after the change of the mbuf man page via D51590.

Jul 29 2025, 8:07 AM
timo.voelker_fh-muenster.de accepted D51604: vtnet.4: update description of loader tunables.

The description from sysctl -d is probably correct. Making the man page more complete is a good thing.

Jul 29 2025, 7:04 AM
timo.voelker_fh-muenster.de added a comment to D51475: sctp, tcp, udp: improve deferred computation of checksums.

Are we sure about the predict_false's being added into a file which appears to not have any predict in it? I can see that a system with assist hardware and lots of VM's this _false would actually be a pessimization as almost all packets are going to be marked with offloading capabilities. Perhaps some dtrace data might answer this.

Jul 29 2025, 6:45 AM

Jul 28 2025

timo.voelker_fh-muenster.de accepted D51590: mbuf.9: describe checksum offloading for SCTP .

It improves the documentation because it describes more of what is implemented.

Jul 28 2025, 9:01 PM
timo.voelker_fh-muenster.de added inline comments to D51590: mbuf.9: describe checksum offloading for SCTP .
Jul 28 2025, 7:07 PM
timo.voelker_fh-muenster.de added inline comments to D51590: mbuf.9: describe checksum offloading for SCTP .
Jul 28 2025, 1:38 PM
timo.voelker_fh-muenster.de updated the diff for D51475: sctp, tcp, udp: improve deferred computation of checksums.

Addressing comments from @tuexen I got from a chat. I touched only the code I added before.

Jul 28 2025, 1:12 PM

Jul 26 2025

timo.voelker_fh-muenster.de added inline comments to D51475: sctp, tcp, udp: improve deferred computation of checksums.
Jul 26 2025, 9:28 PM
timo.voelker_fh-muenster.de updated the diff for D51475: sctp, tcp, udp: improve deferred computation of checksums.
  • Removed the tap changes to focus this revision more on the handling of incoming packets with checksum offloading flags.
  • Added code to handle SCTP packets.
  • Added documentation in mbuf man page and mbuf.h.
  • Extended changes in epair to be able to get and set interface capabilities.
Jul 26 2025, 9:08 PM

Jul 23 2025

timo.voelker_fh-muenster.de added a comment to D51475: sctp, tcp, udp: improve deferred computation of checksums.
In D51475#1175479, @kp wrote:
In D51475#1175448, @kp wrote:

How is CSUM_IP6_UDP different from CSUM_DATA_VALID_IPV6 now?

CSUM_DATA_VALID_IPV6 is the IPv6 version of CSUM_DATA_VALID. The mbuf man page says:

CSUM_DATA_VALID  The checksum of the data portion of the IP packet
                 has been computed and stored in the field
                 csum_data in network byte order.

With this patch, CSUM_IP6_UDP means for the input path that the checksum is unnecessary. It does not imply that the checksum has been computed. With CSUM_IP6_UDP the csum_data field instead contains the offset of the checksum field, which is important in case the packet somehow leaves the host.

But we're actively using CSUM_IP6_UDP on the input side now.

Jul 23 2025, 3:00 PM
timo.voelker_fh-muenster.de added inline comments to D51475: sctp, tcp, udp: improve deferred computation of checksums.
Jul 23 2025, 2:33 PM
timo.voelker_fh-muenster.de added inline comments to D51475: sctp, tcp, udp: improve deferred computation of checksums.
Jul 23 2025, 2:23 PM
timo.voelker_fh-muenster.de added a comment to D51475: sctp, tcp, udp: improve deferred computation of checksums.
In D51475#1175448, @kp wrote:

How is CSUM_IP6_UDP different from CSUM_DATA_VALID_IPV6 now?

Jul 23 2025, 2:17 PM
timo.voelker_fh-muenster.de abandoned D51298: tuntap bridge: set tx csum mbuf flags if in a bridge.

Thanks again @ivy for your valuable comments. As a result, I changed my approach (see D51475).

Jul 23 2025, 12:53 PM
timo.voelker_fh-muenster.de requested review of D51475: sctp, tcp, udp: improve deferred computation of checksums.
Jul 23 2025, 12:46 PM

Jul 16 2025

timo.voelker_fh-muenster.de added a comment to D51298: tuntap bridge: set tx csum mbuf flags if in a bridge.
In D51298#1172514, @ivy wrote:

what i mean is if the packet is being routed (by the IP stack, not the bridge), for example if the bridge interface’s IP address is the default router for the VMs in the bridge.

in that case you’ve set the mbuf flag even though the checksum is not valid, but the checksum still needs to be calculated or at least the outgoing interface needs to be told to do the hw checksum.

is there a mechanism for that to happen?

Jul 16 2025, 2:16 PM
timo.voelker_fh-muenster.de added a comment to D51298: tuntap bridge: set tx csum mbuf flags if in a bridge.
In D51298#1172401, @ivy wrote:

what happens if a packet is received by the bridge interface, and is then routed via another interface - will the outgoing checksum be calculated if required?

Jul 16 2025, 6:42 AM

Jul 15 2025

timo.voelker_fh-muenster.de added inline comments to D51298: tuntap bridge: set tx csum mbuf flags if in a bridge.
Jul 15 2025, 1:02 PM
timo.voelker_fh-muenster.de added inline comments to D51298: tuntap bridge: set tx csum mbuf flags if in a bridge.
Jul 15 2025, 12:59 PM
timo.voelker_fh-muenster.de updated the diff for D51298: tuntap bridge: set tx csum mbuf flags if in a bridge.

Addresses @ivy's comment.

Jul 15 2025, 12:46 PM

Jul 14 2025

timo.voelker_fh-muenster.de requested review of D51298: tuntap bridge: set tx csum mbuf flags if in a bridge.
Jul 14 2025, 10:43 AM

Jul 13 2025

timo.voelker_fh-muenster.de requested review of D51291: tuntap: add IFCAP_TXCSUM and IFCAP_TXCSUM_IPV6.
Jul 13 2025, 3:47 PM
timo.voelker_fh-muenster.de requested review of D51289: tuntap: add SIOCGIFCAP and SIOCSIFCAP ioctls.
Jul 13 2025, 2:24 PM