tilegx: fix some issues in the SW TSO support
authorChris Metcalf <cmetcalf@tilera.com>
Thu, 25 Oct 2012 07:25:20 +0000 (07:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:10:20 +0000 (10:10 -0700)
commit8668be75982558ff50873ec256abdc881a1d25ba
treeb3f285281bff6c4bfd7a471ccaa50b64af931317
parent4ade7d2eedda437e2197b57e449a308e06f9bb4d
tilegx: fix some issues in the SW TSO support

commit 3da3fff8006c608f19a51859d44ba47ca8b41461 upstream.

This change correctly computes the header length and data length in
the fragments to avoid a bug where we would end up with extremely
slow performance.  Also adopt use of skb_frag_size() accessor.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/tile/tilegx.c