direct-io.hg

changeset 7698:37ad91483bd3

Increase the static constant default number of loopback interfaces, nloopbacks,
to 8. These interfaces are very cheap, so there's no problem having a few
spare. Anyone with more than 8 NICs can still use the kernel command line or
the module parameter line to pass a larger limit to this module.

Detail the kernel command line parameter for nloopbacks in the diagnostic in
network-bridge.

Closes bug #381.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Tue Nov 08 15:15:02 2005 +0100 (2005-11-08)
parents 7cbcdccd659d
children 0915074c356e
files linux-2.6-xen-sparse/drivers/xen/netback/loopback.c tools/examples/network-bridge
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c	Tue Nov 08 14:56:14 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c	Tue Nov 08 15:15:02 2005 +0100
     1.3 @@ -29,7 +29,7 @@
     1.4  #include <linux/skbuff.h>
     1.5  #include <net/dst.h>
     1.6  
     1.7 -static int nloopbacks = 1;
     1.8 +static int nloopbacks = 8;
     1.9  module_param(nloopbacks, int, 0);
    1.10  MODULE_PARM_DESC(nloopbacks, "Number of netback-loopback devices to create");
    1.11  
     2.1 --- a/tools/examples/network-bridge	Tue Nov 08 14:56:14 2005 +0100
     2.2 +++ b/tools/examples/network-bridge	Tue Nov 08 15:15:02 2005 +0100
     2.3 @@ -200,7 +200,9 @@ op_start () {
     2.4  Link $vdev is missing.
     2.5  This may be because you have reached the limit of the number of interfaces
     2.6  that the loopback driver supports.  If the loopback driver is a module, you
     2.7 -may raise this limit by passing it as a parameter (nloopbacks=<N>).
     2.8 +may raise this limit by passing it as a parameter (nloopbacks=<N>); if the
     2.9 +driver is compiled statically into the kernel, then you may set the parameter
    2.10 +using loopback.nloopbacks=<N> on the domain 0 kernel command line.
    2.11  " >&2
    2.12          exit 1
    2.13      fi