From nobody Tue Oct 21 15:56:32 2025 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4crcNf1F6tz6CV5b for ; Tue, 21 Oct 2025 15:56:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4crcNf0XdZz3S7P for ; Tue, 21 Oct 2025 15:56:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761062194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MebNU2VPa39uWOXv1IJ8AsTQuEoZLKDvR8ucRv/XNv0=; b=E/cP6hMNHlQMnOgUl4gunF7gVbrATROqv9r1fSxiFTr3hJqzg+VrkaZE5azywdg6gvDKsC XbyXYpgPry2xkPYAQfpNTIym72ubIlILz2LpzOJ3pmwghrF+LR8XXCMjqrgtPxH2R3OWYJ DGLL3mvgWQbODHEk9+kABCmSKglTwzgjM9FSWsXE+0ZWOWWq9qmfvStiagwx9/vJw5HKn+ 1LNTv4EWs5dcwj4LYZ0qxdXlj+m5u2y2R4fRsuxx0BOWnKenfmphe7I1QnEn1Lc1UsoYSU PnGEl1JrbH7YItnoap/sz82FPwWO+jALijxzt5gORaYB1w0GYTjkZKVS2VrVZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1761062194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MebNU2VPa39uWOXv1IJ8AsTQuEoZLKDvR8ucRv/XNv0=; b=hsDeY+JuZOkl89No4Y7ylzM8VGZxbe6t5eS7BFB07NXl+ir58fgi4vS0qIqRQsVyKrsl2G VHQ9GZPQragCPM4djIZpP94BrHw9+L7Eyr4+Bpj7AhqGbAPrwh8JJU78WrzZr2NC/1U8m4 nEP4KSggl5/IIbg1by1hWoUlHJe+6wvCcsopTnwQhaRkfVq4jy13lhczVW1FVXi1Q6r33C TFQSKL621syKyEtkyws9I4rWKHV3Lg/lLM3Xi5yXnKaaUPkDvpcG8aBcuA7xnQZZqV+AM5 eh6JSWE/KwmG/ZHLbv/fazeqG1Y7VYou3mAA6HjgOPKqpEtuHy9XNFUF3ngA2g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1761062194; a=rsa-sha256; cv=none; b=KyzDfhgM77iOCxtPEj4PhH7WYkm+4ajcmTKVP/HhVFMiX6jJB6Kia9Jcmxyqj3Bpj3o2Nd ijHnHZDou4UdXNIBxjYoxMpWF59scB6zbxsi+Tbqu87ylMggxPB66SS1gt2hEjxQQ9L62O G+LtsXBi8d28McOWsXRb98hLWMZTZGWC/ZzkWwNkhkQ/pRribpd045/Cjz5gkUeo+m7Yni q0JD8/bxo8fmPonmzhAEk4uztDplcxGGdF2itJ+HSAwRTQcRe5wQp+3KegOFIzjOsWBeR+ iNfOUXphS9w7LChPatociOuvYrGt2NHQAl+y3KHtenWmvJ624ViDuOijDc8fSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4crcNd72scz154R for ; Tue, 21 Oct 2025 15:56:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 59LFuXVR037541 for ; Tue, 21 Oct 2025 15:56:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59LFuXBv037540 for net@FreeBSD.org; Tue, 21 Oct 2025 15:56:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 276760] vtnet driver incorrectly calculates checksums Date: Tue, 21 Oct 2025 15:56:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vova@fbsd.ru X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: tuexen@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276760 --- Comment #36 from vova@fbsd.ru --- (In reply to Michael Tuexen from comment #35) > Is the sysctl output from 14.3 or stable/14?=20 stable/14 new measurements on original VM (cx11): (reboot for each re-configuration) summary: FreeBSD Offloading Download (CV%) delta % Upload (CV%) delta %=20 14.3p4 yes 879 (24.21%) 456 (24.21%) 14.3p4 no 902 (13.36%) +2.59% 472 (13.36%) +3.60% 14-087fc6ae0a8c yes 877 (18.19%) -2.73% 476 (18.19%) +0.95% 14-087fc6ae0a8c no 877 (24.66%) -0.02% 404 (24.66%) -15.13% In general, I would assess results as - these cheap VMs do not provide any stable results to do such kind of measures, spikes are quite significant (shared hosting?). Also, I do not see much correlation on top of FreeBSD version or checksum offloading. Also, somehow, download is ~ twice faster than upload, no clue why ...=20 Raw data (far-non-average results marked): FreeBSD Offloading Try Download Upload=20=20=20=20=20=20=20=20=20 14.3p4 yes 1 987 484=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 yes 2 963 532=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 yes 3 969 491=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 yes 4 828 405=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 yes 5 898 339=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 yes 6 984 490=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 yes 7 973 517=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 yes 8 922 499=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 yes 9 290 103 <<<<< 14.3p4 yes 10 974 695=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 yes avg 879 456=20=20=20=20=20=20=20=20=20=20= =20=20 CV% 22.00% 33.20%=20=20=20=20=20=20=20=20=20=20 14.3p4 no 1 949 302=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no 2 571 436=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no 3 895 451=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no 4 941 487=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no 5 990 490=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no 6 900 561=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no 7 900 492=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no 8 978 496=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no 9 938 494=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no 10 954 509=20=20=20=20=20=20=20=20=20=20= =20=20 14.3p4 no avg 902 472=20=20=20=20=20=20=20=20=20=20= =20=20 CV% 12.40% 13.40%=20=20=20=20=20=20=20=20=20=20 14-087fc6ae0a8c yes 1 936 538=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes 2 974 484=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes 3 752 441=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes 4 827 426=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes 5 965 493=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes 6 988 495=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes 7 981 524=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes 8 872 557=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes 9 991 500=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes 10 484 306=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c yes avg 877 476=20=20=20=20=20=20=20=20=20=20= =20=20 CV% 18.19% 15.13%=20=20=20=20=20=20=20=20=20=20 14-087fc6ae0a8c no 1 942 485=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c no 2 956 489=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c no 3 970 517=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c no 4 868 493=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c no 5 965 467=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c no 6 988 528=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c no 7 277 98 <<<< 14-087fc6ae0a8c no 8 963 384=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c no 9 848 490=20=20=20=20=20=20=20=20=20=20= =20=20 14-087fc6ae0a8c no 10 992 94 <<<< 14-087fc6ae0a8c no avg 877 404=20=20=20=20=20=20=20=20=20=20= =20=20 CV% 24.66% 41.31%=20=20=20=20=20=20=20=20=20=20 Command used to get statistics: for i in `seq 1 10`; do speedtest-go --server 60469 | awk '($2 =3D=3D "Download:") { printf("%s\= t", $3); } ($2 =3D=3D "Upload:") { printf("%s\n", $3); }' done more info from sysctls on=20 stable/14-087fc6ae0a8c: ifconfig_vtnet0=3D"DHCP -tso4 -tso6 -lro -rxcsum" [root@mb0 /usr/home/vova]# sysctl dev.vtnet.0 dev.vtnet.0.txq0.rescheduled: 0 dev.vtnet.0.txq0.tso: 0 dev.vtnet.0.txq0.csum: 10705229 dev.vtnet.0.txq0.omcasts: 7 dev.vtnet.0.txq0.obytes: 7014701105 dev.vtnet.0.txq0.opackets: 10705766 dev.vtnet.0.rxq0.rescheduled: 0 dev.vtnet.0.rxq0.host_lro: 0 dev.vtnet.0.rxq0.csum_failed: 0 dev.vtnet.0.rxq0.csum: 2265936 dev.vtnet.0.rxq0.ierrors: 0 dev.vtnet.0.rxq0.iqdrops: 0 dev.vtnet.0.rxq0.ibytes: 14080902273 dev.vtnet.0.rxq0.ipackets: 11187201 dev.vtnet.0.tx_task_rescheduled: 0 dev.vtnet.0.tx_tso_offloaded: 0 dev.vtnet.0.tx_csum_offloaded: 10705229 dev.vtnet.0.tx_defrag_failed: 0 dev.vtnet.0.tx_defragged: 0 dev.vtnet.0.tx_tso_without_csum: 0 dev.vtnet.0.tx_tso_not_tcp: 0 dev.vtnet.0.tx_csum_proto_mismatch: 0 dev.vtnet.0.tx_csum_unknown_ethtype: 0 dev.vtnet.0.rx_task_rescheduled: 0 dev.vtnet.0.rx_csum_offloaded: 2265936 dev.vtnet.0.rx_csum_failed: 0 dev.vtnet.0.rx_csum_inaccessible_ipproto: 0 dev.vtnet.0.rx_csum_bad_offset: 0 dev.vtnet.0.rx_csum_bad_ipproto: 0 dev.vtnet.0.rx_csum_bad_ethtype: 0 dev.vtnet.0.rx_mergeable_failed: 0 dev.vtnet.0.rx_enq_replacement_failed: 0 dev.vtnet.0.rx_frame_too_large: 0 dev.vtnet.0.mbuf_alloc_failed: 0 dev.vtnet.0.act_vq_pairs: 1 dev.vtnet.0.req_vq_pairs: 1 dev.vtnet.0.max_vq_pairs: 1 dev.vtnet.0.%iommu: dev.vtnet.0.%parent: virtio_pci0 dev.vtnet.0.%pnpinfo: vendor=3D0x00001af4 device=3D0x1000 subvendor=3D0x1af4 device_type=3D0x00000001 dev.vtnet.0.%location: dev.vtnet.0.%driver: vtnet dev.vtnet.0.%desc: VirtIO Networking Adapter # sysctl hw.vtnet hw.vtnet.lro_mbufq_depth: 0 hw.vtnet.lro_entry_count: 128 hw.vtnet.rx_process_limit: 1024 hw.vtnet.tso_maxlen: 65535 hw.vtnet.mq_max_pairs: 32 hw.vtnet.mq_disable: 0 hw.vtnet.lro_disable: 1 hw.vtnet.tso_disable: 0 hw.vtnet.fixup_needs_csum: 0 stable/14-087fc6ae0a8c: ifconfig_vtnet0=3D"DHCP" # ifconfig vtnet0 vtnet0: flags=3D1008843 me= tric 0 mtu 1500 =20=20=20=20=20=20=20 options=3Dec07bb # sysctl dev.vtnet.0 dev.vtnet.0.txq0.rescheduled: 0 dev.vtnet.0.txq0.tso: 311575 dev.vtnet.0.txq0.csum: 11032984 dev.vtnet.0.txq0.omcasts: 7 dev.vtnet.0.txq0.obytes: 8466101606 dev.vtnet.0.txq0.opackets: 11033797 dev.vtnet.0.rxq0.rescheduled: 0 dev.vtnet.0.rxq0.host_lro: 0 dev.vtnet.0.rxq0.csum_failed: 0 dev.vtnet.0.rxq0.csum: 12244247 dev.vtnet.0.rxq0.ierrors: 0 dev.vtnet.0.rxq0.iqdrops: 0 dev.vtnet.0.rxq0.ibytes: 15515499836 dev.vtnet.0.rxq0.ipackets: 12244260 dev.vtnet.0.tx_task_rescheduled: 0 dev.vtnet.0.tx_tso_offloaded: 311575 dev.vtnet.0.tx_csum_offloaded: 11032984 dev.vtnet.0.tx_defrag_failed: 0 dev.vtnet.0.tx_defragged: 0 dev.vtnet.0.tx_tso_without_csum: 0 dev.vtnet.0.tx_tso_not_tcp: 0 dev.vtnet.0.tx_csum_proto_mismatch: 0 dev.vtnet.0.tx_csum_unknown_ethtype: 0 dev.vtnet.0.rx_task_rescheduled: 0 dev.vtnet.0.rx_csum_offloaded: 12244247 dev.vtnet.0.rx_csum_failed: 0 dev.vtnet.0.rx_csum_inaccessible_ipproto: 0 dev.vtnet.0.rx_csum_bad_offset: 0 dev.vtnet.0.rx_csum_bad_ipproto: 0 dev.vtnet.0.rx_csum_bad_ethtype: 0 dev.vtnet.0.rx_mergeable_failed: 0 dev.vtnet.0.rx_enq_replacement_failed: 0 dev.vtnet.0.rx_frame_too_large: 0 dev.vtnet.0.mbuf_alloc_failed: 0 dev.vtnet.0.act_vq_pairs: 1 dev.vtnet.0.req_vq_pairs: 1 dev.vtnet.0.max_vq_pairs: 1 dev.vtnet.0.%iommu: dev.vtnet.0.%parent: virtio_pci0 dev.vtnet.0.%pnpinfo: vendor=3D0x00001af4 device=3D0x1000 subvendor=3D0x1af4 device_type=3D0x00000001 dev.vtnet.0.%location: dev.vtnet.0.%driver: vtnet dev.vtnet.0.%desc: VirtIO Networking Adapter # sysctl hw.vtnet hw.vtnet.lro_mbufq_depth: 0 hw.vtnet.lro_entry_count: 128 hw.vtnet.rx_process_limit: 1024 hw.vtnet.tso_maxlen: 65535 hw.vtnet.mq_max_pairs: 32 hw.vtnet.mq_disable: 0 hw.vtnet.lro_disable: 1 hw.vtnet.tso_disable: 0 hw.vtnet.fixup_needs_csum: 0 hw.vtnet.csum_disable: 0 --=20 You are receiving this mail because: You are on the CC list for the bug.=