|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] xen/netfront: ethtool -i does not ret
# 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 <=
|
|
|
|
|