diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-04-07 03:32:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-07 23:19:01 -0400 |
commit | 782d640afd15af7a1faf01cfe566ca4ac511319d (patch) | |
tree | fdf50de5e124d1ee61c7dd20a6fef1c585e53b0e /drivers/net/atl1e | |
parent | dc668910f4eaa233c241d43d96ed6b0b9258cc43 (diff) |
net: atl*: convert to hw_features
Things left as they were:
- atl1: is RX checksum really enabled?
- atl2: copy-paste from atl1, with-errors-on-modify I presume
- atl1c: there's a bug: MTU can't be changed if device is not up
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1e')
-rw-r--r-- | drivers/net/atl1e/atl1e_ethtool.c | 3 | ||||
-rw-r--r-- | drivers/net/atl1e/atl1e_main.c | 12 |
2 files changed, 4 insertions, 11 deletions
diff --git a/drivers/net/atl1e/atl1e_ethtool.c b/drivers/net/atl1e/atl1e_ethtool.c index 1209297433b8..47783749d9fa 100644 --- a/drivers/net/atl1e/atl1e_ethtool.c +++ b/drivers/net/atl1e/atl1e_ethtool.c | |||
@@ -382,9 +382,6 @@ static const struct ethtool_ops atl1e_ethtool_ops = { | |||
382 | .get_eeprom_len = atl1e_get_eeprom_len, | 382 | .get_eeprom_len = atl1e_get_eeprom_len, |
383 | .get_eeprom = atl1e_get_eeprom, | 383 | .get_eeprom = atl1e_get_eeprom, |
384 | .set_eeprom = atl1e_set_eeprom, | 384 | .set_eeprom = atl1e_set_eeprom, |
385 | .set_tx_csum = ethtool_op_set_tx_hw_csum, | ||
386 | .set_sg = ethtool_op_set_sg, | ||
387 | .set_tso = ethtool_op_set_tso, | ||
388 | }; | 385 | }; |
389 | 386 | ||
390 | void atl1e_set_ethtool_ops(struct net_device *netdev) | 387 | void atl1e_set_ethtool_ops(struct net_device *netdev) |
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c index 1ff001a8270c..c05b2e7c93d0 100644 --- a/drivers/net/atl1e/atl1e_main.c +++ b/drivers/net/atl1e/atl1e_main.c | |||
@@ -1927,11 +1927,7 @@ void atl1e_down(struct atl1e_adapter *adapter) | |||
1927 | * reschedule our watchdog timer */ | 1927 | * reschedule our watchdog timer */ |
1928 | set_bit(__AT_DOWN, &adapter->flags); | 1928 | set_bit(__AT_DOWN, &adapter->flags); |
1929 | 1929 | ||
1930 | #ifdef NETIF_F_LLTX | ||
1931 | netif_stop_queue(netdev); | 1930 | netif_stop_queue(netdev); |
1932 | #else | ||
1933 | netif_tx_disable(netdev); | ||
1934 | #endif | ||
1935 | 1931 | ||
1936 | /* reset MAC to disable all RX/TX */ | 1932 | /* reset MAC to disable all RX/TX */ |
1937 | atl1e_reset_hw(&adapter->hw); | 1933 | atl1e_reset_hw(&adapter->hw); |
@@ -2223,10 +2219,10 @@ static int atl1e_init_netdev(struct net_device *netdev, struct pci_dev *pdev) | |||
2223 | netdev->watchdog_timeo = AT_TX_WATCHDOG; | 2219 | netdev->watchdog_timeo = AT_TX_WATCHDOG; |
2224 | atl1e_set_ethtool_ops(netdev); | 2220 | atl1e_set_ethtool_ops(netdev); |
2225 | 2221 | ||
2226 | netdev->features = NETIF_F_SG | NETIF_F_HW_CSUM | | 2222 | netdev->hw_features = NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_TSO | |
2227 | NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; | 2223 | NETIF_F_HW_VLAN_TX; |
2228 | netdev->features |= NETIF_F_LLTX; | 2224 | netdev->features = netdev->hw_features | |
2229 | netdev->features |= NETIF_F_TSO; | 2225 | NETIF_F_HW_VLAN_RX | NETIF_F_LLTX; |
2230 | 2226 | ||
2231 | return 0; | 2227 | return 0; |
2232 | } | 2228 | } |