From 9c4ce1cbe4c067c01c1a9d0f90fb0c2d4e9c99e6 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 11 Oct 2010 10:25:55 +0100 Subject: [PATCH] xen/netfront: ethtool -i does not return info about xennet driver Signed-off-by: K. Y. Srinivasan Signed-off-by: Jan Beulich --- drivers/xen/netfront/netfront.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/xen/netfront/netfront.c b/drivers/xen/netfront/netfront.c index 96e8ff97..e3a14b6e 100644 --- a/drivers/xen/netfront/netfront.c +++ b/drivers/xen/netfront/netfront.c @@ -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, -- 2.39.5