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