]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00d456330f0bb6715ece4b0d4ff158bf38bda601
tree17f60ec7471b3cf024188042f88375b78fe6a669
parentcefdf04c976881c568c2388304ee9de5d926ffda
tg3: Modify tg3_tso_bug() to handle multiple TX rings

tg3_tso_bug() was originally designed to handle only HW TX ring 0, Commit
c21981f00a072f2e73a907375a3294a693fb0d35 ("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