Two NICs, one eth interface?
Subsystems (2)
Hi!
The following is happening when using 2.6: I've got two network interface
cards: SMC Ultra (ISA PNP card) and an Intel eepro100 card. The strange
thing is that both of these cards get the eth0 interface. Relative to
dmesg:
...
loop: loaded (max 8 devices)
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.htmleepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <[email protected]> and others
PCI: Found IRQ 11 for device 0000:00:03.0
PCI: Sharing IRQ 11 with 0000:00:07.2
eth0: OEM i82557/i82558 10/100 Ethernet, 00:90:27:A7:CE:6A, IRQ 11.
Board assembly 734938-001, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0x04f4518b).
pnp: Device 00:01.00 activated.smc-ultra.c: ISAPnP reports SMC EtherEZ (8416) at i/o 0x240, irq 5.
smc-ultra.c:v2.02 2/3/98 Donald Becker ([email protected])
eth0: SMC EtherEZ at 0x240, 00 00 C0 2A 26 DE,assigned IRQ 5 programmed-I/O mode. smc-ultra.c: No ISAPnP cards found, trying standard ones...
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
So you can see there is only one eth interface for two NICs. Modules are turned off, and ISAPnP is enabled. Cheers,
Zoltan
RFC 1/1 multiple eth0 mixed PCI/ISA init
PCI is getting initialized before the old ISA probing code, so your PCI card is grabbing eth0 before the ISA card gets started.
You might be able workaround the problem probably by doing:
netdev=0,1,0,0,eth0
which should cause the ISA probe code to skip eth0 and go on to eth1
This patch should fix 2.6.0 (have similar but different fix for net-drivers-2.5-exp). I don't have an ISA card to actually test this code path.
drivers/net/Space.c +1 -1
@@ -350,7 +350,7 @@* Backwards compatibility - historically an I/O base of 1 was * used to indicate not to probe for this ethN interface */ -if (dev->base_addr ==1 ) { +if (__dev_get_by_name (dev->name) || dev->base_addr ==1 ) {free_netdev (dev);return -ENXIO ; }
Re: [RFC] multiple eth0 mixed PCI/ISA init
Quoted 15 lines · Stephen Hemminger
PCI is getting initialized before the old ISA probing code, so your PCI card is grabbing eth0 before the ISA card gets started.
You might be able workaround the problem probably by doing:
netdev=0,1,0,0,eth0which should cause the ISA probe code to skip eth0 and go on to eth1
This patch should fix 2.6.0 (have similar but different fix for net-drivers-2.5-exp). I don't have an ISA card to actually test this code path.
diff -Nru
a/drivers/net/Space.cb/drivers/net/Space.c
drivers/net/Space.c line 356
Quoted 8 lines
drivers/net/Space.c +1
-1@@ -350,7 +350,7 @@* Backwards compatibility - historically an I/O base of 1 was * used to indicate not to probe for this ethN interface */ -if (dev->base_addr ==1 ) { +if (__dev_get_by_name (dev->name) || dev->base_addr ==1 ) {free_netdev (dev);return -ENXIO ; }
Thanks a lot! This has fixed my problem. Now my ISA card initializes as eth1.
Cheers,
Zoltan