Skip to contentSkip to conversation

What is the best way for multiple net_devices

DISCUSSION Jesse Pollard 1 participant 1 message Jun 28, 2001

lore
Share & tools
lore
#0 lore raw

--------- Received message begins Here ---------

Quoted 12 lines · Jeff Garzik
Quoted 9 lines
Quoted 6 lines · andrew may

Is there a standard way to make multiple copies of a network device?

For things like the bonding/ipip/ip_gre and others they seem to expect insmod -o copy1 module.o
insmod -o copy2 module.o

The network driver should provide the capability to add new devices.

Quoted 7 lines

I am planning to write or patch some drivers to do this as well as other things.

I would want to add things at run time after the module is alreaded loaded. So options to the module won't work.

I don't know how to use ifconfig to create a new device.

Ifconfig doesn't create the new device, when the driver module is loaded it looks for all devices on the bus and creates the table with those entries. To locat them, an "ifconfig -a" will do

Quoted 2 lines

Any examples of drivers and apps that do this cleanly. The ones I have seen are not.

The only one I've seen are SCSI ( I believe it was done with "echo 1 >/proc/.... ". If a new device is present (turned on) the new entry is appended.

Another one (similar) is the parport. Loading parport_probe rescans, and defines the new devices.

Another is a module version of IDE. unload/loading ide-probe rescans the IDE devices.

These ARE clumsy because you have to unload them to do a rescan, also I think the tables are contained inside the probe module. I don't think you can unload the probe module if one of the devices is busy (though the SCSI version might be closer to what you want, it is also the most complex).

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: [email protected]

Any opinions expressed are solely my own.