From: "Jan Beulich" Subject: [PATCH] linux-2.6.18/netfront: ethtool -i does not return info about xennet driver Date: Mon, 11 Oct 2010 09:54:57 +0100 Message-ID: <4CB2ED01020000780001C2A1@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartB79A44F1.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" Cc: Ky Srinivasan List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartB79A44F1.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: K. Y. Srinivasan Signed-off-by: Jan Beulich --- a/drivers/xen/netfront/netfront.c +++ b/drivers/xen/netfront/netfront.c @@ -1755,6 +1755,13 @@ static void xennet_set_features(struct n xennet_set_tso(dev, 1); } =20 +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 =3D netdev_priv(dev); @@ -1863,6 +1870,7 @@ static void netif_uninit(struct net_devi =20 static struct ethtool_ops network_ethtool_ops =3D { + .get_drvinfo =3D netfront_get_drvinfo, .get_tx_csum =3D ethtool_op_get_tx_csum, .set_tx_csum =3D ethtool_op_set_tx_csum, .get_sg =3D ethtool_op_get_sg, --=__PartB79A44F1.0__= Content-Type: text/plain; name="xen-netfront-ethtool.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xen-netfront-ethtool.patch" Subject: netfront: ethtool -i does not return info about xennet = driver=0A=0ASigned-off-by: K. Y. Srinivasan =0ASign= ed-off-by: Jan Beulich =0A=0A--- a/drivers/xen/netfron= t/netfront.c=0A+++ b/drivers/xen/netfront/netfront.c=0A@@ -1755,6 +1755,13 = @@ static void xennet_set_features(struct n=0A xennet_set_tso(dev,= 1);=0A }=0A =0A+static void netfront_get_drvinfo(struct net_device = *dev,=0A+ struct ethtool_drvinfo *info)=0A+{= =0A+ strcpy(info->driver, "netfront");=0A+ strcpy(info->bus_info, = dev_name(dev->dev.parent));=0A+}=0A+=0A static int network_connect(struct = net_device *dev)=0A {=0A struct netfront_info *np =3D netdev_priv(de= v);=0A@@ -1863,6 +1870,7 @@ static void netif_uninit(struct net_devi=0A = =0A static struct ethtool_ops network_ethtool_ops =3D=0A {=0A+ .get_drvinf= o =3D netfront_get_drvinfo,=0A .get_tx_csum =3D ethtool_op_get_tx_csum,=0A= .set_tx_csum =3D ethtool_op_set_tx_csum,=0A .get_sg =3D = ethtool_op_get_sg,=0A --=__PartB79A44F1.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartB79A44F1.0__=--