From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [Patch net-next] net_sched: only create filter chains for new filters/actions Date: Thu, 25 May 2017 12:14:56 -0400 (EDT) Message-ID: <20170525.121456.221336477222052018.davem@davemloft.net> References: <1495557757-31371-1-git-send-email-xiyou.wangcong@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jhs@mojatatu.com, jiri@mellanox.com To: xiyou.wangcong@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:58630 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758135AbdEYQO6 (ORCPT ); Thu, 25 May 2017 12:14:58 -0400 In-Reply-To: <1495557757-31371-1-git-send-email-xiyou.wangcong@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Cong Wang Date: Tue, 23 May 2017 09:42:37 -0700 > tcf_chain_get() always creates a new filter chain if not found > in existing ones. This is totally unnecessary when we get or > delete filters, new chain should be only created for new filters > (or new actions). > > Fixes: 5bc1701881e3 ("net: sched: introduce multichain support for filters") > Cc: Jamal Hadi Salim > Cc: Jiri Pirko > Signed-off-by: Cong Wang Indeed, get and delete requests should not create new objects, ever. I have pretty much no idea why Jiri is making such a big fuss about this change, to be quite honest. :-) Applied, thanks Cong.