[TG3]: Fix 4GB boundary tx handling
authorMichael Chan <mchan@broadcom.com>
Sat, 17 Sep 2005 07:46:27 +0000 (00:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2005 07:46:27 +0000 (00:46 -0700)
commitc58ec93245a1fb7354f9e331960380827b9f41db
tree0118b0145dc991b2f703279e5712a591a0bad153
parenteb8edb085716621605cc2e7131a6369d2223d992
[TG3]: Fix 4GB boundary tx handling

Fix and simplify the workaround code for the 4GB boundary tx buffer
hardware bug.

1. Need to unmap the original SKB's dma addresses if a new SKB cannot
   be allocated.

2. Need to pass the base flag to tigon3_4gb_hwbug_workaround() or TSO
   won't work properly.

3. The guilty entry and length parameters for
   tigon3_4gb_hwbug_workaround() are removed as they are not necessary.

4. Remove assumption that only one fragment can hit the 4GB boundary.
   Another fragment can hit 8GB for example.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c