From nobody Fri Dec 20 20:28:42 2024 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 4YFJsR1qbxz5Z0Xj for ; Fri, 20 Dec 2024 20:28:43 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YFJsQ71jZz4SPr for ; Fri, 20 Dec 2024 20:28:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734726523; 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=w7+nmwS/3QJ7XQpDJNkURyVjmrDhJvj3HQTK0qW4/3c=; b=ybdT5oMHZm1ZKM/hrDqK0aUjoZlQ/s3UBFmYCrnQmyhhEkoekdgzebye/m+7ohgnyFfRNt 2FwhfQQOo1ZT3YNw2xG2428GD8myaBltQvaiB4FzrU/1+HEDyBJWGs+xVDttBi8FAGq5I2 i8j4QflCf4N8XCCiYxud7drr8wasfPnhZUxVYY3Ubj0OU50UjnIvAySEn0yRu4FjIQp1vZ LSAyNHMGQpd8J2AaLHGPEsDwVEcKxz6mLu8SGreveOxbTbwPczU4CmwiAVvG1d26c/Ipbj KYkikHCQ2veD22OSqHU+yEYpGaUBdehkjRAgipfuo+JktfX6RO/PqjrZckyjAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734726523; a=rsa-sha256; cv=none; b=M29KeLiFdKWshUVPRBFKuwm2m9dVo0ZBSyd8HR8bL9dBsluxLXZaci7qWcR0SCT9JMBO1s ZRZPlXx5tzq3+AXRzfjMD2/gudtrBgJP7w1KoV2UndKUoRIkc6oAj7/xgAvAEk4opt+721 qVeiTIX2fia2mrdzlzkDRnyQj5JdwFIg1Nts+CSeNjujiYABU1o5/Ovd+UshWhmgykzgIb oFpUr+VMSPe4cjLoJPxZB35YDsIgsT/jj7q/KNQYl1+6zyoqKJsGIF3HNXkG63VqJIADfS GjBD1nwhlMiTfocdM9b8mverGH8ptJ2R8qws+f7pP6Rry8fIgpQpTp5al21fAw== 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 4YFJsQ6VlpzsVP for ; Fri, 20 Dec 2024 20:28:42 +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 4BKKSgx2032953 for ; Fri, 20 Dec 2024 20:28:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BKKSg39032951 for net@FreeBSD.org; Fri, 20 Dec 2024 20:28:42 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 165059] vtnet(4): Networking breaks with a router using virtio net driver on KVM host Date: Fri, 20 Dec 2024 20:28:42 +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: 9.0-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: afedorov@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Aleksandr Fedorov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |afedorov@FreeBSD.org --- Comment #37 from Aleksandr Fedorov --- This is simply because FreeBSD does not know how to forward and NAT packets with offload. KVM forwards packets to a virtual machine that can be up to 64 kilobytes in size and without checksums. This is optimization!!! Just read the virtio specification: struct virtio_net_hdr { #define VIRTIO_NET_HDR_F_NEEDS_CSUM 1 #define VIRTIO_NET_HDR_F_DATA_VALID 2 #define VIRTIO_NET_HDR_F_RSC_INFO 4 u8 flags; #define VIRTIO_NET_HDR_GSO_NONE 0 #define VIRTIO_NET_HDR_GSO_TCPV4 1 #define VIRTIO_NET_HDR_GSO_UDP 3 #define VIRTIO_NET_HDR_GSO_TCPV6 4 #define VIRTIO_NET_HDR_GSO_UDP_L4 5 #define VIRTIO_NET_HDR_GSO_ECN 0x80 u8 gso_type; le16 hdr_len; le16 gso_size; le16 csum_start; le16 csum_offset; le16 num_buffers; le32 hash_value; (Only if VIRTIO_NET_F_HASH_REPORT negotiated) le16 hash_report; (Only if VIRTIO_NET_F_HASH_REPORT negotiated) le16 padding_reserved; (Only if VIRTIO_NET_F_HASH_REPORT negotiated) }; https://docs.oasis-open.org/virtio/virtio/v1.2/csd01/virtio-v1.2-csd01.html= #x1-2170001 --=20 You are receiving this mail because: You are on the CC list for the bug.=