From owner-freebsd-stable@freebsd.org Mon Jun 25 04:16:52 2018 Return-Path: Delivered-To: freebsd-stable@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 9291F10232AE for ; Mon, 25 Jun 2018 04:16:52 +0000 (UTC) (envelope-from 2yt@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 039CE89BB2 for ; Mon, 25 Jun 2018 04:16:51 +0000 (UTC) (envelope-from 2yt@gmx.com) Received: from xeon.localdomain ([98.127.45.240]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0ML72n-1fXa2r3vwf-000Hjg; Mon, 25 Jun 2018 06:16:41 +0200 Subject: Re: 11.2-RC3 regression - networking igb driver To: Jim Pingle , freebsd-stable@freebsd.org References: <2b154303-35f8-df8e-5d2f-ea93b8fdad1d@gmx.com> <2c4e2c6c-ef7a-66a3-e21d-222026c9e88c@pingle.org> From: David Samms <2yt@gmx.com> Message-ID: Date: Sun, 24 Jun 2018 22:16:38 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <2c4e2c6c-ef7a-66a3-e21d-222026c9e88c@pingle.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:S0XuBIZPoKCuO0ZKqrNrfBkI59OT+FLwNhwKtWSUwCc1VQ+XJ1a 54ldofGzHnmkLvWfwirtksT7Ug7P7GPqVFAKzTSUby+zm6WFOFRQuQNa3/3mYf+5p9kCJJt hhoo7YIJoO4qSSpTOeezrTT0lN5DfexCOgqKz00oFIZxgKR9S5Gu8mucrsvbj+FgKPeizn3 cOpzaLoq+D0zC00ImwpjA== X-UI-Out-Filterresults: notjunk:1;V01:K0:O3PGyRwKsAI=:PSlKdKnM/wtFD7AaH1oYX/ dmauDbZVms1jJtoBgiIdzxlWHMXf0YdVpZSvEols2TCUa8vOV+ztOJ2FQKb9z51ILjNy/GwZk f9zlVC4kFYDAgScoPDHrW5KRLKy9uRPSpivm+0PUEjsoPqTShuxvav7Il231AJLd8UpxMpPwF V4HGGiI6vo8gLbl+PvzsmskYFaAb2TqMMr6rm99HdVjQtUEBaeSvNghtiQ8W2QAOtjbbIxkRE NwCxTKRU6nFwMUEom3WlLs4PDHW7kItmFT6CRUVBb0A9JutNDEX4lUXPnC04h8HAcIp/WwYvT 26JgIqA28G1AvEe7/Lt/EmkZVikbQD79Q+0Z6YSdWiMJuMZdeTmsaJ7wl1S9fnci4tkwiAEKI aW3kKW/WezFTIop7fmw9hD4R8dp0uBVbrSIYR9Tp4Wu5P3r/OS1MvZSzvsHWsMEXgAG5Q/a7X FHWyjjf+8YhVXz/JgoF2550P5BWmcvWwqOmvoBygBrAoLJL7t0JBN79+mG0TYB6Q5wpW/Jnqg mDgUsjj9Y9tjNohWXu0FPjchA+Y7JqrUg/I6GK18Mfrtobbg/dld2QKvYAjyQeM14OsxjSHGH nChTNPVmrrX2Ngo7/wGHe68pcI+YRdCfuH9YuJIGgg/z+o13uW2ZLrtGdw3bN6KpCBocmW9rq 23Zr5W0snxh8CnWiamSnCr2DszRhFTdnlR2NTKAnju6HexiZSfWmmqyqhGYJJOaViB6EYOFli sEmS8VPQr4AC4AaTxaqyIcJNhb1d9DXjedWS5/tFrvwRpNI/00x5zw45HjrjCiCmofss5KhGW YXWP7SY X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2018 04:16:52 -0000 On 06/24/18 18:30, Jim Pingle wrote: > On 6/23/2018 1:27 PM, David Samms wrote: >> There is a regression in 11.2-RC3 that effects the igb driver for Intels >> C2000 SoC I354 Quad GbE Controller >> >> Supermicro A1SRi-2558F >> http://www.supermicro.com/products/motherboard/Atom/X10/A1SRi-2558F.cfm >> >> This server has run 10.x and 11.x fine up till 11.2-RC3. >> >> PROBLEM: >> with 11.2-RC3 the server boots and gets a network connection to the >> cable modem, but the interface (igb0) resets every 4-8 second. The reset >> time appears to be related to network load, but reset withing 10s with >> next to no traffic. I did try swapping cables, but with no effect. With >> each reset the interface successfully obtains an IP address via DHCP, >> works for a few seconds and resets. >> >> Restoring the server to 11.1-RELEASE-p10 resolves the problem. >> >> Any suggestions? > > Does your DHCP server send you an MTU, perhaps? Before the interface > resets, what does its MTU show? > > You might try creating a dhclient.conf that sets "supersede > interface-mtu 0;" and see if that helps. > > The MTU from DHCP feature is new (see > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206721 ) and e1000 > interfaces will reset when applying the MTU. > > Jim P. > Jim, Thank you for your kind reply. I believe you have correctly identified my issue. My ISP is Charter and the modem is a Arris TM822. Running off a live CD of both 11.2-RC3 and 12-CURRENT, I can see that DHCP receives a MTU of 576. In https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206721 they mention that this is an invalid value, and running dhclient -d, I can see that dhclient considers the value invalid and does reset the interface and makes another request. Interestingly, the interface doesn't appear to actually reset until the new address is received. Manually setting the interface with ifconfig/route, I can ping 8.8.8.8 with MTU of 576, but I didn't try any data transfers. Using ifconfig to set MTU 1500 works fine too. All said, I think we have a rather poor DHCP client in 11.2 and a BREAKING change for many casual users. At the very least, dhclient should be complaining of invalid values being received, that would help the user recover quickly. As of now, all you see in the log is that the interface reset. Ideally dhclient would log the invalid MTU as an error but continue as it did in 11.1 with a valid MTU. Again, thank you for taking the time to help me figure out this puzzle. I am on holiday for the next 5 days and will not be on the internet so won't be able to reply for a while. -- David Samms