[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/2] xen: netfront: support the ethtool drvinfo hook.
Causes "ethtool -i" to report something useful: # ethtool -i eth0 driver: xen-netfront version: firmware-version: bus-info: vif-0 Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx> --- drivers/net/xen-netfront.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 788a9bc..4484929 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -1630,8 +1630,17 @@ static void netback_changed(struct xenbus_device *dev, } } +static void xennet_get_drvinfo(struct net_device *dev, + struct ethtool_drvinfo *info) +{ + strcpy(info->driver, "xen-netfront"); + strcpy(info->bus_info, dev_name(dev->dev.parent)); +} + static const struct ethtool_ops xennet_ethtool_ops = { + .get_drvinfo = xennet_get_drvinfo, + .set_tx_csum = ethtool_op_set_tx_csum, .set_sg = xennet_set_sg, .set_tso = xennet_set_tso, -- 1.5.6.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |