WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] xen/netfront: ethtool -i does not ret

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] xen/netfront: ethtool -i does not return info about xennet driver
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Oct 2010 02:35:04 -0700
Delivery-date: Mon, 11 Oct 2010 02:35:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1286789155 -3600
# Node ID 578f036ec7dd46f2182849dce3757c709bc9883d
# Parent  5dd203fba38095fde17610623542af7c2b0ee326
xen/netfront: ethtool -i does not return info about xennet driver

Signed-off-by: K. Y. Srinivasan <ksrinivasan@xxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/xen/netfront/netfront.c |    8 ++++++++
 1 files changed, 8 insertions(+)

diff -r 5dd203fba380 -r 578f036ec7dd drivers/xen/netfront/netfront.c
--- a/drivers/xen/netfront/netfront.c   Mon Oct 04 13:31:00 2010 +0100
+++ b/drivers/xen/netfront/netfront.c   Mon Oct 11 10:25:55 2010 +0100
@@ -1772,6 +1772,13 @@ static void xennet_set_features(struct n
                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_devi
 
 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,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] xen/netfront: ethtool -i does not return info about xennet driver, Xen patchbot-linux-2.6.18-xen <=