From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH nf-next,RFC 03/10] netfilter: bridge: kill NF_HOOK_THRESH() and state->tresh Date: Thu, 13 Oct 2016 17:01:48 +0200 Message-ID: <20161013150148.GA1301@salvia> References: <1476360171-2991-1-git-send-email-pablo@netfilter.org> <1476360171-2991-4-git-send-email-pablo@netfilter.org> <20161013122545.GB14002@breakpoint.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@vger.kernel.org To: Florian Westphal Return-path: Received: from mail.us.es ([193.147.175.20]:49060 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755900AbcJMPB4 (ORCPT ); Thu, 13 Oct 2016 11:01:56 -0400 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 1CD4762D23 for ; Thu, 13 Oct 2016 17:01:54 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 0EFFBDA819 for ; Thu, 13 Oct 2016 17:01:54 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id C16A4DA7FA for ; Thu, 13 Oct 2016 17:01:49 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20161013122545.GB14002@breakpoint.cc> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Thu, Oct 13, 2016 at 02:25:45PM +0200, Florian Westphal wrote: > Pablo Neira Ayuso wrote: > > Patch c5136b15ea36 ("netfilter: bridge: add and use br_nf_hook_thresh") > > introduced br_nf_hook_thresh(). > > > > Replace NF_HOOK_THRESH() by br_nf_hook_thresh from > > br_nf_forward_finish(), so we have no more callers for this macro. > > > > As a result, state->thresh and explicit thresh parameter in the hook > > state structure is not required anymore. > > > > And we can get rid of fast forward code in nf_iterate() in the core path > > that is only used by br_netfilter to search for the filter hook. > > Note that you will need to move more parts of nf_hook_slow() into > br_nf_hook_thresh(); the bridge netfilter does need to thresh feature > that we have in nf_iterate(). br_nf_hook_thresh() is already skipping hooks before NF_BR_PRI_BRNF to emulate thresh. What else is missing?