Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2013 15:34:00 -0400 (EDT)
From:      "Michael L. Squires" <mikes@siralan.org>
To:        YongHyeon PYUN <pyunyh@gmail.com>
Cc:        jdc@koitsu.org, gjb@freebsd.org, freebsd-stable@freebsd.org, re@freebsd.org
Subject:   Re: Apparent fxp regression in FreeBSD 8.4-RC3
Message-ID:  <alpine.BSF.2.00.1305281524010.1081@familysquires.net>
In-Reply-To: <20130528023300.GA3077@michelle.cdnetworks.com>
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> <alpine.BSF.2.00.1305271258170.1096@familysquires.net> <20130528023300.GA3077@michelle.cdnetworks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <hrs@FreeBSD.org> wrote
>>>>>  in <20130524.162926.395058052118975996.hrs@allbsd.org>:
>>>>>
>>>>> hr> YongHyeon PYUN <pyunyh@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1305281524010.1081>