From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id B92292005CC for ; Thu, 28 Jun 2012 22:50:14 -0700 (PDT) Received: by eeke50 with SMTP id e50so2015019eek.16 for ; Thu, 28 Jun 2012 22:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; bh=uTz9fJQvTwvd6z/RGZyNka1aX+xxhydGpAs2LzMzsIA=; b=wXqaz4ehizZPIgF0VzTll7OJXVjL4FoSk9JCqn7FUkbDCBp+1eap2/EUGBaus/df+o 69HSIgDdKLpAfmgV8v581VsP/lq2koO05XnAQMRhTQ5ZFEmnHFsl2HmWTYiZ6tAOzsgU Zp2W/qD9enjMBFs27hdgTLlo83Nef6YlvgSMhFGQzTcKoFQ6veENE5snS3Ek1TYtUheC fOOCiHTPqJF9lXahyusT0u1k8mDHw1iVtd5cJUtwR1/oPI5KIIt4S3SsP6jlmn/SyRmv q0Mj4+6N7RO76XsWJX32b2BS/hMbgRzzhyt6RMYBh4hXz238UZUF6OPIr2m5zcUqwTLc dSiQ== Received: by 10.180.92.7 with SMTP id ci7mr2497580wib.1.1340949011637; Thu, 28 Jun 2012 22:50:11 -0700 (PDT) Received: from [172.28.88.52] ([74.125.122.49]) by mx.google.com with ESMTPS id k8sm5974342wia.6.2012.06.28.22.50.09 (version=SSLv3 cipher=OTHER); Thu, 28 Jun 2012 22:50:10 -0700 (PDT) From: Eric Dumazet To: David Miller In-Reply-To: <20120628.222934.767995619021650710.davem@davemloft.net> References: <1340945592.29822.8.camel@edumazet-glaptop> <20120628.221252.2220466000873887315.davem@davemloft.net> <1340947448.29822.41.camel@edumazet-glaptop> <20120628.222934.767995619021650710.davem@davemloft.net> Content-Type: text/plain; charset="UTF-8" Date: Fri, 29 Jun 2012 07:50:08 +0200 Message-ID: <1340949008.29822.73.camel@edumazet-glaptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Cc: nanditad@google.com, netdev@vger.kernel.org, codel@lists.bufferbloat.net, ycheng@google.com, ncardwell@google.com, mattmathis@google.com Subject: Re: [Codel] [PATCH net-next] fq_codel: report congestion notification at enqueue time X-BeenThere: codel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: CoDel AQM discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2012 05:50:15 -0000 On Thu, 2012-06-28 at 22:29 -0700, David Miller wrote: > I am pretty sure the behavior in RED is intentional. > > It's a soft push back on TCP. > tcp_enter_cwr() is called the same for DROP and CN > We're taking this path when we are unable to sucessfully ECN mark a > packet. But our intention was to do so. > Hmm, problem is the sender thinks the packet was queued for transmission. ret = macvlan_queue_xmit(skb, dev); if (likely(ret == NET_XMIT_SUCCESS || ret == NET_XMIT_CN)) { struct macvlan_pcpu_stats *pcpu_stats; pcpu_stats = this_cpu_ptr(vlan->pcpu_stats); u64_stats_update_begin(&pcpu_stats->syncp); pcpu_stats->tx_packets++; pcpu_stats->tx_bytes += len; u64_stats_update_end(&pcpu_stats->syncp); } else { this_cpu_inc(vlan->pcpu_stats->tx_dropped); } NET_XMIT_CN has a lazy semantic it seems. I will just dont rely on it.