From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net-next 2/2] net/sched: fix filter flushing Date: Tue, 23 May 2017 07:17:13 +0200 Message-ID: <20170523051713.GB1829@nanopsycho> References: <20170520130132.1626-1-jiri@resnulli.us> <20170520130132.1626-2-jiri@resnulli.us> <20170521055416.GA1848@nanopsycho> <20170521191941.GA4278@nanopsycho> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linux Kernel Network Developers , David Miller , Jamal Hadi Salim , Eric Dumazet , Daniel Borkmann , Simon Horman , mlxsw@mellanox.com, Colin King To: Cong Wang Return-path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:33285 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761237AbdEWFRQ (ORCPT ); Tue, 23 May 2017 01:17:16 -0400 Received: by mail-wr0-f194.google.com with SMTP id w50so8854510wrc.0 for ; Mon, 22 May 2017 22:17:15 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Mon, May 22, 2017 at 11:04:58PM CEST, xiyou.wangcong@gmail.com wrote: >On Mon, May 22, 2017 at 1:54 PM, Cong Wang wrote: >> On Sun, May 21, 2017 at 12:19 PM, Jiri Pirko wrote: >>>>You can't claim you really delete it as long as actions can still >>>>see it and dump it. >>> >>> No, user just wants to delete all the filters. That is done. User does >>> not care if the actual chain structure is there or not. >>> >> >> Hmm, so users see a chain with no filters... Fair enough. > >But since you remove the chain from the chain_list, it means >users could not add new filters to this chain after flushing? And No, in flush, I don't remove it from the list. That is not in the patch. Why would you think so? >users could create a new chain with the same index?? > >If so, you should instead keep it in the chain_list, although empty.