From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: Socket buffer sizes with autotuning Date: Fri, 16 May 2008 18:29:33 -0700 (PDT) Message-ID: <20080516.182933.242150078.davem@davemloft.net> References: <20080512.210202.158182011.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: hkchu@google.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:37896 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751152AbYEQB3j (ORCPT ); Fri, 16 May 2008 21:29:39 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: "Jerry Chu" Date: Fri, 16 May 2008 18:13:20 -0700 > The host inflight accounting gets screwed up. It looks like > pskb_expand_head() called by tcp_tso_acked()->tcp_trim_head() messes > up the accounting but I don't know how to fix it (still trying to > understand this complex piece of code). There could be other reason > as well. This is just like freeing up a normal SKB, so decrementing the in_flight value the appropriate number of packets should do the right thing. tcp_tso_acked() calculates this adjustment for you, in packets_acked.