diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index c4f193eba82d..8483664b9cee 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -5822,8 +5822,7 @@ static int tigon3_dma_hwbug_workaround(struct tg3_napi *tnapi, | |||
5822 | /* Make sure new skb does not cross any 4G boundaries. | 5822 | /* Make sure new skb does not cross any 4G boundaries. |
5823 | * Drop the packet if it does. | 5823 | * Drop the packet if it does. |
5824 | */ | 5824 | */ |
5825 | } else if (tg3_flag(tp, 4G_DMA_BNDRY_BUG) && | 5825 | } else if (tg3_4g_overflow_test(new_addr, new_skb->len)) { |
5826 | tg3_4g_overflow_test(new_addr, new_skb->len)) { | ||
5827 | pci_unmap_single(tp->pdev, new_addr, new_skb->len, | 5826 | pci_unmap_single(tp->pdev, new_addr, new_skb->len, |
5828 | PCI_DMA_TODEVICE); | 5827 | PCI_DMA_TODEVICE); |
5829 | ret = -1; | 5828 | ret = -1; |
@@ -6018,8 +6017,7 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
6018 | if (tg3_flag(tp, SHORT_DMA_BUG) && len <= 8) | 6017 | if (tg3_flag(tp, SHORT_DMA_BUG) && len <= 8) |
6019 | would_hit_hwbug = 1; | 6018 | would_hit_hwbug = 1; |
6020 | 6019 | ||
6021 | if (tg3_flag(tp, 4G_DMA_BNDRY_BUG) && | 6020 | if (tg3_4g_overflow_test(mapping, len)) |
6022 | tg3_4g_overflow_test(mapping, len)) | ||
6023 | would_hit_hwbug = 1; | 6021 | would_hit_hwbug = 1; |
6024 | 6022 | ||
6025 | if (tg3_40bit_overflow_test(tp, mapping, len)) | 6023 | if (tg3_40bit_overflow_test(tp, mapping, len)) |
@@ -6055,8 +6053,7 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
6055 | len <= 8) | 6053 | len <= 8) |
6056 | would_hit_hwbug = 1; | 6054 | would_hit_hwbug = 1; |
6057 | 6055 | ||
6058 | if (tg3_flag(tp, 4G_DMA_BNDRY_BUG) && | 6056 | if (tg3_4g_overflow_test(mapping, len)) |
6059 | tg3_4g_overflow_test(mapping, len)) | ||
6060 | would_hit_hwbug = 1; | 6057 | would_hit_hwbug = 1; |
6061 | 6058 | ||
6062 | if (tg3_40bit_overflow_test(tp, mapping, len)) | 6059 | if (tg3_40bit_overflow_test(tp, mapping, len)) |
@@ -13703,11 +13700,6 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
13703 | } | 13700 | } |
13704 | } | 13701 | } |
13705 | 13702 | ||
13706 | /* All chips can get confused if TX buffers | ||
13707 | * straddle the 4GB address boundary. | ||
13708 | */ | ||
13709 | tg3_flag_set(tp, 4G_DMA_BNDRY_BUG); | ||
13710 | |||
13711 | if (tg3_flag(tp, 5755_PLUS)) | 13703 | if (tg3_flag(tp, 5755_PLUS)) |
13712 | tg3_flag_set(tp, SHORT_DMA_BUG); | 13704 | tg3_flag_set(tp, SHORT_DMA_BUG); |
13713 | 13705 | ||