Skip to content

Commit

Permalink
tg3: Remove short DMA check for 1st fragment
Browse files Browse the repository at this point in the history
The first fragment of an skb should always be greater than 8 bytes.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Matt Carlson authored and David S. Miller committed Jul 28, 2011
1 parent 92cd3a1 commit 13350ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 13350ea

Please sign in to comment.