Skip to contentSkip to conversation

Dummy network device

DISCUSSION Rick Knight 3 participants 4 messages Mar 9, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines

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
([email protected])

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.

Please CC me with any response.

Thanks,
Rick Knight
([email protected])

#1 lore raw

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
| > ([email protected])
| 
| 
| 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

#2 lore raw
In reply to Rick Knight
Quoted 6 lines · On Tue, 09 Mar 2004 15:11:48 -0800 Rick Knight <[email protected]> wrote:

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.

Specify "numdummies=3" on the module load command line.

#3 lore raw
Quoted 14 lines · David S. Miller
Quoted 5 lines · On Tue, 09 Mar 2004 15:11:48 -0800 Rick Knight <[email protected]> wrote:

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.

Specify "numdummies=3" on the module load command line.

Quoted 9 lines

It's supposed to be changeable at module load time, without rebuilding it. Try this e.g.:

modprobe dummy numdummies=4

--
~Randy

Randy, David,

Thanks for the replies.

I did try 'modprobe dummy numdummies=3', however, I didn't quote numdummies=3. Are the quote required? Is there a modprobe.conf option? Probably "options dummy "numdummies=3".

Thanks,
Rick Knight
([email protected])