ia64/linux-2.6.18-xen.hg

changeset 793:3aa9b8a7876b

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@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Feb 06 12:01:56 2009 +0000 (2009-02-06)
parents db9857bb0320
children be85b1d7a52b
files drivers/xen/netback/interface.c drivers/xen/netback/xenbus.c
line diff
     1.1 --- a/drivers/xen/netback/interface.c	Thu Feb 05 15:24:46 2009 +0000
     1.2 +++ b/drivers/xen/netback/interface.c	Fri Feb 06 12:01:56 2009 +0000
     1.3 @@ -49,7 +49,7 @@
     1.4   * blocked.
     1.5   */
     1.6  static unsigned long netbk_queue_length = 32;
     1.7 -module_param_named(queue_length, netbk_queue_length, ulong, 0);
     1.8 +module_param_named(queue_length, netbk_queue_length, ulong, 0644);
     1.9  
    1.10  static void __netif_up(netif_t *netif)
    1.11  {
    1.12 @@ -120,6 +120,7 @@ static void netbk_get_drvinfo(struct net
    1.13  			      struct ethtool_drvinfo *info)
    1.14  {
    1.15  	strcpy(info->driver, "netbk");
    1.16 +	strcpy(info->bus_info, dev->class_dev.dev->bus_id);
    1.17  }
    1.18  
    1.19  static const struct netif_stat {
     2.1 --- a/drivers/xen/netback/xenbus.c	Thu Feb 05 15:24:46 2009 +0000
     2.2 +++ b/drivers/xen/netback/xenbus.c	Fri Feb 06 12:01:56 2009 +0000
     2.3 @@ -202,6 +202,7 @@ static void backend_create_netif(struct 
     2.4  		xenbus_dev_fatal(dev, err, "creating interface");
     2.5  		return;
     2.6  	}
     2.7 +	SET_NETDEV_DEV(be->netif->dev, &dev->dev);
     2.8  
     2.9  	kobject_uevent(&dev->dev.kobj, KOBJ_ONLINE);
    2.10  }