[Bug 290773] vtnet: Severe performance regression since D51686

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Nov 2025 10:19:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290773

--- Comment #14 from lg@efficientip.com ---
(In reply to Michael Tuexen from comment #12)


I have tested this, and unfortunately, I still encounter the issue when txcsum
is disabled.

From what I understand of your modification (please correct me if I'm wrong),
you intend to enable tso4 only if txcsum is enabled, correct?

For the test using the same SCP as before, I started with the default
configuration:


ifconfig vtnet0
vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0
mtu 1500
       
options=ec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>

TXCSUM and TSO are both enabled, and it is working.


Then I disable txcsum
ifconfig vtnet0 -txcsum
ifconfig vtnet0
vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0
mtu 1500
       
options=ec07b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>

TXCSUM is disabled but TSO4 is still enabled, and it is not working all packet
are dropped


Next I disable the tso4
ifconfig vtnet0 -tso4 
ifconfig vtnet0
vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0
mtu 1500
       
options=ec06b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>

TXCSUM and TSO are both disabled, and it is working.

Then I try to re-enabled tso4

ifconfig vtnet0 tso4
ifconfig vtnet0
vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0
mtu 1500
       
options=ec06b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>

As you can see, TSO4 remained disabled. I believe this is the expected
behavior.

Then enabling TXCSUM
ifconfig vtnet0 txcsum
ifconfig vtnet0
vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0
mtu 1500
       
options=ec06bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>

Here it is working fine

And finally enabling TSO4

ifconfig vtnet0 tso4
ifconfig vtnet0
vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0
mtu 1500
       
options=ec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>

Now TSO4 is enabling correctly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.