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] [linux-2.6.18-xen] netback: make queue length parameter

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] netback: make queue length parameter writeable in sysfs
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 06 Feb 2009 07:30:04 -0800
Delivery-date: Fri, 06 Feb 2009 07:29:49 -0800
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1233921716 0
# Node ID 3aa9b8a7876b7f2ed7ad9663edb460e4710c22da
# Parent  db9857bb03203fd02405fa446b9a63cd268be2b6
netback: make queue length parameter writeable in sysfs

Any changes will only take effect for newly created VIFs.

Also hook up the vif devices to their parent and publish bus info via
ethtool.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 drivers/xen/netback/interface.c |    3 ++-
 drivers/xen/netback/xenbus.c    |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff -r db9857bb0320 -r 3aa9b8a7876b drivers/xen/netback/interface.c
--- a/drivers/xen/netback/interface.c   Thu Feb 05 15:24:46 2009 +0000
+++ b/drivers/xen/netback/interface.c   Fri Feb 06 12:01:56 2009 +0000
@@ -49,7 +49,7 @@
  * blocked.
  */
 static unsigned long netbk_queue_length = 32;
-module_param_named(queue_length, netbk_queue_length, ulong, 0);
+module_param_named(queue_length, netbk_queue_length, ulong, 0644);
 
 static void __netif_up(netif_t *netif)
 {
@@ -120,6 +120,7 @@ static void netbk_get_drvinfo(struct net
                              struct ethtool_drvinfo *info)
 {
        strcpy(info->driver, "netbk");
+       strcpy(info->bus_info, dev->class_dev.dev->bus_id);
 }
 
 static const struct netif_stat {
diff -r db9857bb0320 -r 3aa9b8a7876b drivers/xen/netback/xenbus.c
--- a/drivers/xen/netback/xenbus.c      Thu Feb 05 15:24:46 2009 +0000
+++ b/drivers/xen/netback/xenbus.c      Fri Feb 06 12:01:56 2009 +0000
@@ -202,6 +202,7 @@ static void backend_create_netif(struct 
                xenbus_dev_fatal(dev, err, "creating interface");
                return;
        }
+       SET_NETDEV_DEV(be->netif->dev, &dev->dev);
 
        kobject_uevent(&dev->dev.kobj, KOBJ_ONLINE);
 }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] netback: make queue length parameter writeable in sysfs, Xen patchbot-linux-2.6.18-xen <=