From owner-freebsd-stable@FreeBSD.ORG Tue May 28 19:34:17 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6F58E2FD; Tue, 28 May 2013 19:34:17 +0000 (UTC) (envelope-from mikes@siralan.org) Received: from mail.suso.org (mail.suso.org [66.244.94.5]) by mx1.freebsd.org (Postfix) with ESMTP id 387D8147; Tue, 28 May 2013 19:34:16 +0000 (UTC) Received: from c-98-223-197-163.hsd1.in.comcast.net (c-98-223-197-163.hsd1.in.comcast.net [98.223.197.163]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.suso.org (Postfix) with ESMTP id CD4F513813F; Tue, 28 May 2013 19:34:05 +0000 (GMT) Date: Tue, 28 May 2013 15:34:00 -0400 (EDT) From: "Michael L. Squires" X-X-Sender: mikes@familysquires.net To: YongHyeon PYUN Subject: Re: Apparent fxp regression in FreeBSD 8.4-RC3 In-Reply-To: <20130528023300.GA3077@michelle.cdnetworks.com> Message-ID: References: <20130524044919.GA41292@icarus.home.lan> <20130524054720.GA1496@michelle.cdnetworks.com> <20130524.162926.395058052118975996.hrs@allbsd.org> <20130524.163646.628115045676432731.hrs@allbsd.org> <20130526113841.GA1511@michelle.cdnetworks.com> <20130527043923.GA1480@michelle.cdnetworks.com> <20130528023300.GA3077@michelle.cdnetworks.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: jdc@koitsu.org, gjb@freebsd.org, freebsd-stable@freebsd.org, re@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 19:34:17 -0000 Short answer: it didn't work. On Tue, 28 May 2013, YongHyeon PYUN wrote: > On Mon, May 27, 2013 at 01:02:14PM -0400, Michael L. Squires wrote: >> >> On Mon, 27 May 2013, YongHyeon PYUN wrote: >> >>> On Sun, May 26, 2013 at 08:38:41PM +0900, YongHyeon PYUN wrote: >>>> On Fri, May 24, 2013 at 04:36:46PM +0900, Hiroki Sato wrote: >>>>> Hiroki Sato wrote >>>>> in <20130524.162926.395058052118975996.hrs@allbsd.org>: >>>>> >>>>> hr> YongHyeon PYUN wrote >>>>> hr> in <20130524054720.GA1496@michelle.cdnetworks.com>: >>>>> hr> >>>>> hr> A workaround is specifying the following line in rc.conf: >>>>> hr> >>>>> hr> ifconfig_fxp0="DHCP media 100baseTX mediaopt full-duplex" >>>>> >> >> Sorry I've been offline, two trips last week. >> >> I've installed 8.4-RELEASE on the NAT box with the fxp interface: >> >> FreeBSD familysquires.net 8.4-RELEASE FreeBSD 8.4-RELEASE #54: Sun May 26 >> 22:56:19 EDT 2013 root@familysquires.net:/usr/obj/usr/src/sys/NEWGATE >> i386 >> >> and am using the workaround given above which has stopped the fxp interface >> cycling on/off. >> >> I'll have access to the other box on Wednesday and will try the other test. > > Here is patch I'm testing and it seems to work with dhclient on > CURRENT. > Mike, could you try attached patch? Patch did not solve the problem on the home NAT box. I'll try it on the second 1U box at work tomorrow. I applied the patch (see below) and recompiled/reinstalled world. root@familysquires:/usr/src/sys/dev/fxp # uname -a FreeBSD familysquires.net 8.4-RELEASE FreeBSD 8.4-RELEASE #54: Sun May 26 22:56:19 EDT 2013 root@familysquires.net:/usr/obj/usr/src/sys/NEWGATE i386 drwxr-xr-x 236 root 3584 May 28 10:28 ../ -rw-r--r-- 1 root 95366 May 28 10:28 if_fxp.c -rw-r--r-- 1 root 94968 Mar 28 09:04 if_fxp.c.orig -rw-r--r-- 1 root 15638 Mar 28 09:04 if_fxpreg.h -rw-r--r-- 1 root 8717 Mar 28 09:04 if_fxpvar.h -rw-r--r-- 1 root 23009 Mar 28 09:04 rcvbundl.h One immediate difference in behavior is that without the modified rc.conf the box was unable to use ntp to the outside world; it eventually sync'd on my internal ntp server. With the modified rc.conf the box immediately sync'd to an ntp server in the outside world. Result in messages was: May 28 13:39:24 familysquires kernel: fxp0: link state changed to DOWN May 28 13:39:24 familysquires dhclient: New Subnet Mask (fxp0): 255.255.240.0 May 28 13:39:24 familysquires dhclient: New Broadcast Address (fxp0): 255.255.25 5.255 May 28 13:39:24 familysquires dhclient: New Routers (fxp0): xx.xxx.xxx.1 May 28 13:39:26 familysquires kernel: fxp0: link state changed to UP May 28 13:39:26 familysquires dhclient: New IP Address (fxp0): xx.xxx.xxx.163 May 28 13:39:26 familysquires kernel: fxp0: link state changed to DOWN May 28 13:39:26 familysquires dhclient: New Subnet Mask (fxp0): 255.255.240.0 May 28 13:39:26 familysquires dhclient: New Broadcast Address (fxp0): 255.255.25 5.255 May 28 13:39:26 familysquires dhclient: New Routers (fxp0): xx.xxx.xxx.1 May 28 13:39:28 familysquires kernel: fxp0: link state changed to UP May 28 13:39:31 familysquires dhclient: New IP Address (fxp0): xx.xxx.xxx.163 May 28 13:39:31 familysquires kernel: fxp0: link state changed to DOWN May 28 13:39:31 familysquires dhclient: New Subnet Mask (fxp0): 255.255.240.0 May 28 13:39:31 familysquires dhclient: New Broadcast Address (fxp0): 255.255.25 5.255 May 28 13:39:31 familysquires dhclient: New Routers (fxp0): xx.xxx.xxx.1 May 28 13:39:33 familysquires kernel: fxp0: link state changed to UP May 28 13:39:36 familysquires dhclient: New IP Address (fxp0): xx.xxx.xxx.163 May 28 13:39:36 familysquires kernel: fxp0: link state changed to DOWN May 28 13:39:36 familysquires dhclient: New Subnet Mask (fxp0): 255.255.240.0 May 28 13:39:36 familysquires dhclient: New Broadcast Address (fxp0): 255.255.25 5.255 May 28 13:39:36 familysquires dhclient: New Routers (fxp0): xx.xxx.xxx.1 May 28 13:39:38 familysquires kernel: fxp0: link state changed to UP May 28 13:39:40 familysquires reboot: rebooted by root Mike Squires mikes@siralan.org UN*X at home since 1986