Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753575AbbBMQhN (ORCPT ); Fri, 13 Feb 2015 11:37:13 -0500 Received: from Chamillionaire.breakpoint.cc ([80.244.247.6]:48061 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752841AbbBMQhL (ORCPT ); Fri, 13 Feb 2015 11:37:11 -0500 Date: Fri, 13 Feb 2015 17:37:03 +0100 From: Florian Westphal To: Imre Palik Cc: David Miller , bridge@lists.linux-foundation.org, stephen@networkplumber.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imrep@amazon.de, aliguori@amazon.com Subject: Re: [PATCH] bridge: make it possible for packets to traverse the bridge withour hitting netfilter Message-ID: <20150213163703.GC15141@breakpoint.cc> References: <1423560744-19011-1-git-send-email-imrep.amz@gmail.com> <20150211.142936.951620487173949333.davem@davemloft.net> <54DE2174.6040001@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54DE2174.6040001@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1267 Lines: 21 Imre Palik wrote: > On 02/11/15 23:29, David Miller wrote: > > If I apply this, someone is going to try to submit a patch for every > > damn protocol layer to add a stupid hack like this. > > Actually this is one of those patches. There is already a "stupid hack like this" for iptables and arptables. (Implemented before git history, and giving me 10% speedup. Many thanks, whoever did it.) > > I also searched various LKML archives, and it seems the existing "stupid hacks" for iptables and arptables haven't resulted in any related patch submission in the last ten years. (Or my google-fu is weak.) > > Moreover, I cannot imagine any other reasonable on/off switch for bridge-netfilter than these three. Of course, my imagination might be lacking there. Why do you load the bridge netfilter module if you don't want it? Loading it registers the internal hooks for the call-ip(6)tables and sabotage hooks with NF_BRIDGE protocol so most of the NF_HOOK(NF_BRIDGE, ... calls become active. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/