From nobody Thu Oct 16 16:19:49 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 4cnY7p618Tz6CkLB for ; Thu, 16 Oct 2025 16:19:50 +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 4cnY7p5TKjz3Xp0 for ; Thu, 16 Oct 2025 16:19:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760631590; 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=3XhB3FTewhNtREIE5BucEaOgFrjaPbCqr7udAw+reWs=; b=Rd3l2DseumYeRAQREg7gPP22xa6m29SMdd2aut2AdyzwYsG63WQoS8YdfMNSbs7jRtdJKZ H5R97p8aGifq1EXuNwJyKO6ulnNTuUbMXck1WYn/xdZmuwbaIkGve/7EjS0L+/aICiTqhX UZmhMWPHZyiuuB2VVxF7Qy5gaKvVomJpIiJV9xfSnSiHgBHCB0xYZAt2V2tKxQsrfunj/T 5YzQjOn2qByxJTDXa6s1cXR48abzcbtGXwOGT+ARuMKR5+P1bwPTeRXBvcSm8OXhKkvj76 BfUe904y5WlYSCCmfsaAChEVcxO5zWIbL/B1ekrfLWTtGJNB8auLhARVxMSogw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760631590; 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=3XhB3FTewhNtREIE5BucEaOgFrjaPbCqr7udAw+reWs=; b=o827O2kcOjun8EVQ3UGk/XKANyFTZgZNeY7beYvQv+6iYA3GV+IfW9VlZaf/ddxQSCJX12 LSOZ9EV9rTPhZEKJkHAE/EYC0VaCJIfwN+T7Qwn0v2dG4Mt/03biwQvFs4i7Y2euqRRevu ycdT9OlBb0fhkDN2xmDTmTS2QxD51Fz6BvTXoskEX7iyZiyuXdnzeLJMabcjOP+gRJ5DWr Jfp27pgA08gAlKqSRoy2mMLGKAJXnSGwSk+sVLVEb+aS8smD6lnRXtpyklXzCMSFWi9uQ3 PVTvek3bBgLkZBWIxEPZbOWgGsFOIaek4NgaOpmfsJ0mfBWiNEJQHhdRDluacQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760631590; a=rsa-sha256; cv=none; b=hHM5vYBKo1onM4Ozpm6zcSLbx8msZLpatCSDoWfIzFU4/uMKEDu2nFa3NzZXhd1R4mM4J8 9HQ2Cmro0rxpOjby1XyUHIZUzjH1nGkZ9JTPnUSa0PujUVaaZnET4tl/Ul/3ljFJ3oEehs DQOs2fEYUNwwbqrkj65VKWfKFaims9hsQrlmVvyQW/2sdY9XHKf44cOqIUTWK8e//ja5dN qI0W/BZfmIfUcP3dip1dLuQ1xbpPZeKqzgcrma88DN17rthN2u5O/lwywG9+r2rpjk1fKt WlShD+mjm8tDV5z/weCrwAaw3ZNDAZQ5I000D/+rc6Dh7bOIJPX2jcKGdtbfAw== 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 4cnY7p4x8CznH for ; Thu, 16 Oct 2025 16:19:50 +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 59GGJoVR092782 for ; Thu, 16 Oct 2025 16:19:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59GGJoqG092781 for net@FreeBSD.org; Thu, 16 Oct 2025 16:19:50 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: Thu, 16 Oct 2025 16:19:49 +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 #30 from vova@fbsd.ru --- (In reply to Michael Tuexen from comment #29) hm ... good question, I've created a new VM and did series of tests: CPX22 (2 vCPU 4GB RAM, old CX11 is not available any more) IPv4, Nuremberg just install 14.3, upgrade to 14.3p4 (with freebsd-update), install speedtest-go package, copy stable/14-087fc6ae0a8c kernel build outside as alternative summarized results: FreeBSD Offloading Try Download Upload Mbps Mbps 14.3p4 yes 1 1,413 736=20 14.3p4 yes 2 1,348 833=20 14.3p4 yes 3 1,377 901=20 14.3p4 yes 4 1,357 737=20 14.3p4 yes 5 1,352 571=20 14.3p4 yes 6 1,247 776=20 14.3p4 yes avg 1,349 759=20 CV% 4.11% 14.71% 14.3p4 no 1 1,574 681=20 14.3p4 no 2 1,598 702=20 14.3p4 no 3 1,237 602=20 14.3p4 no 4 1,537 778=20 14.3p4 no 5 1,541 745=20 14.3p4 no 6 1,568 623=20 14.3p4 no avg 1,509 688=20 CV% 8.96% 9.90% 14-087fc6ae0a8c yes 1 1,210 675=20 14-087fc6ae0a8c yes 2 1,332 707=20 14-087fc6ae0a8c yes 3 1,684 703=20 14-087fc6ae0a8c yes 4 1,320 460=20 14-087fc6ae0a8c yes 5 1,333 694=20 14-087fc6ae0a8c yes 6 1,279 825=20 14-087fc6ae0a8c yes avg 1,360 677=20 CV% 12.18% 17.58% 14-087fc6ae0a8c no 1 1,466 807=20 14-087fc6ae0a8c no 2 1,213 751=20 14-087fc6ae0a8c no 3 1,527 678=20 14-087fc6ae0a8c no 4 1,825 1,037=20 14-087fc6ae0a8c no 5 1,185 1,064=20 14-087fc6ae0a8c no 6 1,230 1,086=20 14-087fc6ae0a8c no avg 1,408 904=20 CV% 17.71% 19.81% What is seen: 1. diviations/variations is quite high, so, clearely does not worth to trust data after one measurement (my bad) 2. still incomparable with yours 260 Mbps (both up and down) - we masure something different? 3. turning off TSOs add ~10-12% of download consistently, but for upload -> sometimes improves, sometimes not (ifconfig vtnet0 -tso4 -tso6 -lro -rxcsum) 4. and these results still did not match what I have in my production VM=20 (will re-test with multiple measurements) # sysctl dev.vtnet.0 dev.vtnet.0.txq0.rescheduled: 0 dev.vtnet.0.txq0.tso: 1388393 dev.vtnet.0.txq0.csum: 20810001 dev.vtnet.0.txq0.omcasts: 0 dev.vtnet.0.txq0.obytes: 18916415358 dev.vtnet.0.txq0.opackets: 20810007 dev.vtnet.0.rxq0.rescheduled: 0 dev.vtnet.0.rxq0.host_lro: 216036 dev.vtnet.0.rxq0.csum_failed: 0 dev.vtnet.0.rxq0.csum: 17119906 dev.vtnet.0.rxq0.ierrors: 0 dev.vtnet.0.rxq0.iqdrops: 0 dev.vtnet.0.rxq0.ibytes: 36642213337 dev.vtnet.0.rxq0.ipackets: 24902539 dev.vtnet.0.tx_task_rescheduled: 0 dev.vtnet.0.tx_tso_offloaded: 0 dev.vtnet.0.tx_csum_offloaded: 0 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: 0 dev.vtnet.0.rx_csum_failed: 0 dev.vtnet.0.rx_csum_bad_proto: 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_pci1 dev.vtnet.0.%pnpinfo: vendor=3D0x00001af4 device=3D0x1041 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.=