Re: How to load an Ethernet driver on only one adapter



Pascal Hambourg wrote:
Dale Dellutri a écrit :
On Wed, 21 Feb 2007 10:35:59 -0500, in comp.os.linux.networking Cyril Perrin <cyril.perrin@xxxxxxxx> wrote:

I'm using a PC with two Intel Gigabit adapters (i8254x). When Linux
(RedHat 7.2, kernel 2.4.24) boots, it calls "insmod e1000.o" and the
driver initializes and takes control of both adapters. Is there a way to
restrict the e1000 driver to only one adapter? I've searched in the
driver parameters but there is nothing obvious.

For what purpose is this needed ?

The following doesn't quite answer your question, but it
may help.

I'm running FC6. The driver module loaded for each of my
ethernet interfaces is controlled by entries in
/etc/modprobe.conf
for example:
alias eth0 3c59x
alias eth1 e100

This does not work. Don't use it. This is a misuse of the module aliases because it does not mean that the actual interface names match the alias names.

I think RH 7.2 has a similar file, but I believe that the
file was /etc/modules.conf. Try
man modules.conf
You may be able to set them to use different drivers, or
even set one to have no driver:
alias eth0 e1000
alias eth1 off
>
I do not need to use RH to know it does not work.
When eth0 is invoked, the e1000 module is loaded, takes control of both adapters and creates eth0 and eth1.

As you say, the OP wasn't very clear on why he wanted to do this. If all he wanted to do was keep the second e1000 adapter from being recognized, that's not possible (and why would you want to do that anyway?) If some other adapter absolutely MUST be eth1, then it is possible to change the interface-name-to-adapter mapping after the modules load. However, I don't remember whether it was possible in RH 7.2. The OP should see if "man nameif" works. If it does, the OP can either create the appropriate configuration file, or set HWADDR to the right MAC addresses in the interface startup scripts (can be done from the GUI tool if it was around back then).
.



Relevant Pages

  • PATCH: docs for updated sk98 from vendor
    ... +Marvell Yukon/SysKonnect SK-98xx Gigabit Ethernet Adapter family driver for LINUX ... the driver is integrated in the linux kernel source. ... both link partners are allowed to send PAUSE frames ...
    (Linux-Kernel)
  • [PATCH 18-rc2] Fix "can not" in Documentation and Kconfig
    ... This document only describes the force feedback part of the driver for I-Force ... The driver can not communicate with the adapter, ... If you remove a tcp congestion control module, then you will get the next ... - can not be retrofitted in any sane manner to support the hardware RAID ...
    (Linux-Kernel)
  • Re: Register to wmi via wdf driver
    ... KMDF does not support registering with WMI on a control WDFDEVICE. ... Please do not send e-mail directly to this alias. ... I have a problem with registering new wmi provider for my device driver: ...
    (microsoft.public.development.device.drivers)
  • Re: [RFC][PATCH] SPI subsystem
    ... Are you expecting the adapter ... > driver to handle the fact that its transfer routine could be called ... > a message or another CS line which is really a GPO pin used for register ... For example a char LCD with SPI interface ...
    (Linux-Kernel)
  • Re: Ataptec SCSI card problem
    ... I tried to install this card debian 4.0, ubuntu 7.10, Fedora Core 8, ... Slackware 12 and I have always the same message from scsi card. ... what it looks like to me, the problem is to be found in the driver, rather ... SCSI adapter family, which means that they can be used in two modes, i.e. ...
    (comp.os.linux.hardware)