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-devel

[Xen-devel] [PATCH] netback: make queue length parameter writeable in sy

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] netback: make queue length parameter writeable in sysfs
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Date: Fri, 06 Feb 2009 10:03:20 +0100
Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
Delivery-date: Fri, 06 Feb 2009 02:03:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1233914508 0
# Node ID 1ba1f6f64cfbb623cc9fd5d86320bf9dfe279136
# Parent  7a24febd95d5abfc03e05de7fa991b11cef14eef
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>

diff -r 7a24febd95d5 -r 1ba1f6f64cfb drivers/xen/netback/interface.c
--- a/drivers/xen/netback/interface.c   Thu Feb 05 15:11:35 2009 +0000
+++ b/drivers/xen/netback/interface.c   Fri Feb 06 10:01:48 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 7a24febd95d5 -r 1ba1f6f64cfb drivers/xen/netback/xenbus.c
--- a/drivers/xen/netback/xenbus.c      Thu Feb 05 15:11:35 2009 +0000
+++ b/drivers/xen/netback/xenbus.c      Fri Feb 06 10:01:48 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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] netback: make queue length parameter writeable in sysfs, Ian Campbell <=