From: Eric Dumazet Date: Mon, 23 Apr 2012 07:11:42 +0000 (+0000) Subject: tcp: introduce tcp_try_coalesce X-Git-Tag: v3.5-rc1~109^2~307 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1402d366019fedaa2b024f2bac06b7cc9a8782e1;p=pandora-kernel.git tcp: introduce tcp_try_coalesce commit c8628155ece3 (tcp: reduce out_of_order memory use) took care of coalescing tcp segments provided by legacy devices (linear skbs) We extend this idea to fragged skbs, as their truesize can be heavy. ixgbe for example uses 256+1024+PAGE_SIZE/2 = 3328 bytes per segment. Use this coalescing strategy for receive queue too. This contributes to reduce number of tcp collapses, at minimal cost, and reduces memory overhead and packets drops. Signed-off-by: Eric Dumazet Cc: Neal Cardwell Cc: Tom Herbert Cc: Maciej Żenczykowski Cc: Ilpo Järvinen Acked-by: Neal Cardwell Signed-off-by: David S. Miller --- Reading git-diff-tree failed