From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [Patch net-next v3 0/3] net_sched: reflect tx_queue_len change for pfifo_fast Date: Mon, 29 Jan 2018 12:43:24 -0500 (EST) Message-ID: <20180129.124324.1307163515349322323.davem@davemloft.net> References: <20180126022624.20442-1-xiyou.wangcong@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, john.fastabend@gmail.com To: xiyou.wangcong@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:46272 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405AbeA2Rn0 (ORCPT ); Mon, 29 Jan 2018 12:43:26 -0500 In-Reply-To: <20180126022624.20442-1-xiyou.wangcong@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Cong Wang Date: Thu, 25 Jan 2018 18:26:21 -0800 > This pathcset restores the pfifo_fast qdisc behavior of dropping > packets based on latest dev->tx_queue_len. Patch 1 introduces > a helper, patch 2 introduces a new Qdisc ops which is called when > we modify tx_queue_len, patch 3 implements this ops for pfifo_fast. > > Please see each patch for details. > > --- > v3: use skb_array_resize_multiple() > v2: handle error case for ->change_tx_queue_len() Series applied, thanks Cong. Please follow up with John about making the queue allocation use a prepare + commit phase. And as for the TX queue state handling on change, I think it's fine to purge the whole queue. That is definitely better than allowing the queue length to be visibly over the tx_queue_len setting. Thank you.