From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [patch net] sched: cls_flower: remove from hashtable only in case skip sw flag is not set Date: Mon, 28 Nov 2016 22:23:28 +0100 Message-ID: <20161128212328.GD1813@nanopsycho.orion> References: <1480344013-4812-1-git-send-email-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Amir Vadai , Linux Netdev List , David Miller , Jamal Hadi Salim , Ido Schimmel , Elad Raz , Or Gerlitz , Hadar Hen Zion To: Or Gerlitz Return-path: Received: from mail-wj0-f195.google.com ([209.85.210.195]:33335 "EHLO mail-wj0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752420AbcK1VXc (ORCPT ); Mon, 28 Nov 2016 16:23:32 -0500 Received: by mail-wj0-f195.google.com with SMTP id kp2so15745472wjc.0 for ; Mon, 28 Nov 2016 13:23:31 -0800 (PST) Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Mon, Nov 28, 2016 at 10:04:56PM CET, gerlitz.or@gmail.com wrote: >On Mon, Nov 28, 2016 at 4:40 PM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Be symmetric to hashtable insert and remove filter from hashtable only >> in case skip sw flag is not set. >> >> Fixes: e69985c67c33 ("net/sched: cls_flower: Introduce support in SKIP SW flag") > >Amir, Jiri - what was the impact of running without this fix for the >last 3-4 kernels? I haven't seen any crashes, is that leaking took >place? or this is just a cleanup to make things more clear and >maintainable? It's a fix for real bug. If you add rule with skip_sw flag, it is not inserted into hashtable. But once you remove it, the current code removes it from hashtable (did not inspect how rhashtable implementation handles this).