From nobody Thu Sep 4 11:27:12 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 4cHcdd6V0Fz65pDK for ; Thu, 04 Sep 2025 11:27:17 +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 4cHcdd5wJ4z4GGr for ; Thu, 04 Sep 2025 11:27:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756985237; 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=sWJo+MbtlPumdzZCeQec1Lr8RCfTrKSQ1Wcngv9vqVc=; b=VpLEQ/+5QTt2M2n9IwOUERWQcEj2QP4V4YgjoWC0LPAxSbmZ+G/JsbERrLF/Sc15j/4A8/ q/VKzRBKjySIBxbIBRCz591c56kOdaIL3bWZCkmmAmIwk51q6GA550ucrkKU+G5gBiyJH4 hfEv/JjO6UBlzfKabnN0FRb72K9BH0RqtAKhusgR137vg4Y5CrtnhwV6uEG/3Nsavq5ALd fdK1M09Oad3G3DrzFoQ6OfpSqEYKsqJHuYm1iUQMGJJONpVfx/PuYxHgXJn7O6RAZX5K0A COv9G5pfEM5tC+0Nw+m574Da2UmbdlIp9on38kJerTiqTAo25RYZzztFTflQdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756985237; 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=sWJo+MbtlPumdzZCeQec1Lr8RCfTrKSQ1Wcngv9vqVc=; b=pm9yy2In13Q7YYXdY1TPumHzAV7uByiFZl+ukbWPo3d14diJ2F/kgDRiZJYGg85/0OPOWB 0WdnMbCIWebkOtmk4wTL3d3BOn17DIaNnOlZB1jUDS8esEK1BCNc/L00pekT8Lx4p+IIjh zPNOpGZzdjORcdTBY+pX4eDRphCcpWCFEUMQy2+s1GEuGOCevRr+QL6obAectYR6mnL1kW jEIC8lhsoGtDKuLEktZCBXj1Xxhv9+wUsBQFqzYqZm25UbHsyMCTB6NzkHfNH5NGLjidIx vpQMTXunqLZbfQv6kcjmoulKsQg63OZPF8h9uHIjdZ7wbnL83b3JiBDMrxMJ1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756985237; a=rsa-sha256; cv=none; b=PhCJkITY9Ecvgeo3CsGq3eSc0PUPWAozlOaRaHYEb36A07OYg9EyArSHfd3d2wniNAEWpu r/fqCt+9PlwLBmJ6t/mu53viRzcCI5EcQ1fEs5C3NfgbZ89A56sjvuSNaoQqaCiTSPTDh5 2X3sR+7ERErR5L3WM3Ic6iBNJCwzrVnRoh09IUYNs+LJHcLcBv3ILXu+MX1exH6XVCvhIE rRE6LJ+KxEGRdYo7TAQAd6pWlWSEdgVa06zsshOiWMXfZgpaTHbJIGZqrdp5XUSb+7+0r4 oekdCZWfNkTa+XmYFIXzYyX20OUVPxXTAKEB2QUowt121CeI0GIc6yzijoSWaQ== 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 4cHcdd5X98z114j for ; Thu, 04 Sep 2025 11:27:17 +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 584BRHWc042532 for ; Thu, 4 Sep 2025 11:27:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 584BRHbO042531 for net@FreeBSD.org; Thu, 4 Sep 2025 11:27:17 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, 04 Sep 2025 11:27:12 +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: Open 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 #47 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D1c23d8f9f39870951c1d0dfbb112fc4e5= 3237737 commit 1c23d8f9f39870951c1d0dfbb112fc4e53237737 Author: Michael Tuexen AuthorDate: 2025-09-04 11:16:46 +0000 Commit: Michael Tuexen CommitDate: 2025-09-04 11:16:46 +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: 1 week 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 on the CC list for the bug. You are the assignee for the bug.=