All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rick Knight <rick@rlknight.com>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: Dummy network device
Date: Wed, 10 Mar 2004 08:53:25 -0800	[thread overview]
Message-ID: <404F4805.4060108@rlknight.com> (raw)
In-Reply-To: <20040309212221.766479dc.rddunlap@osdl.org>

Randy.Dunlap wrote:

>| From: Rick Knight
>| 
>| David S. Miller wrote:
>| 
>| >On Tue, 09 Mar 2004 15:11:48 -0800
>| >Rick Knight <rick@rlknight.com> 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.
>| >  
>| >
>| >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".
>
>No, the quotes are not required.  This works for me:
>modprobe dummy numdummies=3
>
>Using /etc/modprobe.conf also works, as you suggested, but without
>the quotation marks:
>options dummy numdummies=3
>
>Either way shows this in /proc/net/dev:
>
>dummy0:       0       0    0    0    0     0          0         0        0
> 0    0    0    0     0       0          0
>dummy1:       0       0    0    0    0     0          0         0        0
> 0    0    0    0     0       0          0
>dummy2:       0       0    0    0    0     0          0         0        0
> 0    0    0    0     0       0          0
>
>
>HTH.
>--
>~Randy
>  
>
Randy,

I did try 'modprobe dummy numdummies=3' and I didn't work. I got an 
error and the following showed up in /var/log/messages...

Mar  9 14:42:33 l43w2k021 modprobe: FATAL: Error inserting dummy 
(/lib/modules/2.6.3/kernel/drivers/net/dummy.ko): Unknown symbol in 
module, or unknown parameter (see dmesg)

Now it works and I get no error message. I tried numdummies= on another 
similarly configured machine and it worked first time. So maybe the 
error message above was caused by a typo when I tried it the first time

Anyway, numdummies= does work as you said.

Thanks,
Rick Knight
(rick@rlknight.com)


  reply	other threads:[~2004-03-10 16:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040309162552.0d7f1ca0.rddunlap@osdl.org>
2004-03-10  5:22 ` Dummy network device Randy.Dunlap
2004-03-10 16:53   ` Rick Knight [this message]
2004-03-09 23:11 Rick Knight
2004-03-09 23:18 ` Randy.Dunlap
2004-03-09 23:21 ` David S. Miller
2004-03-09 23:37   ` Rick Knight
  -- strict thread matches above, loose matches on Subject: below --
2004-03-09 22:02 Richard W. Knight

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=404F4805.4060108@rlknight.com \
    --to=rick@rlknight.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rddunlap@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.