tg3: Modify tg3_tso_bug() to handle multiple TX rings
authorPrashant Sreedharan <prashant@broadcom.com>
Tue, 5 Aug 2014 23:02:02 +0000 (16:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Aug 2014 23:48:14 +0000 (16:48 -0700)
commit4d8fdc95c60e90d84c8257a0067ff4b1729a3757
tree17f60ec7471b3cf024188042f88375b78fe6a669
parent2670cc699a66c4cf268cb3e3f6dfc325ec14f224
tg3: Modify tg3_tso_bug() to handle multiple TX rings

tg3_tso_bug() was originally designed to handle only HW TX ring 0, Commit
d3f6f3a1d818410c17445bce4f4caab52eb102f1 ("tg3: Prevent page allocation failure
during TSO workaround") changed the driver logic to use tg3_tso_bug() for all
HW TX rings that are enabled. This patch fixes the regression by modifying
tg3_tso_bug() to handle multiple HW TX rings.

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