From owner-freebsd-hackers@freebsd.org Thu Oct 29 14:00:19 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C117A452223; Thu, 29 Oct 2020 14:00:19 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CMRsb4jnDz3XC0; Thu, 29 Oct 2020 14:00:19 +0000 (UTC) (envelope-from kp@FreeBSD.org) 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 "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 6C4892364E; Thu, 29 Oct 2020 14:00:19 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id 55BC029A72; Thu, 29 Oct 2020 15:00:17 +0100 (CET) From: "Kristof Provost" To: "Carsten =?utf-8?q?B=C3=A4cker?=" Cc: freebsd-hackers@freebsd.org, freebsd-arm@freebsd.org Subject: Re: Problem with checksum offloading on RPi3 (PF + Jails involved) Date: Thu, 29 Oct 2020 15:00:16 +0100 X-Mailer: MailMate (1.13.2r5673) Message-ID: In-Reply-To: <748edc3d-4ef7-c4de-291f-7c0b460a6052@gmx.de> References: <748edc3d-4ef7-c4de-291f-7c0b460a6052@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2020 14:00:19 -0000 On 29 Oct 2020, at 14:29, Carsten Bäcker wrote: > Hi Hackers, > > just stumbled upon a problem on my RPi3, but i am not sure if this is > arm-related. > > Running System: > "FreeBSD generic 12.1-RELEASE-p9 FreeBSD 12.1-RELEASE-p9 r365508 > GENERIC  arm64" > > I created a jail and set up NAT using PF. Same configuration runs > perfectly on my server. > However the jail was unable to resolve hostnames. > > After enabling pflog for the NAT-rules i noticed these errors: > "[bad udp cksum 0xe58a -> 0x482d!]" > > So i disabled checksum offloading and everything worked fine. > "ifconfig ue0 -rxcsum" > > Any chance to get this fixed? > First someone’s going to have to be able to reproduce it. I fixed issues related to checksums in pf years ago, and while I’ve heard vague reports that it still wasn’t fixed in all cases I’ve not yet been able to reproduce (or even have someone else reproduce) those issues. My initial suspicion would fall to the network driver rather than pf itself. Let’s start by figuring out which one that is. Presumably you’ve got a USB ethernet thing plugged in. Which one? (`sudo usbconfig dump_device_desc` will help). Best, Kristof