Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753302AbbBMTDi (ORCPT ); Fri, 13 Feb 2015 14:03:38 -0500 Received: from Chamillionaire.breakpoint.cc ([80.244.247.6]:48255 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752153AbbBMTDg (ORCPT ); Fri, 13 Feb 2015 14:03:36 -0500 Date: Fri, 13 Feb 2015 20:03:30 +0100 From: Florian Westphal To: Imre Palik Cc: Florian Westphal , 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: <20150213190330.GD15141@breakpoint.cc> References: <1423560744-19011-1-git-send-email-imrep.amz@gmail.com> <20150211.142936.951620487173949333.davem@davemloft.net> <54DE2174.6040001@gmail.com> <20150213163703.GC15141@breakpoint.cc> <54DE3851.7000206@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54DE3851.7000206@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: 1404 Lines: 31 Imre Palik wrote: > The trouble is that there are some bridges (with low traffic) where I need netfilter, and some other bridges (carrying lots of traffic), where I don't. Being able to set things up on a per bridge basis is a powerful thing. > > I only implemented the global switch because the iptables and arptables support also have one. If this is what bugs people here, I can remove it, and resubmit. I see. But I agree with David, accepting such patch would pave way for all kinds of ugly hacks. It seems that technically the best solution would be to allow attaching filter rules to devices, but alas, netfilter doesn't support that. Alternatively, you patch *might* be ok iff you can get rid of the extra userspace-visible configuration knobs, we already have way too many of these. You'll also have to figure out how to avoid any run-time dependency on br_netfilter module from the bridge core. If you can do this, you might be able to get similar effect as your patch by replacing NF_HOOK with NF_HOOK_COND(..., !(br->flags & NO_NETFILTER)) or something like this. I don't know how invasive this would be, though. -- 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/