Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Dec 1996 16:08:22 +0100 (MET)
From:      Andrzej Bialecki <abial@korin.warman.org.pl>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   de0 not restoring routing
Message-ID:  <Pine.NEB.3.95.961202155429.7734A-100000@korin.warman.org.pl>

next in thread | raw e-mail | index | archive | help
Hi!

I installed 2.2-ALPHA today, and I noticed some strange behaviour of the
de0 driver. I use SMC EtherPower PCI adapter, with 10baseT.

Here is my config:
Dec  2 13:25:09 smurf2 /kernel: FreeBSD 2.2-ALPHA #0: Mon Dec  2 13:23:30 MET 1996
Dec  2 13:25:09 smurf2 /kernel:     root@smurf2.warman.org.pl:/usr/src/sys/compile/TUNE
Dec  2 13:25:09 smurf2 /kernel: Calibrating clock(s) relative to mc146818A clock ... i586 clock: 132634412 Hz, i8254 clock: 1193211 Hz
Dec  2 13:25:09 smurf2 /kernel: CPU: Pentium (132.63-MHz 586-class CPU)
Dec  2 13:25:09 smurf2 /kernel:   Origin = "GenuineIntel"  Id = 0x52c  Stepping=12
Dec  2 13:25:09 smurf2 /kernel:   Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
Dec  2 13:25:09 smurf2 /kernel: real memory  = 67108864 (65536K bytes)
Dec  2 13:25:09 smurf2 /kernel: avail memory = 63164416 (61684K bytes)
Dec  2 13:25:09 smurf2 /kernel: Probing for devices on PCI bus 0:
Dec  2 13:25:09 smurf2 /kernel: chip0 <Intel 82439> rev 1 on pci0:0
Dec  2 13:25:09 smurf2 /kernel: chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0
Dec  2 13:25:09 smurf2 /kernel: chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1
Dec  2 13:25:09 smurf2 /kernel: ahc0 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 11 on pci0:15
Dec  2 13:25:09 smurf2 /kernel: ahc0: aic7880 Single Channel, SCSI Id=7, 16 SCBs
Dec  2 13:25:09 smurf2 /kernel: ahc0 waiting for scsi devices to settle
Dec  2 13:25:10 smurf2 /kernel: (ahc0:0:0): "FUJITSU M2952S-512 0124" type 0 fixed SCSI 2
Dec  2 13:25:10 smurf2 /kernel: sd0(ahc0:0:0): Direct-Access 2291MB (4693462 512 byte sectors)
Dec  2 13:25:10 smurf2 /kernel: vga0 <VGA-compatible display device> rev 0 int a irq 10 on pci0:16
Dec  2 13:25:10 smurf2 /kernel: de0 <Digital DC21041 Ethernet> rev 17 int a irq 9 on pci0:17
Dec  2 13:25:10 smurf2 /kernel: de0: DC21041 [10Mb/s] pass 1.1
Dec  2 13:25:10 smurf2 /kernel: de0: address 00:00:c0:32:6f:e9
Dec  2 13:25:10 smurf2 /kernel: Probing for devices on the ISA bus:
Dec  2 13:25:10 smurf2 /kernel: sc0 at 0x60-0x6f irq 1 on motherboard
Dec  2 13:25:10 smurf2 /kernel: sc0: VGA color <16 virtual consoles, flags=0x0>
Dec  2 13:25:10 smurf2 /kernel: sio0 at 0x3f8-0x3ff irq 4 on isa
Dec  2 13:25:10 smurf2 /kernel: sio0: type 16550A
Dec  2 13:25:10 smurf2 /kernel: sio1 at 0x2f8-0x2ff irq 3 on isa
Dec  2 13:25:10 smurf2 /kernel: sio1: type 16550A
Dec  2 13:25:10 smurf2 /kernel: lpt0 at 0x378-0x37f irq 7 on isa
Dec  2 13:25:10 smurf2 /kernel: lpt0: Interrupt-driven port
Dec  2 13:25:10 smurf2 /kernel: lp0: TCP/IP capable interface
Dec  2 13:25:10 smurf2 /kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
Dec  2 13:25:10 smurf2 /kernel: fdc0: NEC 72065B
Dec  2 13:25:10 smurf2 /kernel: fd0: 1.44MB 3.5in
Dec  2 13:25:11 smurf2 /kernel: npx0 on motherboard
Dec  2 13:25:11 smurf2 /kernel: npx0: INT 16 interface
Dec  2 13:25:11 smurf2 /kernel: changing root device to sd0a
Dec  2 13:25:11 smurf2 /kernel: de0: enabling 10baseT port


When there is a link failure (e.g. I pull out the cable), it prints:

Dec  2 15:02:37 smurf2 /kernel: de0: autosense failed: cable problem?
Dec  2 15:02:38 smurf2 routed[57]: sendto(de0, 224.0.0.2): No route to host
Dec  2 15:02:41 smurf2 routed[57]: sendto(de0, 224.0.0.2): No route to host

And then, when I plug in the cable:

Dec  2 15:03:06 smurf2 routed[57]: interface de0 to 148.81.160.200 turned off
Dec  2 15:03:09 smurf2 routed[57]: interface de0 to 148.81.160.200 restored

So, everything seems ok, EXCEPT it doesn't restore routing! netstat -r
hangs forever...

So, finally I have to make ifconfig de0 down, the up, and then it works
again...

Dec  2 15:17:27 smurf2 /kernel: de0: autosense failed: cable problem?
Dec  2 15:58:30 smurf2 routed[57]: interface de0 to 148.81.160.200 turned off
Dec  2 15:58:33 smurf2 routed[57]: interface de0 to 148.81.160.200 restored
 
But probably this isn't the way the things should work, is it?
I'd appreciate any insights/help/other... ;-)

Andy


+-------------------------------------------------------------------------+
Andrzej Bialecki <abial@warman.org.pl>    _)    _)   _)_)   _)_)_) _)  _)
---------------------------------------   _)_)  _) _)    _) _)_)   _)_)
Research and Academic Network in Poland   _)  _)_) _)_)_)_)     _) _) _)
Bartycka 18, 00-716 Warsaw, Poland        _)    _) _)    _) _)_)_) _)  _)
+-------------------------------------------------------------------------+





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.961202155429.7734A-100000>