|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.0.3-testing] [NET] back: Create 0 loopbacks by de
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1159446058 -3600
# Node ID 8cffe84d8f51f74b64212c09cfaad1b73679ec55
# Parent 3dea280880e2244c3628b9bcfb75e40825b49de7
[NET] back: Create 0 loopbacks by default for non-domain-0.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
linux-2.6-xen-sparse/drivers/xen/netback/loopback.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff -r 3dea280880e2 -r 8cffe84d8f51
linux-2.6-xen-sparse/drivers/xen/netback/loopback.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c Thu Sep 28
12:46:09 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c Thu Sep 28
13:20:58 2006 +0100
@@ -53,8 +53,9 @@
#include <linux/skbuff.h>
#include <linux/ethtool.h>
#include <net/dst.h>
-
-static int nloopbacks = 8;
+#include <asm/hypervisor.h> /* is_initial_xendomain() */
+
+static int nloopbacks = -1;
module_param(nloopbacks, int, 0);
MODULE_PARM_DESC(nloopbacks, "Number of netback-loopback devices to create");
@@ -239,6 +240,9 @@ static int __init loopback_init(void)
{
int i, err = 0;
+ if (nloopbacks == -1)
+ nloopbacks = is_initial_xendomain() ? 8 : 0;
+
for (i = 0; i < nloopbacks; i++)
if ((err = make_loopback(i)) != 0)
break;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-3.0.3-testing] [NET] back: Create 0 loopbacks by default for non-domain-0.,
Xen patchbot-3.0.3-testing <=
|
|
|
|
|