aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/spider_net_ethtool.c
diff options
context:
space:
mode:
authorJens Osterkamp <Jens.Osterkamp@de.ibm.com>2005-09-06 22:30:55 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-06 22:35:30 -0400
commit054034dbf5b1a6aef800af4eb22d421d1c7d4b6d (patch)
tree091ca7020ba565d590e0d714894ad4cf8261c4c7 /drivers/net/spider_net_ethtool.c
parent543cec517dbc07c7c801ccacd02141d99f09f756 (diff)
[PATCH] net: fix bonding with spider_net
Another small update for the spidernet driver to fix a bug encountered during testing our latest hardware with dual-ethernet support. Signed-off-by: Arnd Bergmann <arndb@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/spider_net_ethtool.c')
-rw-r--r--drivers/net/spider_net_ethtool.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/spider_net_ethtool.c b/drivers/net/spider_net_ethtool.c
index 9447c2ccd70a..d42e60ba74ce 100644
--- a/drivers/net/spider_net_ethtool.c
+++ b/drivers/net/spider_net_ethtool.c
@@ -27,6 +27,24 @@
27 27
28#include "spider_net.h" 28#include "spider_net.h"
29 29
30static int
31spider_net_ethtool_get_settings(struct net_device *netdev,
32 struct ethtool_cmd *cmd)
33{
34 struct spider_net_card *card;
35 card = netdev_priv(netdev);
36
37 cmd->supported = (SUPPORTED_1000baseT_Full |
38 SUPPORTED_FIBRE);
39 cmd->advertising = (ADVERTISED_1000baseT_Full |
40 ADVERTISED_FIBRE);
41 cmd->port = PORT_FIBRE;
42 cmd->speed = card->phy.speed;
43 cmd->duplex = DUPLEX_FULL;
44
45 return 0;
46}
47
30static void 48static void
31spider_net_ethtool_get_drvinfo(struct net_device *netdev, 49spider_net_ethtool_get_drvinfo(struct net_device *netdev,
32 struct ethtool_drvinfo *drvinfo) 50 struct ethtool_drvinfo *drvinfo)
@@ -96,6 +114,7 @@ spider_net_ethtool_set_rx_csum(struct net_device *netdev, u32 n)
96} 114}
97 115
98struct ethtool_ops spider_net_ethtool_ops = { 116struct ethtool_ops spider_net_ethtool_ops = {
117 .get_settings = spider_net_ethtool_get_settings,
99 .get_drvinfo = spider_net_ethtool_get_drvinfo, 118 .get_drvinfo = spider_net_ethtool_get_drvinfo,
100 .get_wol = spider_net_ethtool_get_wol, 119 .get_wol = spider_net_ethtool_get_wol,
101 .get_msglevel = spider_net_ethtool_get_msglevel, 120 .get_msglevel = spider_net_ethtool_get_msglevel,