diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/spider_net_ethtool.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/spider_net_ethtool.c')
-rw-r--r-- | drivers/net/spider_net_ethtool.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/drivers/net/spider_net_ethtool.c b/drivers/net/spider_net_ethtool.c index 5bae728c3820..9c288cd7d171 100644 --- a/drivers/net/spider_net_ethtool.c +++ b/drivers/net/spider_net_ethtool.c | |||
@@ -58,7 +58,7 @@ spider_net_ethtool_get_settings(struct net_device *netdev, | |||
58 | cmd->advertising = (ADVERTISED_1000baseT_Full | | 58 | cmd->advertising = (ADVERTISED_1000baseT_Full | |
59 | ADVERTISED_FIBRE); | 59 | ADVERTISED_FIBRE); |
60 | cmd->port = PORT_FIBRE; | 60 | cmd->port = PORT_FIBRE; |
61 | cmd->speed = card->phy.speed; | 61 | ethtool_cmd_speed_set(cmd, card->phy.speed); |
62 | cmd->duplex = DUPLEX_FULL; | 62 | cmd->duplex = DUPLEX_FULL; |
63 | 63 | ||
64 | return 0; | 64 | return 0; |
@@ -115,24 +115,6 @@ spider_net_ethtool_nway_reset(struct net_device *netdev) | |||
115 | return 0; | 115 | return 0; |
116 | } | 116 | } |
117 | 117 | ||
118 | static u32 | ||
119 | spider_net_ethtool_get_rx_csum(struct net_device *netdev) | ||
120 | { | ||
121 | struct spider_net_card *card = netdev_priv(netdev); | ||
122 | |||
123 | return card->options.rx_csum; | ||
124 | } | ||
125 | |||
126 | static int | ||
127 | spider_net_ethtool_set_rx_csum(struct net_device *netdev, u32 n) | ||
128 | { | ||
129 | struct spider_net_card *card = netdev_priv(netdev); | ||
130 | |||
131 | card->options.rx_csum = n; | ||
132 | return 0; | ||
133 | } | ||
134 | |||
135 | |||
136 | static void | 118 | static void |
137 | spider_net_ethtool_get_ringparam(struct net_device *netdev, | 119 | spider_net_ethtool_get_ringparam(struct net_device *netdev, |
138 | struct ethtool_ringparam *ering) | 120 | struct ethtool_ringparam *ering) |
@@ -189,9 +171,6 @@ const struct ethtool_ops spider_net_ethtool_ops = { | |||
189 | .set_msglevel = spider_net_ethtool_set_msglevel, | 171 | .set_msglevel = spider_net_ethtool_set_msglevel, |
190 | .get_link = ethtool_op_get_link, | 172 | .get_link = ethtool_op_get_link, |
191 | .nway_reset = spider_net_ethtool_nway_reset, | 173 | .nway_reset = spider_net_ethtool_nway_reset, |
192 | .get_rx_csum = spider_net_ethtool_get_rx_csum, | ||
193 | .set_rx_csum = spider_net_ethtool_set_rx_csum, | ||
194 | .set_tx_csum = ethtool_op_set_tx_csum, | ||
195 | .get_ringparam = spider_net_ethtool_get_ringparam, | 174 | .get_ringparam = spider_net_ethtool_get_ringparam, |
196 | .get_strings = spider_net_get_strings, | 175 | .get_strings = spider_net_get_strings, |
197 | .get_sset_count = spider_net_get_sset_count, | 176 | .get_sset_count = spider_net_get_sset_count, |