* Quad ethernet card getting assigned different channels every install
@ 2002-12-03 14:16 Ian S. Nelson
2002-12-03 14:41 ` Nuno Silva
0 siblings, 1 reply; 5+ messages in thread
From: Ian S. Nelson @ 2002-12-03 14:16 UTC (permalink / raw)
To: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The kernel is 2.4.18, from Redhat. I've looked at some of the code and I
think this might actually be a hardware bug. I'm helping setup a 3 port
firewall, I'm remote so I haven't been hands on, the guy has a quad
ethernet card in it. Between kernel installs eth0, eth1, eth2, and eth3
seem to change which socket on the card they are.
Anyone seen anything like this before? The hardware didn't change and
to my knowledge no BIOS changes have happened. I'd assume that the PCI
bus would be enumerated the same each time and that the kernel, barring
changes to PCI device discovery, would give the same ethernet channel to
the same socket each time. It boots consistently when we figure out
what port is what.
In this particular case it's potentially a big security concern, if we
swapped the DMZ and protected zones and didn't notice then his network
might be exposed.
thanks,
Ian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE97LykV28blwDT2YMRAribAJ9N/kevyPK2ALbZqplzRnW2pp/mEACfe/cN
ug4c/2WZtGH7g5MzPBkU0xs=
=wykB
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Quad ethernet card getting assigned different channels every install
2002-12-03 14:16 Quad ethernet card getting assigned different channels every install Ian S. Nelson
@ 2002-12-03 14:41 ` Nuno Silva
2002-12-03 15:34 ` device driver modules Salman
2002-12-03 20:26 ` Quad ethernet card getting assigned different channels every install bill davidsen
0 siblings, 2 replies; 5+ messages in thread
From: Nuno Silva @ 2002-12-03 14:41 UTC (permalink / raw)
To: nelsonis; +Cc: linux-kernel
Hi!
You can load the module and specify the I/O address of each mii. This
way you'll allways get the same eth for a given I/O. Read the module's
fine manual :)
Regards,
Nuno Silva
Ian S. Nelson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> The kernel is 2.4.18, from Redhat. I've looked at some of the code and I
> think this might actually be a hardware bug. I'm helping setup a 3 port
> firewall, I'm remote so I haven't been hands on, the guy has a quad
> ethernet card in it. Between kernel installs eth0, eth1, eth2, and eth3
> seem to change which socket on the card they are.
>
> Anyone seen anything like this before? The hardware didn't change and
> to my knowledge no BIOS changes have happened. I'd assume that the PCI
> bus would be enumerated the same each time and that the kernel, barring
> changes to PCI device discovery, would give the same ethernet channel to
> the same socket each time. It boots consistently when we figure out
> what port is what.
>
> In this particular case it's potentially a big security concern, if we
> swapped the DMZ and protected zones and didn't notice then his network
> might be exposed.
>
>
> thanks,
> Ian
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.0 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQE97LykV28blwDT2YMRAribAJ9N/kevyPK2ALbZqplzRnW2pp/mEACfe/cN
> ug4c/2WZtGH7g5MzPBkU0xs=
> =wykB
> -----END PGP SIGNATURE-----
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* device driver modules
2002-12-03 14:41 ` Nuno Silva
@ 2002-12-03 15:34 ` Salman
[not found] ` <01cd01c29afc$1dab5900$61a1ba40@Henrique>
2002-12-03 20:26 ` Quad ethernet card getting assigned different channels every install bill davidsen
1 sibling, 1 reply; 5+ messages in thread
From: Salman @ 2002-12-03 15:34 UTC (permalink / raw)
To: linux-kernel
Hi !
I'm working with a device driver which comes in 2 modules.
One directly talking to the hardware and kernel, and the other sitting on top
of it, in user mode providing a nice interface for user applications and etc.
Basically the top layer should directly communicate with bottom layer for any
action.
I'm going through code of top layer, and it never calls the lower layer
functions ! a sample code traverses as follows (i used source navigator to go
through code)
ConnectRemoteSegment -> kcConnectR -> SISCI_IOCTL -> unixIoctl -> ioctl
all above fucntions are within the top layer code.
none are even listed in /proc/ksyms
and the ioctl function simply doesn't exist, not even in kernel source code.
I know i'm missing a major concept here, can someone guide me how to
understand what's going on.
Thanks,
Salman
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Quad ethernet card getting assigned different channels every install
2002-12-03 14:41 ` Nuno Silva
2002-12-03 15:34 ` device driver modules Salman
@ 2002-12-03 20:26 ` bill davidsen
1 sibling, 0 replies; 5+ messages in thread
From: bill davidsen @ 2002-12-03 20:26 UTC (permalink / raw)
To: linux-kernel
In article <3DECC289.2050500@vgertech.com>,
Nuno Silva <nuno.silva@vgertech.com> wrote:
| Hi!
|
| You can load the module and specify the I/O address of each mii. This
| way you'll allways get the same eth for a given I/O. Read the module's
| fine manual :)
| Ian S. Nelson wrote:
| > The kernel is 2.4.18, from Redhat. I've looked at some of the code and I
| > think this might actually be a hardware bug. I'm helping setup a 3 port
| > firewall, I'm remote so I haven't been hands on, the guy has a quad
| > ethernet card in it. Between kernel installs eth0, eth1, eth2, and eth3
| > seem to change which socket on the card they are.
It's not clear if the association of the name (ethN) to the io address
changes or the association of the io address to the connector. If Ian
will clarify, and perhaps check the ifconfig after a few boots...
If it's the name to io address mapping, and I assume it is, then Nuno
has the right idea, an options statement in modules.conf or on a command
line. If it's the latter the the BIOS is NOT doing deterministic
assignment. That would show in lspci with -vv, I believe. You could
still fix this, but it would be ugly, parsing lspci output and building
a command line for insmod.
--
bill davidsen <davidsen@tmr.com>
CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-12-03 21:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-03 14:16 Quad ethernet card getting assigned different channels every install Ian S. Nelson
2002-12-03 14:41 ` Nuno Silva
2002-12-03 15:34 ` device driver modules Salman
[not found] ` <01cd01c29afc$1dab5900$61a1ba40@Henrique>
2002-12-03 21:58 ` Salman
2002-12-03 20:26 ` Quad ethernet card getting assigned different channels every install bill davidsen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.