From: David Miller Subject: Re: [PATCH net-next v1 4/4] etf: Drop all expired packets Date: Fri, 16 Nov 2018 20:40:37 -0800 (PST) Message-ID: <20181116.204037.1169460413784389924.davem@davemloft.net> References: <20181115012635.7272-1-vinicius.gomes@intel.com> <20181115012635.7272-4-vinicius.gomes@intel.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jesus.sanchez-palencia@intel.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, jesus.s.palencia@gmail.com, ilias.apalodimas@linaro.org To: vinicius.gomes@intel.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:49078 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728478AbeKQO4A (ORCPT ); Sat, 17 Nov 2018 09:56:00 -0500 In-Reply-To: <20181115012635.7272-4-vinicius.gomes@intel.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Vinicius Costa Gomes Date: Wed, 14 Nov 2018 17:26:35 -0800 > From: Jesus Sanchez-Palencia > > Currently on dequeue() ETF only drops the first expired packet, which > causes a problem if the next packet is already expired. When this > happens, the watchdog will be configured with a time in the past, fire > straight way and the packet will finally be dropped once the dequeue() > function of the qdisc is called again. > > We can save quite a few cycles and improve the overall behavior of the > qdisc if we drop all expired packets if the next packet is expired. > This should allow ETF to recover faster from bad situations. But > packet drops are still a very serious warning that the requirements > imposed on the system aren't reasonable. > > This was inspired by how the implementation of hrtimers use the > rb_tree inside the kernel. > > Signed-off-by: Jesus Sanchez-Palencia Applied.