From nobody Thu Sep 11 06:20:57 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 4cMnVx4ZTfz67h18 for ; Thu, 11 Sep 2025 06:20:57 +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 4cMnVx3jrwz42rg for ; Thu, 11 Sep 2025 06:20:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757571657; 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=vlEn9597wbwTl5FhuNMiinKTbaHhWw4r4OFuqno9fCc=; b=av1NenCAmbPws6WpT6ORgTU4Q55iK5EBXtbd0TpDB8aDnsq54HLnZ0MwwcaasII9mwxYWz vgUcvBBAuYJUldA3ouadsfWJKvP5aUQoETkUBvKMu0jXWwEPYeilbTyPOOCaQZXvBmD40m qwP43Ng2SoiqbZKQTDhviprF2iiD5bF+f+8c8HrRl0rW5j32fjUuiJiYpbG9TZJ6L3wLO+ /Xqei3B6mu9eH5YKlBW00hx2xF4S700T50W4SFZhwq1GAabpiVFRSOXnTWhlTzN2pnzdb+ 57k7/5GWCP/Zj4C0DnEJ7RUtumRDqkjALzo2NQ9k7Kb4Ru7exc0Yx1DArDvN8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757571657; 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=vlEn9597wbwTl5FhuNMiinKTbaHhWw4r4OFuqno9fCc=; b=XGkyulq12JsLf1SGpvslzD7+1/zYTE98HbW/c8Lq7K+i/n7htT4MCX43REGj2t+79UI/CO Mbt2sss27p7qXaXOeO7uGXKkg2InHDci0rOKhWFFldO628qQDQhnly8sajuLWBVvyy6IG0 ybWlmfIx9IIFtpoIA43tV0ccAytq8PVWDI84/NNYuf8Na/TRCAV81RtnPoQO2xQu5ULtww ErUoY5NekGn2of40M1KVLAwAPiXEmM5EzxuCRNcBnBv+ehj7BQSzhVEuAuDImfftuji5OZ eFk8C1fmpmgzx4BeG5qV4yw7VmCAZyqCkbPoKPq+RgboSPhL+FBg0uTbJbi/Hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757571657; a=rsa-sha256; cv=none; b=snILVAR1R4mqLFHCLucj5Pzn9FmTbd56s1Q4kDtSOvRnqQiqInAUOWHf4vEDYbsHQ6otJx QN2tZEvsHnG+ESB5mh3QsH+ruzb/nJUo43qvrYhvzhYxi/+Bxkt+1otqfY6OFSJY/ScJ3D lO/wVwMuX+U6sw69nrhNDkcY2HYjSVEF9xIygKUH2hLjquU6Nl6NPluKVgoXkjL21XNE7Z bCUOYn+0LWltiZYIjmvZZtu1TawiLrIq8bo41q5I1WYg5M6fhmY+62aLKw1ZouEq6YswOh uXLi5raBGQ7c2c0iRlq9nkBUPmpB7v+cIxKZohL2rOvCdhCsddAJflKFBZ7rYQ== 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 4cMnVx349Czw0Y for ; Thu, 11 Sep 2025 06:20:57 +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 58B6KvIT021242 for ; Thu, 11 Sep 2025 06:20:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 58B6Kv1I021241 for net@FreeBSD.org; Thu, 11 Sep 2025 06:20:57 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: Thu, 11 Sep 2025 06:20:57 +0000 X-Bugzilla-Reason: CC AssignedTo 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 #50 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D5a8f33f52ae38bbf12f8f45b8e0f75166= 805c386 commit 5a8f33f52ae38bbf12f8f45b8e0f75166805c386 Author: Timo V=C3=B6lker AuthorDate: 2025-09-08 20:38:49 +0000 Commit: Michael Tuexen CommitDate: 2025-09-11 06:17:12 +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 Differential Revision: https://reviews.freebsd.org/D51686 (cherry picked from commit 3008f30d2c2cabdd7e17f7fb922139da8681ffbd) 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 on the CC list for the bug. You are the assignee for the bug.=