tilegx: fix some issues in the SW TSO support
authorChris Metcalf <[email protected]>
Thu, 25 Oct 2012 07:25:20 +0000 (07:25 +0000)
committerDavid S. Miller <[email protected]>
Fri, 26 Oct 2012 07:50:08 +0000 (03:50 -0400)
commit3da3fff8006c608f19a51859d44ba47ca8b41461
tree1f1cc48405056656e704a48c34d56be4d62630f6
parentf8295ec22cb0f1ee6849b862addbfa3ea9320755
tilegx: fix some issues in the SW TSO support

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 <[email protected]>
Cc: [email protected] [v3.6]
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/tile/tilegx.c