From nobody Mon Sep 8 20:43:59 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 4cLJpR25gfz675Sx for ; Mon, 08 Sep 2025 20:44:15 +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 4cLJpR1dFhz45Hs for ; Mon, 08 Sep 2025 20:44:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757364255; 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=MeyCr0i7Q8oruwMWRCWoNwti1kIPlH+YVVq4aZ7zXRU=; b=v815pkU1QE4by5xPJdQGM/BjVDy6XgZwup4WAeFPZsW+sKuPiOzxmn9qcYJIYDMUYRb9Zi J74+0aHPHhtqTY4cej91rOd29/+D7yb/ejoiVyZWvkd/jtZz1CrIz8cEzHgY57ascYTZZC VDbTFXPCGd8Eq7XicipY9j46KglIFA5uGaFDLz1R39e9y9JfQphJYGDafqwLLUU5yVMGWx qQIU7g4sT9jh5QqxCh7AIv7kf/9l128WrrC9lnrxBQwwsvdIYPjNZIXw6+z8Nc0hsQT41p sZQM2KfOVStw4Ss76g/JBbPTnhvRs4FvKRYhyQocIQSWHDq9KFz8o92eo/t8yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757364255; 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=MeyCr0i7Q8oruwMWRCWoNwti1kIPlH+YVVq4aZ7zXRU=; b=GYJoD6pLZ2R707HA74+A54s1ZVxJNrPhSUS0WM+bw3pAnS6eVu9/e1RORHGhaSwPXDqmxb kxpYvlXp0T8cWC59LGGw86TAXgy0Lq0s8nz+YnrS1UFw+40tZ9lY8LHwd8K5htxEzkKt1i 1IfD4lmcfCViubsv9ZVeL4lbHXSX1h7paeaTzO0dquPVE7z2nuxXZ7qz6BkPXhQZwv56Eb Nd2xJpPAqJ7M+c+onMwm6hznLg7e0ktIBTrDxXdgulvkZ1aXwWmazdbof8VHzEpuGuYQB2 +roOYy8KCS5OTIvcd7842zmk55MGHySqLb+okJf+rzkZyiE3goJz3Yit6QIFyw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757364255; a=rsa-sha256; cv=none; b=J036swTNZJSXxbImaA9AvjRc1S5vfoCjXllD4sW+tyIS165XenEkAkGf6mkgS6Yd7tFxF1 kr2zfPpfhhouadrtOPAiZgmHhTlh1DOnPbK8SQuvnz90RXqbuZ7VFVyffoMWc1MpDoYCHH 4di/ZA7nJQCuQ2o3FYBnQpmNrLgL5lASAhCKRU5wmLSGTlmoJxQbIINJoDHrL96JoLVR5r Czcp8B13omks/+XSsZCS/qN0dVn31vPaVPfy8yS5eyPbrr9DGfDbV50XhvKJ6JevTkXwhJ RvreXGcPsrppH7MuMkx10cwksfnF/8Yc4zuEtMy6ZPYQOAfkjzCoe4QBTuQo5Q== 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 4cLJpR19NJz1Kg2 for ; Mon, 08 Sep 2025 20:44:15 +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 588KiFxP042719 for ; Mon, 8 Sep 2025 20:44:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 588KiFW9042718 for net@FreeBSD.org; Mon, 8 Sep 2025 20:44:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 165059] vtnet(4): Networking breaks with a router using virtio net driver on KVM host Date: Mon, 08 Sep 2025 20:43:59 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 9.0-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? 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=3D165059 --- Comment #49 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D3008f30d2c2cabdd7e17f7fb922139da8= 681ffbd commit 3008f30d2c2cabdd7e17f7fb922139da8681ffbd Author: Timo V=C3=B6lker AuthorDate: 2025-09-08 20:38:49 +0000 Commit: Michael Tuexen CommitDate: 2025-09-08 20:38:49 +0000 vtnet: improve checksum offloading When transmitting a packet over the vtnet interface, map the csum flags CSUM_DATA_VALID | CSUM_PSEUDO_HDR to the virtio flag VIRTIO_NET_HDR_F_DATA_VALID. When receiving a packet over the virtio network channel, translate the virtio flag VIRTIO_NET_HDR_F_NEEDS_CSUM not to CSUM_DATA_VALID | CSUM_PSEUDO_HDR, but to CSUM_TCP, CSUM_TCP_IPV6, CSUM_UDP, or CSUM_UDP_IPV6. The second change fixes a series of issue related to checksum offloading for if_vtnet. While there, improve the stats counters to allow a detailed view on what is going on in relation to checksum offloading. PR: 165059 Reviewed by: tuexen, manpages MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D51686 share/man/man4/vtnet.4 | 28 +++-- sys/dev/virtio/network/if_vtnet.c | 220 ++++++++++++++++++-------------= ---- sys/dev/virtio/network/if_vtnetvar.h | 2 +- 3 files changed, 132 insertions(+), 118 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=