]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
xen/netfront: ethtool -i does not return info about xennet driver
authorKeir Fraser <keir@xen.org>
Mon, 11 Oct 2010 09:25:55 +0000 (10:25 +0100)
committerKeir Fraser <keir@xen.org>
Mon, 11 Oct 2010 09:25:55 +0000 (10:25 +0100)
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/netfront/netfront.c

index 96e8ff97e8a37954d8fe7c2097359f5f57e04e4a..e3a14b6e2925022ece9e2d61b2c813cd4e0b5f0d 100644 (file)
@@ -1772,6 +1772,13 @@ static void xennet_set_features(struct net_device *dev)
                xennet_set_tso(dev, 1);
 }
 
+static void netfront_get_drvinfo(struct net_device *dev,
+                                struct ethtool_drvinfo *info)
+{
+       strcpy(info->driver, "netfront");
+       strcpy(info->bus_info, dev_name(dev->dev.parent));
+}
+
 static int network_connect(struct net_device *dev)
 {
        struct netfront_info *np = netdev_priv(dev);
@@ -1880,6 +1887,7 @@ static void netif_uninit(struct net_device *dev)
 
 static struct ethtool_ops network_ethtool_ops =
 {
+       .get_drvinfo = netfront_get_drvinfo,
        .get_tx_csum = ethtool_op_get_tx_csum,
        .set_tx_csum = ethtool_op_set_tx_csum,
        .get_sg = ethtool_op_get_sg,