tg3: Fix data corruption on 5725 with TSO
authorMichael Chan <mchan@broadcom.com>
Mon, 13 May 2013 11:04:16 +0000 (11:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 May 2013 18:32:04 +0000 (11:32 -0700)
commit0f0d15100a8ac875bdd408324c473e16d73d3557
treefebfe0543aa31aa965ec5358a6e71f6672d25380
parent44f3b503c16425c8e9db4bbaa2fc9cd0c9d0ba91
tg3: Fix data corruption on 5725 with TSO

The 5725 family of devices (asic rev 5762), corrupts TSO packets where
the buffer is within MSS bytes of a 4G boundary (4G, 8G etc.). Detect
this condition and trigger the workaround path.

Cc: <stable@vger.kernel.org>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c