OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: grind on December 07, 2025, 04:51:36 PM

Title: vtnet offloading since 25.7.8
Post by: grind on December 07, 2025, 04:51:36 PM
I'm running opnsense in a virtualized env and was aware about the problems that the vtnet driver had. Now that this is fixed in freebsd core and the patches have found their way into opnsense since 25.7.8, I'm not sure, why hw.vtnet.csum_disable="1" is still present in loader.conf. Shouldn't this go away now?
Title: Re: vtnet offloading since 25.7.8
Post by: Maurice on December 07, 2025, 07:12:01 PM
It's still disabled in the OPNsense default tunables. You can change this in System: Settings: Tunables.

Cheers
Maurice
Title: Re: vtnet offloading since 25.7.8
Post by: franco on December 07, 2025, 09:14:59 PM
I wanted to talk to Patrick about this, too. Our own testing was inconclusive.


Cheers,
Franco
Title: Re: vtnet offloading since 25.7.8
Post by: Patrick M. Hausen on December 07, 2025, 09:40:36 PM
From following freebsd-net I am not entirely convinced that this is fixed for good in releng/14.
Title: Re: vtnet offloading since 25.7.8
Post by: Maurice on December 07, 2025, 09:43:43 PM
I've now set hw.vtnet.csum_disable=0 on two OPNsense instances with vtnet interfaces (one amd64, one aarch64).
Will report back with anecdotal observations (remind me if I forget because everything works).

options=ec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>
Cheers
Maurice
Title: Re: vtnet offloading since 25.7.8
Post by: franco on December 08, 2025, 08:05:33 AM
> fixed for good in releng/14

You mean stable/14?

releng/14.3 is likely not getting any better, but releng/14.4 could given stable/14 is complete ;)


Cheers,
Franco
Title: Re: vtnet offloading since 25.7.8
Post by: Maurice on January 21, 2026, 03:24:32 PM
Quote from: Maurice on December 07, 2025, 09:43:43 PMI've now set hw.vtnet.csum_disable=0 on two OPNsense instances with vtnet interfaces (one amd64, one aarch64).
Will report back with anecdotal observations (remind me if I forget because everything works).

options=ec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>
No side effects observed in the last 6+ weeks.
Title: Re: vtnet offloading since 25.7.8
Post by: Patrick M. Hausen on January 21, 2026, 03:46:09 PM
Upstream it's now fixed in stable/14 but not in releng/14.3. I don't know if OPNsense cherry picked the fixes from -stable or rolled their own.
Title: Re: vtnet offloading since 25.7.8
Post by: franco on January 21, 2026, 03:52:09 PM
We should have all the patches in 25.7.x, but if not then definitely in 26.1.x.


Cheers,
Franco
Title: Re: vtnet offloading since 25.7.8
Post by: Maurice on January 21, 2026, 04:07:10 PM
Haven't looked into the details, but a quick search on GitHub reveals quite a few vtnet related cherry picks from upstream into stable/25.7, like this one: https://github.com/opnsense/src/commit/52cbb08
Title: Re: vtnet offloading since 25.7.8
Post by: franco on January 21, 2026, 04:31:26 PM
Yes there might be 1-2 missing that I picked up while creating stable/26.1... that was about 150 extra commits from stable/14 that we haven't picked up for 25.7.x for stability reasons.


Cheers,
Franco