What is the best way for multiple net_devices
A message that is not in the archive (sent off-list or not yet received): [email protected]
In article <[email protected]>,
Quoted 8 lines · Jeff Garzik
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
Quoted 6 lines
The network driver should provide the capability to add new devices.
Most drivers currently have the capability to do N devices, where N is some constant set at compile time. Typically you use ifconfig, a special-purpose userland program, or sometimes even sysctls to configure additional net devices.
Ioctls require modifications to other parts of the kernel and a supporting user land program.
Passing the number to create via insmod seems to be a reasonable compromise.
Quoted 3 lines
It's certainly possible to modify the driver to create additional network interfaces on the fly, but a lot of drivers are not coded to do that at present.
Signature · 4 lines
__O Lineo - For Embedded Linux Solutions _-\<,_ PGP Fingerprint: 28 E2 A0 15 99 62 9A 00 (_)/ (_) 88 EC A3 EE 2D 1C 15 68 Stuart Lynne <[email protected]> www.fireplug.net 604-461-7532