Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2018 23:14:55 +0200
From:      "Kristof Provost" <kp@FreeBSD.org>
To:        "Eric van Gyzen" <eric@vangyzen.net>
Cc:        "Kurt Jaeger" <pi@freebsd.org>, freebsd-current@freebsd.org, freebsd-net@freebsd.org
Subject:   Re: Bad DHCP Checksums over VLANs
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <owner-freebsd-net@freebsd.org>
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 <pi@freebsd.org>)
 id 1g1kzy-000IA4-Es; Mon, 17 Sep 2018 06:18:58 +0200
Date: Mon, 17 Sep 2018 06:18:58 +0200
From: Kurt Jaeger <pi@freebsd.org>
To: Kristof Provost <kp@freebsd.org>
Cc: Eric van Gyzen <eric@vangyzen.net>, Kurt Jaeger <pi@freebsd.org>,
 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 <freebsd-net.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/>;
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=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 !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2D1D4467-2256-40C5-B69F-B9BDC7C7F7D6>