| summaryrefslogtreecommitdiff |
| author | Jan Beulich <jbeulich@novell.com> | 2010-03-29 09:58:05 (GMT) |
|---|---|---|
| committer | Jan Beulich <jbeulich@novell.com> | 2010-03-29 09:58:05 (GMT) |
| commit | eccba04939bfb8ba2dd5ff70d824290f3c484b85 (patch) (side-by-side diff) | |
| tree | bc49d767195ae54d5f1506adfc2ff10f6a49acd3 | |
| parent | e0aa9633d6681a4afb0b04bd26cd1ca1ca11a527 (diff) | |
- patches.xen/xen-netfront-ethtool: netfront: ethtool -i doesrpm-2.6.32.10-0.4
not return info about xennet driver (bnc#591179).
suse-commit: fbf9c5540ab10cc046172a8dc89d207c2ae4db10
| -rw-r--r-- | drivers/xen/netfront/netfront.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/xen/netfront/netfront.c b/drivers/xen/netfront/netfront.c index b4d9e0c..131bfb4 100644 --- a/drivers/xen/netfront/netfront.c +++ b/drivers/xen/netfront/netfront.c @@ -1766,6 +1766,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); @@ -1874,6 +1881,7 @@ static void netif_uninit(struct net_device *dev) static const 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, |