From: David Miller Subject: Re: [patch net-next] net: sched: fix flush on non-existing chain Date: Fri, 03 Aug 2018 09:45:17 -0700 (PDT) Message-ID: <20180803.094517.666241811188161799.davem@davemloft.net> References: <20180803090847.1199-1-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jakub.kicinski@netronome.com, idosch@mellanox.com, mlxsw@mellanox.com To: jiri@resnulli.us Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:35164 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727356AbeHCSmW (ORCPT ); Fri, 3 Aug 2018 14:42:22 -0400 In-Reply-To: <20180803090847.1199-1-jiri@resnulli.us> Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko Date: Fri, 3 Aug 2018 11:08:47 +0200 > From: Jiri Pirko > > User was able to perform filter flush on chain 0 even if it didn't have > any filters in it. With the patch that avoided implicit chain 0 > creation, this changed. So in case user wants filter flush on chain > which does not exist, just return success. There's no reason for non-0 > chains to behave differently than chain 0, so do the same for them. > > Reported-by: Ido Schimmel > Fixes: f71e0ca4db18 ("net: sched: Avoid implicit chain 0 creation") > Signed-off-by: Jiri Pirko Applied.