[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] netback: make queue length parameter writeable in sysfs
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |