]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
netback: make queue length parameter writeable in sysfs
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Feb 2009 12:01:56 +0000 (12:01 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Feb 2009 12:01:56 +0000 (12:01 +0000)
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@citrix.com>
drivers/xen/netback/interface.c
drivers/xen/netback/xenbus.c

index 47ab3488fdda381563ddd37eafb213547fd57dad..e039dc19d7b2c4efa16cb4c5fae7132469f1bf0e 100644 (file)
@@ -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_device *dev,
                              struct ethtool_drvinfo *info)
 {
        strcpy(info->driver, "netbk");
+       strcpy(info->bus_info, dev->class_dev.dev->bus_id);
 }
 
 static const struct netif_stat {
index d7faeb624d1d2718f7d410fd7027c17029f08e63..d83d4251b6eef40729217a09e7e63d92193cbb7b 100644 (file)
@@ -202,6 +202,7 @@ static void backend_create_netif(struct backend_info *be)
                xenbus_dev_fatal(dev, err, "creating interface");
                return;
        }
+       SET_NETDEV_DEV(be->netif->dev, &dev->dev);
 
        kobject_uevent(&dev->dev.kobj, KOBJ_ONLINE);
 }