Messages in this thread | | | Date | Tue, 9 Mar 2004 15:18:29 -0800 | From | "Randy.Dunlap" <> | Subject | Re: Dummy network device |
| |
On Tue, 09 Mar 2004 15:11:48 -0800 Rick Knight wrote:
| > Hello, | > | > After I upgraded to 2.6.3 from 2.4.20 I discovered that I can only get | > 1 dummy device. I need to be able to load 3 dummy network devices. | > Scouring the kernel archives, it looks like this can be accomplished | > through MODULE_PARAMS, but I can find no information on the | > module_params are or how to use them. I have dummy built as a module | > and it does load at startup as dummy0. How do I get dummy1 and dummy2? | > | > In answering this message, please CC me. | > | > Thanks for your help, | > Rick Knight | > (rick@rlknight.com) | | | Never mind, | | I found the answer. From the archive. Decided to look at dummy.c and | numdummies=1, changed it to numdummies=3 and rebuilt that module. Works | like a charm. | | Question/Suggestion, couldn't this be made an option at configuration? | Kind of like number_of_ptys=256.
It's supposed to be changeable at module load time, without rebuilding it. Try this e.g.:
modprobe dummy numdummies=4
-- ~Randy - 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/
| |