From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: Re: [patch net-next 2/2] net/sched: fix filter flushing Date: Mon, 22 May 2017 22:40:49 -0700 Message-ID: References: <20170520130132.1626-1-jiri@resnulli.us> <20170520130132.1626-2-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Linux Kernel Network Developers , David Miller , Jamal Hadi Salim , Eric Dumazet , Daniel Borkmann , Simon Horman , mlxsw@mellanox.com, Colin King To: Jiri Pirko Return-path: Received: from mail-wm0-f41.google.com ([74.125.82.41]:35327 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761091AbdEWFlL (ORCPT ); Tue, 23 May 2017 01:41:11 -0400 Received: by mail-wm0-f41.google.com with SMTP id b84so12323834wmh.0 for ; Mon, 22 May 2017 22:41:10 -0700 (PDT) In-Reply-To: <20170520130132.1626-2-jiri@resnulli.us> Sender: netdev-owner@vger.kernel.org List-ID: On Sat, May 20, 2017 at 6:01 AM, Jiri Pirko wrote: > From: Jiri Pirko > > When user instructs to remove all filters from chain, we cannot destroy > the chain as other actions may hold a reference. Also the put in errout > would try to destroy it again. So instead, just walk the chain and remove > all existing filters. > > Fixes: 5bc1701881e3 ("net: sched: introduce multichain support for filters") > Signed-off-by: Jiri Pirko Acked-by: Cong Wang