From 13350ea78bd687a229af0f6052d2f45aa50a6524 Mon Sep 17 00:00:00 2001 From: Matt Carlson Date: Wed, 27 Jul 2011 14:20:48 +0000 Subject: [PATCH] tg3: Remove short DMA check for 1st fragment The first fragment of an skb should always be greater than 8 bytes. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller --- drivers/net/tg3.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 8dfde34b2415..0f5bcf79d727 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -6168,9 +6168,6 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) would_hit_hwbug = 0; - if (tg3_flag(tp, SHORT_DMA_BUG) && len <= 8) - would_hit_hwbug = 1; - if (tg3_4g_overflow_test(mapping, len)) would_hit_hwbug = 1; -- 2.20.1