netback: make queue length parameter writeable in sysfs
PATCH 1/1 netback: make queue length parameter writeable in sysfs
# HG changeset patch
# User Ian Campbell <[email protected]> # 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 <[email protected]>
drivers/xen/netback/interface.c +2 -1
@@ -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 {
drivers/xen/netback/xenbus.c +1 -0
@@ -202,6 +202,7 @@ static void backend_create_netif(structxenbus_dev_fatal (dev, err,"creating interface" );return ; } +SET_NETDEV_DEV (be->netif->dev, &dev->dev);kobject_uevent (&dev->dev.kobj,KOBJ_ONLINE ); }