From owner-freebsd-net@freebsd.org Sun Sep 16 21:14:59 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8626010808B5; Sun, 16 Sep 2018 21:14:59 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3BF8881682; Sun, 16 Sep 2018 21:14:59 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 1C6FE1B9CB; Sun, 16 Sep 2018 21:14:59 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [172.28.128.1] (ptr-8rh08jyfxuybr5zu0sb.18120a2.ip6.access.telenet.be [IPv6:2a02:1811:240e:402:18d0:b636:eff9:67b]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 96C8342367; Sun, 16 Sep 2018 23:14:56 +0200 (CEST) From: "Kristof Provost" To: "Eric van Gyzen" Cc: "Kurt Jaeger" , freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: Re: Bad DHCP Checksums over VLANs Date: Sun, 16 Sep 2018 23:14:55 +0200 X-Mailer: MailMate (2.0BETAr6121) Message-ID: <2D1D4467-2256-40C5-B69F-B9BDC7C7F7D6@FreeBSD.org> In-Reply-To: <794ae64b-54d8-cfde-2e9c-87b3b74e0516@vangyzen.net> References: <9dd3c7f9-d970-5d30-ebf2-c0f40c76011b@vangyzen.net> <20180915060615.GF2118@home.opsec.eu> <794ae64b-54d8-cfde-2e9c-87b3b74e0516@vangyzen.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2018 21:14:59 -0000 On 16 Sep 2018, at 23:05, Eric van Gyzen wrote: > On 9/15/18 1:06 AM, Kurt Jaeger wrote: >> Can you disable all the options of the NIC ? >> >> ifconfig igb0 -rxcsum -txcsum -wol -tso4 -vlanmtu -vlanhwtag >> -vlanhwcsum -vlanhwtso >> >> Try to disable everything that can be disabled, e.g. LRO etc. > > Disabling vlanhwtag works around the problem. > > Also note that only DHCP traffic has this problem. If I assign an > address manually, all traffic flows normally. Maybe the problem is in > the BPF send path. > I had a similar issue, where -vlanhwtag also fixed it. That was on a I210 (gib) card (in a FreeNAS mini XL). Regards, Kristof From owner-freebsd-net@freebsd.org Mon Sep 17 04:19:01 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 330A41090D59; Mon, 17 Sep 2018 04:19:01 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BCF068D3F8; Mon, 17 Sep 2018 04:19:00 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from pi by home.opsec.eu with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1g1kzy-000IA4-Es; Mon, 17 Sep 2018 06:18:58 +0200 Date: Mon, 17 Sep 2018 06:18:58 +0200 From: Kurt Jaeger To: Kristof Provost Cc: Eric van Gyzen , Kurt Jaeger , freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: Re: Bad DHCP Checksums over VLANs Message-ID: <20180917041858.GH2118@home.opsec.eu> References: <9dd3c7f9-d970-5d30-ebf2-c0f40c76011b@vangyzen.net> <20180915060615.GF2118@home.opsec.eu> <794ae64b-54d8-cfde-2e9c-87b3b74e0516@vangyzen.net> <2D1D4467-2256-40C5-B69F-B9BDC7C7F7D6@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2D1D4467-2256-40C5-B69F-B9BDC7C7F7D6@FreeBSD.org> X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2018 04:19:01 -0000 Hi! > >> ifconfig igb0 -rxcsum -txcsum -wol -tso4 -vlanmtu -vlanhwtag > >> -vlanhwcsum -vlanhwtso > >> > >> Try to disable everything that can be disabled, e.g. LRO etc. > > > > Disabling vlanhwtag works around the problem. > > > > Also note that only DHCP traffic has this problem. If I assign an > > address manually, all traffic flows normally. Maybe the problem is in > > the BPF send path. > > > I had a similar issue, where -vlanhwtag also fixed it. > That was on a I210 (gib) card (in a FreeNAS mini XL). I've created a PR for this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231416 -- pi@FreeBSD.org +49 171 3101372 2 years to go !