From: Eric Dumazet Date: Fri, 12 Apr 2013 11:31:52 +0000 (+0000) Subject: tcp: GSO should be TSQ friendly X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~137 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6a4a10411764cf1c3a5dad4f06c5ebe5194488b;p=pandora-kernel.git tcp: GSO should be TSQ friendly I noticed that TSQ (TCP Small queues) was less effective when TSO is turned off, and GSO is on. If BQL is not enabled, TSQ has then no effect. It turns out the GSO engine frees the original gso_skb at the time the fragments are generated and queued to the NIC. We should instead call the tcp_wfree() destructor for the last fragment, to keep the flow control as intended in TSQ. This effectively limits the number of queued packets on qdisc + NIC layers. Signed-off-by: Eric Dumazet Cc: Tom Herbert Cc: Yuchung Cheng Cc: Nandita Dukkipati Cc: Neal Cardwell Signed-off-by: David S. Miller --- Reading git-diff-tree failed