diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2006-12-12 08:06:23 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-05 16:58:45 -0500 |
commit | 1d39ed565cfcc7c4fe586de621aef495c4f94ffb (patch) | |
tree | af3280a25eb796385c851dc7b83e82f0ff38f1ac /drivers/net/ixgb | |
parent | 6d24998f07588ca83ce04e60af5a79e805df7532 (diff) |
remove NETIF_F_TSO ifdefery
Remove the NETIF_F_TSO #ifdef-ery in drivers/net; this was
for old-old-2.4 compat (even current 2.4 has NETIF_F_TSO)
but it's time to get rid of it by now.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgb')
-rw-r--r-- | drivers/net/ixgb/ixgb.h | 2 | ||||
-rw-r--r-- | drivers/net/ixgb/ixgb_ethtool.c | 6 | ||||
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 4 |
3 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/ixgb/ixgb.h b/drivers/net/ixgb/ixgb.h index f4aba4355b19..cf30a1059ce0 100644 --- a/drivers/net/ixgb/ixgb.h +++ b/drivers/net/ixgb/ixgb.h | |||
@@ -61,9 +61,7 @@ | |||
61 | #include <net/pkt_sched.h> | 61 | #include <net/pkt_sched.h> |
62 | #include <linux/list.h> | 62 | #include <linux/list.h> |
63 | #include <linux/reboot.h> | 63 | #include <linux/reboot.h> |
64 | #ifdef NETIF_F_TSO | ||
65 | #include <net/checksum.h> | 64 | #include <net/checksum.h> |
66 | #endif | ||
67 | 65 | ||
68 | #include <linux/ethtool.h> | 66 | #include <linux/ethtool.h> |
69 | #include <linux/if_vlan.h> | 67 | #include <linux/if_vlan.h> |
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c index 82c044d6e08a..d6628bd9590a 100644 --- a/drivers/net/ixgb/ixgb_ethtool.c +++ b/drivers/net/ixgb/ixgb_ethtool.c | |||
@@ -82,10 +82,8 @@ static struct ixgb_stats ixgb_gstrings_stats[] = { | |||
82 | {"tx_restart_queue", IXGB_STAT(restart_queue) }, | 82 | {"tx_restart_queue", IXGB_STAT(restart_queue) }, |
83 | {"rx_long_length_errors", IXGB_STAT(stats.roc)}, | 83 | {"rx_long_length_errors", IXGB_STAT(stats.roc)}, |
84 | {"rx_short_length_errors", IXGB_STAT(stats.ruc)}, | 84 | {"rx_short_length_errors", IXGB_STAT(stats.ruc)}, |
85 | #ifdef NETIF_F_TSO | ||
86 | {"tx_tcp_seg_good", IXGB_STAT(stats.tsctc)}, | 85 | {"tx_tcp_seg_good", IXGB_STAT(stats.tsctc)}, |
87 | {"tx_tcp_seg_failed", IXGB_STAT(stats.tsctfc)}, | 86 | {"tx_tcp_seg_failed", IXGB_STAT(stats.tsctfc)}, |
88 | #endif | ||
89 | {"rx_flow_control_xon", IXGB_STAT(stats.xonrxc)}, | 87 | {"rx_flow_control_xon", IXGB_STAT(stats.xonrxc)}, |
90 | {"rx_flow_control_xoff", IXGB_STAT(stats.xoffrxc)}, | 88 | {"rx_flow_control_xoff", IXGB_STAT(stats.xoffrxc)}, |
91 | {"tx_flow_control_xon", IXGB_STAT(stats.xontxc)}, | 89 | {"tx_flow_control_xon", IXGB_STAT(stats.xontxc)}, |
@@ -240,7 +238,6 @@ ixgb_set_tx_csum(struct net_device *netdev, uint32_t data) | |||
240 | return 0; | 238 | return 0; |
241 | } | 239 | } |
242 | 240 | ||
243 | #ifdef NETIF_F_TSO | ||
244 | static int | 241 | static int |
245 | ixgb_set_tso(struct net_device *netdev, uint32_t data) | 242 | ixgb_set_tso(struct net_device *netdev, uint32_t data) |
246 | { | 243 | { |
@@ -250,7 +247,6 @@ ixgb_set_tso(struct net_device *netdev, uint32_t data) | |||
250 | netdev->features &= ~NETIF_F_TSO; | 247 | netdev->features &= ~NETIF_F_TSO; |
251 | return 0; | 248 | return 0; |
252 | } | 249 | } |
253 | #endif /* NETIF_F_TSO */ | ||
254 | 250 | ||
255 | static uint32_t | 251 | static uint32_t |
256 | ixgb_get_msglevel(struct net_device *netdev) | 252 | ixgb_get_msglevel(struct net_device *netdev) |
@@ -722,10 +718,8 @@ static const struct ethtool_ops ixgb_ethtool_ops = { | |||
722 | .set_sg = ethtool_op_set_sg, | 718 | .set_sg = ethtool_op_set_sg, |
723 | .get_msglevel = ixgb_get_msglevel, | 719 | .get_msglevel = ixgb_get_msglevel, |
724 | .set_msglevel = ixgb_set_msglevel, | 720 | .set_msglevel = ixgb_set_msglevel, |
725 | #ifdef NETIF_F_TSO | ||
726 | .get_tso = ethtool_op_get_tso, | 721 | .get_tso = ethtool_op_get_tso, |
727 | .set_tso = ixgb_set_tso, | 722 | .set_tso = ixgb_set_tso, |
728 | #endif | ||
729 | .get_strings = ixgb_get_strings, | 723 | .get_strings = ixgb_get_strings, |
730 | .phys_id = ixgb_phys_id, | 724 | .phys_id = ixgb_phys_id, |
731 | .get_stats_count = ixgb_get_stats_count, | 725 | .get_stats_count = ixgb_get_stats_count, |
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index a083a9189230..51bd7e8ff0d6 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -456,9 +456,7 @@ ixgb_probe(struct pci_dev *pdev, | |||
456 | NETIF_F_HW_VLAN_TX | | 456 | NETIF_F_HW_VLAN_TX | |
457 | NETIF_F_HW_VLAN_RX | | 457 | NETIF_F_HW_VLAN_RX | |
458 | NETIF_F_HW_VLAN_FILTER; | 458 | NETIF_F_HW_VLAN_FILTER; |
459 | #ifdef NETIF_F_TSO | ||
460 | netdev->features |= NETIF_F_TSO; | 459 | netdev->features |= NETIF_F_TSO; |
461 | #endif | ||
462 | #ifdef NETIF_F_LLTX | 460 | #ifdef NETIF_F_LLTX |
463 | netdev->features |= NETIF_F_LLTX; | 461 | netdev->features |= NETIF_F_LLTX; |
464 | #endif | 462 | #endif |
@@ -1176,7 +1174,6 @@ ixgb_watchdog(unsigned long data) | |||
1176 | static int | 1174 | static int |
1177 | ixgb_tso(struct ixgb_adapter *adapter, struct sk_buff *skb) | 1175 | ixgb_tso(struct ixgb_adapter *adapter, struct sk_buff *skb) |
1178 | { | 1176 | { |
1179 | #ifdef NETIF_F_TSO | ||
1180 | struct ixgb_context_desc *context_desc; | 1177 | struct ixgb_context_desc *context_desc; |
1181 | unsigned int i; | 1178 | unsigned int i; |
1182 | uint8_t ipcss, ipcso, tucss, tucso, hdr_len; | 1179 | uint8_t ipcss, ipcso, tucss, tucso, hdr_len; |
@@ -1233,7 +1230,6 @@ ixgb_tso(struct ixgb_adapter *adapter, struct sk_buff *skb) | |||
1233 | 1230 | ||
1234 | return 1; | 1231 | return 1; |
1235 | } | 1232 | } |
1236 | #endif | ||
1237 | 1233 | ||
1238 | return 0; | 1234 | return 0; |
1239 | } | 1235 | } |