Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2025 13:13:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 276760] vtnet driver incorrectly calculates checksums
Message-ID:  <bug-276760-7501-s5I4dL0fjK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-276760-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-276760-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276760

--- Comment #19 from vova@fbsd.ru ---
Interesting results:

14.3p4  ifconfig_vtnet0=3D"DHCP -tso4 -tso6 -lro -rxcsum"

Download: 1938.88 Mbps
Upload: 789.48 Mbps=20

# speedtest-go

    speedtest-go v1.7.10 (git-dev) @showwin

=E2=9C=93 ISP: 128.140.36.15 (Hetzner Online) [53.5774, 10.0785]
=E2=9C=93 Found 20 Public Servers

=E2=9C=93 Test Server: [69030] 467.36km Nuremberg (Germany) by Advin Servic=
es LLC
=E2=9C=93 Latency: 974.539=C2=B5s Jitter: 342.617=C2=B5s Min: 659.889=C2=B5=
s Max: 1.746697ms
=E2=9C=93 Packet Loss Analyzer: Running in background (<=3D 30 Secs)
=E2=9C=93 Download: 1938.88 Mbps (Used: 2298.54MB) (Latency: 2ms Jitter: 1m=
s Min: 0ms
Max: 5ms)
=E2=9C=93 Upload: 789.48 Mbps (Used: 983.55MB) (Latency: 4ms Jitter: 5ms Mi=
n: 0ms Max:
20ms)
=E2=9C=93 Packet Loss: N/A


in vnet container (under pf nat):
  Speedtest by Ookla

      Server: Advin Services LLC - Nuremberg (id: 69030)
         ISP: Hetzner Online
Idle Latency:     0.40 ms   (jitter: 0.06ms, low: 0.36ms, high: 0.49ms)
    Download:  1504.38 Mbps (data used: 2.4 GB)
                  5.13 ms   (jitter: 15.33ms, low: 0.36ms, high: 226.18ms)
      Upload:  1425.73 Mbps (data used: 1.9 GB)
                  2.02 ms   (jitter: 5.17ms, low: 0.33ms, high: 379.86ms)
 Packet Loss:     0.0%


14.3p4  ifconfig_vtnet0=3D"DHCP"

dramatically worse:
Download: 719.23 Mbps
Upload: 485.25 Mbps

# ifconfig vtnet0
vtnet0: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> me=
tric 0
mtu 1500
=20=20=20=20=20=20=20
options=3Dec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSU=
M,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>


speedtest-go

    speedtest-go v1.7.10 (git-dev) @showwin

=E2=9C=93 ISP: 128.140.36.15 (Hetzner Online) [53.5774, 10.0785]
=E2=9C=93 Found 20 Public Servers

=E2=9C=93 Test Server: [60469] 467.36km Nuremberg (Germany) by netcup GmbH
=E2=9C=93 Latency: 1.107351ms Jitter: 172.438=C2=B5s Min: 800.457=C2=B5s Ma=
x: 1.378362ms
=E2=9C=93 Packet Loss Analyzer: Running in background (<=3D 30 Secs)
=E2=9C=93 Download: 719.23 Mbps (Used: 770.40MB) (Latency: 1ms Jitter: 0ms =
Min: 0ms
Max: 2ms)
=E2=9C=93 Upload: 485.25 Mbps (Used: 945.52MB) (Latency: 1ms Jitter: 0ms Mi=
n: 0ms Max:
4ms)
=E2=9C=93 Packet Loss: 0.48% (Sent: 415/Dup: 0/Max: 416)

in vnet container (under pf nat):
  Speedtest by Ookla

      Server: Advin Services LLC - Nuremberg (id: 69030)
         ISP: Hetzner Online
Idle Latency:     0.67 ms   (jitter: 0.77ms, low: 0.34ms, high: 1.50ms)
    Download:   166.12 Mbps (data used: 243.8 MB)
                  0.77 ms   (jitter: 0.51ms, low: 0.37ms, high: 5.65ms)
      Upload:  1595.95 Mbps (data used: 2.1 GB)
                  7.03 ms   (jitter: 6.94ms, low: 0.70ms, high: 256.62ms)
 Packet Loss:     0.0%



14.3-STABLE stable/14-087fc6ae0a8c  ifconfig_vtnet0=3D"DHCP"

Still not that good as before, but in vnet container - event better
Download: 972.67 Mbps=20
Upload: 523.19 Mbps=20

# speedtest-go

    speedtest-go v1.7.10 (git-dev) @showwin

=E2=9C=93 ISP: 128.140.36.15 (Hetzner Online) [53.5774, 10.0785]
=E2=9C=93 Found 20 Public Servers

=E2=9C=93 Test Server: [60469] 467.36km Nuremberg (Germany) by netcup GmbH
=E2=9C=93 Latency: 905.265=C2=B5s Jitter: 54.375=C2=B5s Min: 808.469=C2=B5s=
 Max: 983.836=C2=B5s
=E2=9C=93 Packet Loss Analyzer: Running in background (<=3D 30 Secs)
=E2=9C=93 Download: 972.67 Mbps (Used: 1283.25MB) (Latency: 1ms Jitter: 0ms=
 Min: 0ms
Max: 3ms)
=E2=9C=93 Upload: 523.19 Mbps (Used: 661.66MB) (Latency: 5ms Jitter: 6ms Mi=
n: 0ms Max:
24ms)
=E2=9C=93 Packet Loss: 0.00% (Sent: 283/Dup: 0/Max: 282)

in vnet container (under pf nat):
   Speedtest by Ookla

      Server: Advin Services LLC - Nuremberg (id: 69030)
         ISP: Hetzner Online
Idle Latency:     0.40 ms   (jitter: 0.10ms, low: 0.32ms, high: 0.48ms)
    Download:  1813.96 Mbps (data used: 1.2 GB)
                 10.73 ms   (jitter: 14.93ms, low: 1.37ms, high: 97.34ms)
      Upload:  1624.39 Mbps (data used: 2.8 GB)
                  3.16 ms   (jitter: 8.67ms, low: 0.37ms, high: 325.18ms)
 Packet Loss:     0.0%

and after returning to no offload:

Download: 2052.35 Mbps
Upload: 772.36 Mbps

# ifconfig vtnet0 -tso4 -tso6 -lro -rxcsum
# ifconfig vtnet0
vtnet0: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> me=
tric 0
mtu 1500
=20=20=20=20=20=20=20
options=3Dcc00ba<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_=
HWTSO,LINKSTATE,TXCSUM_IPV6,HWSTATS>

# speedtest-go

    speedtest-go v1.7.10 (git-dev) @showwin

=E2=9C=93 ISP: 128.140.36.15 (Hetzner Online) [53.5774, 10.0785]
=E2=9C=93 Found 20 Public Servers

=E2=9C=93 Test Server: [69030] 467.36km Nuremberg (Germany) by Advin Servic=
es LLC
=E2=9C=93 Latency: 662.361=C2=B5s Jitter: 113.466=C2=B5s Min: 527.393=C2=B5=
s Max: 883.733=C2=B5s
=E2=9C=93 Packet Loss Analyzer: Running in background (<=3D 30 Secs)
=E2=9C=93 Download: 2052.35 Mbps (Used: 2593.14MB) (Latency: 3ms Jitter: 2m=
s Min: 0ms
Max: 8ms)
=E2=9C=93 Upload: 772.36 Mbps (Used: 992.49MB) (Latency: 5ms Jitter: 3ms Mi=
n: 0ms Max:
12ms)
=E2=9C=93 Packet Loss: N/A

in vnet container (under pf nat):
  Speedtest by Ookla

      Server: Advin Services LLC - Nuremberg (id: 69030)
         ISP: Hetzner Online
Idle Latency:     0.43 ms   (jitter: 0.03ms, low: 0.37ms, high: 0.44ms)
    Download:  2085.06 Mbps (data used: 1.1 GB)
                 12.66 ms   (jitter: 21.69ms, low: 3.21ms, high: 237.03ms)
      Upload:  1584.51 Mbps (data used: 1.9 GB)
                  3.69 ms   (jitter: 11.17ms, low: 0.41ms, high: 224.69ms)

All measurements may be not that percise - virtual machine is chipest possi=
ble.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276760-7501-s5I4dL0fjK>