WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Increase the static constant default number of loopback

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Increase the static constant default number of loopback interfaces, nloopbacks,
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Nov 2005 16:54:07 +0000
Delivery-date: Tue, 08 Nov 2005 16:54:20 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 37ad91483bd3dc65475bbe35c15f7c547c3cacea
# Parent  7cbcdccd659dee6283163f8dba34a881dd8729b8
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@xxxxxxxxxxxxx>

diff -r 7cbcdccd659d -r 37ad91483bd3 
linux-2.6-xen-sparse/drivers/xen/netback/loopback.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c       Tue Nov  8 
13:56:14 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c       Tue Nov  8 
14:15:02 2005
@@ -29,7 +29,7 @@
 #include <linux/skbuff.h>
 #include <net/dst.h>
 
-static int nloopbacks = 1;
+static int nloopbacks = 8;
 module_param(nloopbacks, int, 0);
 MODULE_PARM_DESC(nloopbacks, "Number of netback-loopback devices to create");
 
diff -r 7cbcdccd659d -r 37ad91483bd3 tools/examples/network-bridge
--- a/tools/examples/network-bridge     Tue Nov  8 13:56:14 2005
+++ b/tools/examples/network-bridge     Tue Nov  8 14:15:02 2005
@@ -200,7 +200,9 @@
 Link $vdev is missing.
 This may be because you have reached the limit of the number of interfaces
 that the loopback driver supports.  If the loopback driver is a module, you
-may raise this limit by passing it as a parameter (nloopbacks=<N>).
+may raise this limit by passing it as a parameter (nloopbacks=<N>); if the
+driver is compiled statically into the kernel, then you may set the parameter
+using loopback.nloopbacks=<N> on the domain 0 kernel command line.
 " >&2
         exit 1
     fi

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Increase the static constant default number of loopback interfaces, nloopbacks,, Xen patchbot -unstable <=