From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH net-next] tcp: TSO packets automatic sizing Date: Sun, 25 Aug 2013 20:58:37 -0700 Message-ID: <1377489517.8828.107.camel@edumazet-glaptop> References: <1377304192.8828.43.camel@edumazet-glaptop> <1377370594.8828.72.camel@edumazet-glaptop> <1377477425.8828.101.camel@edumazet-glaptop> <1377483759.8828.104.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Neal Cardwell , David Miller , netdev , Van Jacobson , Tom Herbert To: Yuchung Cheng Return-path: Received: from mail-pd0-f182.google.com ([209.85.192.182]:35620 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754710Ab3HZD6j (ORCPT ); Sun, 25 Aug 2013 23:58:39 -0400 Received: by mail-pd0-f182.google.com with SMTP id r10so2946947pdi.13 for ; Sun, 25 Aug 2013 20:58:39 -0700 (PDT) In-Reply-To: <1377483759.8828.104.camel@edumazet-glaptop> Sender: netdev-owner@vger.kernel.org List-ID: On Sun, 2013-08-25 at 19:22 -0700, Eric Dumazet wrote: > On Sun, 2013-08-25 at 17:37 -0700, Eric Dumazet wrote: > > On Sun, 2013-08-25 at 15:01 -0700, Yuchung Cheng wrote: > > > > > Any idea to get rid of this undesirable extra RTT delay? > > > > Its probably a bug in the push code. > > For exact write/send of a multiple of MSS, I think following patch > should fix the bug. > > If we filled a packet, we must send it. > > For the other problem, I think its related to Nagle. Oh well, thats the tcp_tso_should_defer() again. /* If a full-sized TSO skb can be sent, do it. */ if (limit >= min_t(unsigned int, sk->sk_gso_max_size, sk->sk_gso_max_segs * tp->mss_cache)) goto send_now; I'll send a V2 of the patch