From nobody Tue Apr 12 10:43:10 2022 X-Original-To: freebsd-stable@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 6BFFC1A817D1 for ; Tue, 12 Apr 2022 10:43:14 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kd2PZ2hq8z4RnL; Tue, 12 Apr 2022 10:43:14 +0000 (UTC) (envelope-from kp@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649760194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mBbWizOQnt7p3IUVQa8bUL9UCxeUS6wDRQaUXvBPWzQ=; b=xIzjuoren4ranLTkmSBs1S/bf1EZ22+cmObiOBoTL7WupkujZvWFHnbmDYG9PXHLnnX50R vP3bISrE02uQ7Bat5dGGqzrmpg3YK3BufYa+d4yWR12gNqqcfeOqvGoFjCvejMtrncfuED 6H8An5EqerjJtDcJkv4ixSDC8VlptBT8jaJvvOYrHOmhGXVhtGBWmHFZM8h0kZ9UHb3Tbs NSLP/YSTxX2t23xcKYikXsKXKr7MAMrKmlqBMnt1AguqaebRCeZ4/cHpjY2O3RompZ3JIo bhx99VVwoXdpW4hXL+e2I+8/iEupcr2YanQ3UJt9lkAj4sPvobBSAu+ryEDrEw== Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.codepro.be", Issuer "R3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 28073D89A; Tue, 12 Apr 2022 10:43:14 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id 7E5B21159B; Tue, 12 Apr 2022 12:43:11 +0200 (CEST) From: Kristof Provost To: Matt Garber Cc: mike tancsa , FreeBSD-STABLE Mailing List Subject: Re: vtnet rxcsum broken for forwarding RELENG_13 ? Date: Tue, 12 Apr 2022 12:43:10 +0200 X-Mailer: MailMate (1.14r5852) Message-ID: <0FE1F488-EEA5-4010-9926-2D9567E8461F@FreeBSD.org> In-Reply-To: References: List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649760194; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mBbWizOQnt7p3IUVQa8bUL9UCxeUS6wDRQaUXvBPWzQ=; b=PRj3vzwbv8Aqnx2Mi4mGbByLH82xOiV+kwTeJpSK6ql1Ey9eKRN1xL9HD8za+W/1maBUL3 kGdx+uKqFfKTu7E9EsSa4XkNieTEKb+fWTClbJ5ZrCx/ePgRbSkgW3JUig9ngyZWJflTUP pLvkVLpAdteBWyTAOgU+3ACyAjmupKQNhv7XYSTKAaQ5EuIx9fPRNSyTEn9Jru1ho3/tMg l3CcOaJND5/pZ6xBGeu0ianPLWHgfSRAuePgqU93TwZRQev6gjUvcrtKC1SeuuiK3X5Hr1 zZQ3cDqXRcMcinIwEFHa27B4fW83LfuIfxlv1c5z2fRN+9KdeJzD1zIFv2FNjA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649760194; a=rsa-sha256; cv=none; b=dODLjK8w8tt+xHBKKxvITkA3vmgVPi5OfhVuMnU094wYDKCPxil0bw2OufJzf56O/iddr3 AVDkSSZDSk1o011tJ9cfSCRzXev3UQseXzA0SFdskuzvP9dPXiqukKQDGEIhJt7r6tXx/a HECU9CgRvbRYZF8ZN1ZmwO4K7PCdZ3y2WvyuXsNYtlqQQu3ERWEqtXCRHR64ibrSZRSeJH dhxU5VBp6IgVWGobw04GQp5aya4wCF252l+DZgbYFn1PlHSO5NV6UioWVXzmLdoRlT4rNp V3I3c7boabS/Jh7T93b4lezlyrqHZmXHCC8+GI95r30/qGCzXXreJUcreQGUTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 12 Apr 2022, at 2:07, Matt Garber wrote: > On Mon, Apr 11, 2022 at 7:15 PM mike tancsa wrote: > >> I was setting up a VM pf firewall and noticed I was not able to nat out >> for some reason. Looking at the pcap, it seems when the vm is in >> forwarding mode, I get tcp checksum errors. If I do a >> >> ifconfig vtnet1 -rxcsum >> >> ifconfig vtnet0 -rxcsum >> >> nat then seems to work fine >> >> The setup is a simple VM with the hypervisor libvirt/KVM ubuntu 20 LTS. >> Guest is RELENG_13 from Apr 11/2022. If I change to em nics in the VM, >> all is fine out of the box. >> >> >> I opened up https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263229 > > > > Unless someone knows otherwise, I’ve been under the impression that PF — or > potentially any of the other FreeBSD firewalls (?), but I use PF — has been > “broken” in that regard on Linux KVM-based FreeBSD guests for years. As > such I’ve always needed to use csum_disable flags on the vtnet interfaces > or suffer *extremely* poor network performance, even for servers not doing > NAT forwarding. > That PF checksum issue was fixed c110fc49da2995d10d60d908af0838ecb4be9bee, back in 2015. Kristof