From: Eric Dumazet Date: Thu, 1 Aug 2013 13:49:52 +0000 (-0700) Subject: ax88179_178a: avoid copy of tx tcp packets X-Git-Tag: v3.12-rc1~132^2~363 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f27070158d6754765f2f5fd1617e8e42a0ea2318;p=pandora-kernel.git ax88179_178a: avoid copy of tx tcp packets ax88179_tx_fixup() has quite complex code trying to push 8 bytes of control data (len/mss), but fails to do it properly for TCP packets, incurring an extra copy and point of memory allocation failure. Lets use the simple and approved way. dev->needed_headroom being 8, all frames should have 8 bytes of headroom, so the extra copy should be unlikely anyway. This patch should improve performance for TCP xmits. Reported-by: Ming Lei Tested-by: Ming Lei Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed