From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net v2] net: rollback orig value on failure of dev_qdisc_change_tx_queue_len Date: Thu, 26 Jul 2018 14:01:31 -0700 (PDT) Message-ID: <20180726.140131.760557655200384644.davem@davemloft.net> References: <1532430740-11443-1-git-send-email-tariqt@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, eranbe@mellanox.com, xiyou.wangcong@gmail.com To: tariqt@mellanox.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:46852 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730643AbeGZWUI (ORCPT ); Thu, 26 Jul 2018 18:20:08 -0400 In-Reply-To: <1532430740-11443-1-git-send-email-tariqt@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Tariq Toukan Date: Tue, 24 Jul 2018 14:12:20 +0300 > Fix dev_change_tx_queue_len so it rolls back original value > upon a failure in dev_qdisc_change_tx_queue_len. > This is already done for notifirers' failures, share the code. > > In case of failure in dev_qdisc_change_tx_queue_len, some tx queues > would still be of the new length, while they should be reverted. > Currently, the revert is not done, and is marked with a TODO label > in dev_qdisc_change_tx_queue_len, and should find some nice solution > to do it. > Yet it is still better to not apply the newly requested value. > > Fixes: 48bfd55e7e41 ("net_sched: plug in qdisc ops change_tx_queue_len") > Signed-off-by: Tariq Toukan > Reviewed-by: Eran Ben Elisha > Reported-by: Ran Rozenstein Applied and queued up for -stable.