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/bnx2.c | |
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/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index ee7b75b976b5..8e96154be031 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -39,12 +39,10 @@ | |||
39 | #include <linux/if_vlan.h> | 39 | #include <linux/if_vlan.h> |
40 | #define BCM_VLAN 1 | 40 | #define BCM_VLAN 1 |
41 | #endif | 41 | #endif |
42 | #ifdef NETIF_F_TSO | ||
43 | #include <net/ip.h> | 42 | #include <net/ip.h> |
44 | #include <net/tcp.h> | 43 | #include <net/tcp.h> |
45 | #include <net/checksum.h> | 44 | #include <net/checksum.h> |
46 | #define BCM_TSO 1 | 45 | #define BCM_TSO 1 |
47 | #endif | ||
48 | #include <linux/workqueue.h> | 46 | #include <linux/workqueue.h> |
49 | #include <linux/crc32.h> | 47 | #include <linux/crc32.h> |
50 | #include <linux/prefetch.h> | 48 | #include <linux/prefetch.h> |
@@ -1728,7 +1726,7 @@ bnx2_tx_int(struct bnx2 *bp) | |||
1728 | 1726 | ||
1729 | tx_buf = &bp->tx_buf_ring[sw_ring_cons]; | 1727 | tx_buf = &bp->tx_buf_ring[sw_ring_cons]; |
1730 | skb = tx_buf->skb; | 1728 | skb = tx_buf->skb; |
1731 | #ifdef BCM_TSO | 1729 | |
1732 | /* partial BD completions possible with TSO packets */ | 1730 | /* partial BD completions possible with TSO packets */ |
1733 | if (skb_is_gso(skb)) { | 1731 | if (skb_is_gso(skb)) { |
1734 | u16 last_idx, last_ring_idx; | 1732 | u16 last_idx, last_ring_idx; |
@@ -1744,7 +1742,7 @@ bnx2_tx_int(struct bnx2 *bp) | |||
1744 | break; | 1742 | break; |
1745 | } | 1743 | } |
1746 | } | 1744 | } |
1747 | #endif | 1745 | |
1748 | pci_unmap_single(bp->pdev, pci_unmap_addr(tx_buf, mapping), | 1746 | pci_unmap_single(bp->pdev, pci_unmap_addr(tx_buf, mapping), |
1749 | skb_headlen(skb), PCI_DMA_TODEVICE); | 1747 | skb_headlen(skb), PCI_DMA_TODEVICE); |
1750 | 1748 | ||
@@ -4514,7 +4512,6 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
4514 | vlan_tag_flags |= | 4512 | vlan_tag_flags |= |
4515 | (TX_BD_FLAGS_VLAN_TAG | (vlan_tx_tag_get(skb) << 16)); | 4513 | (TX_BD_FLAGS_VLAN_TAG | (vlan_tx_tag_get(skb) << 16)); |
4516 | } | 4514 | } |
4517 | #ifdef BCM_TSO | ||
4518 | if ((mss = skb_shinfo(skb)->gso_size) && | 4515 | if ((mss = skb_shinfo(skb)->gso_size) && |
4519 | (skb->len > (bp->dev->mtu + ETH_HLEN))) { | 4516 | (skb->len > (bp->dev->mtu + ETH_HLEN))) { |
4520 | u32 tcp_opt_len, ip_tcp_len; | 4517 | u32 tcp_opt_len, ip_tcp_len; |
@@ -4547,7 +4544,6 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
4547 | } | 4544 | } |
4548 | } | 4545 | } |
4549 | else | 4546 | else |
4550 | #endif | ||
4551 | { | 4547 | { |
4552 | mss = 0; | 4548 | mss = 0; |
4553 | } | 4549 | } |
@@ -5544,10 +5540,8 @@ static const struct ethtool_ops bnx2_ethtool_ops = { | |||
5544 | .set_tx_csum = ethtool_op_set_tx_csum, | 5540 | .set_tx_csum = ethtool_op_set_tx_csum, |
5545 | .get_sg = ethtool_op_get_sg, | 5541 | .get_sg = ethtool_op_get_sg, |
5546 | .set_sg = ethtool_op_set_sg, | 5542 | .set_sg = ethtool_op_set_sg, |
5547 | #ifdef BCM_TSO | ||
5548 | .get_tso = ethtool_op_get_tso, | 5543 | .get_tso = ethtool_op_get_tso, |
5549 | .set_tso = bnx2_set_tso, | 5544 | .set_tso = bnx2_set_tso, |
5550 | #endif | ||
5551 | .self_test_count = bnx2_self_test_count, | 5545 | .self_test_count = bnx2_self_test_count, |
5552 | .self_test = bnx2_self_test, | 5546 | .self_test = bnx2_self_test, |
5553 | .get_strings = bnx2_get_strings, | 5547 | .get_strings = bnx2_get_strings, |
@@ -6104,9 +6098,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6104 | #ifdef BCM_VLAN | 6098 | #ifdef BCM_VLAN |
6105 | dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; | 6099 | dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; |
6106 | #endif | 6100 | #endif |
6107 | #ifdef BCM_TSO | ||
6108 | dev->features |= NETIF_F_TSO | NETIF_F_TSO_ECN; | 6101 | dev->features |= NETIF_F_TSO | NETIF_F_TSO_ECN; |
6109 | #endif | ||
6110 | 6102 | ||
6111 | netif_carrier_off(bp->dev); | 6103 | netif_carrier_off(bp->dev); |
6112 | 6104 | ||