ia64/xen-unstable

changeset 10793:b066b4612286

[LINUX][NET] Add default ethtool get_link implementation to all
interfaces. Some management tools rely on this operation.

From: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Jul 25 16:11:12 2006 +0100 (2006-07-25)
parents 49f874c0bd98
children 79f4c91c5628
files linux-2.6-xen-sparse/drivers/xen/netback/interface.c linux-2.6-xen-sparse/drivers/xen/netback/loopback.c linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/interface.c	Tue Jul 25 16:03:12 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/interface.c	Tue Jul 25 16:11:12 2006 +0100
     1.3 @@ -76,6 +76,7 @@ static struct ethtool_ops network_ethtoo
     1.4  {
     1.5  	.get_tx_csum = ethtool_op_get_tx_csum,
     1.6  	.set_tx_csum = ethtool_op_set_tx_csum,
     1.7 +	.get_link = ethtool_op_get_link,
     1.8  };
     1.9  
    1.10  netif_t *netif_alloc(domid_t domid, unsigned int handle, u8 be_mac[ETH_ALEN])
     2.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c	Tue Jul 25 16:03:12 2006 +0100
     2.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c	Tue Jul 25 16:11:12 2006 +0100
     2.3 @@ -129,6 +129,7 @@ static struct ethtool_ops network_ethtoo
     2.4  	.set_sg = ethtool_op_set_sg,
     2.5  	.get_tso = ethtool_op_get_tso,
     2.6  	.set_tso = ethtool_op_set_tso,
     2.7 +	.get_link = ethtool_op_get_link,
     2.8  };
     2.9  
    2.10  /*
     3.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Tue Jul 25 16:03:12 2006 +0100
     3.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Tue Jul 25 16:11:12 2006 +0100
     3.3 @@ -1201,6 +1201,7 @@ static struct ethtool_ops network_ethtoo
     3.4  	.set_sg = xennet_set_sg,
     3.5  	.get_tso = ethtool_op_get_tso,
     3.6  	.set_tso = xennet_set_tso,
     3.7 +	.get_link = ethtool_op_get_link,
     3.8  };
     3.9  
    3.10  #ifdef CONFIG_SYSFS