From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Weinberger Subject: Re: [PATCH 1/1] bridge: remove BR_GROUPFWD_RESTRICTED for arbitrary forwarding of reserved addresses Date: Mon, 01 Oct 2018 20:32:12 +0200 Message-ID: <2327925.x0GQ7AZp12@blindfold> References: <1420505776-26827-1-git-send-email-bernhard.thaler@wvnet.at> <3581745.3NPUBHfd8z@blindfold> <20181001182526.GA28369@splinter> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Florian Fainelli , Richard Weinberger , Stephen Hemminger , bernhard.thaler@wvnet.at, "David S. Miller" , bridge@lists.linux-foundation.org, netdev@vger.kernel.org, David Gstir To: Ido Schimmel Return-path: Received: from lithops.sigma-star.at ([195.201.40.130]:32820 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbeJBBLU (ORCPT ); Mon, 1 Oct 2018 21:11:20 -0400 In-Reply-To: <20181001182526.GA28369@splinter> Sender: netdev-owner@vger.kernel.org List-ID: Am Montag, 1. Oktober 2018, 20:25:26 CEST schrieb Ido Schimmel: > On Mon, Oct 01, 2018 at 08:16:22PM +0200, Richard Weinberger wrote: > > Florian, > > > > Am Montag, 1. Oktober 2018, 18:24:25 CEST schrieb Florian Fainelli: > > > If all you are doing is forwarding anything, one thing I experimented > > > with before is the following: > > > > > > # tc qdisc add dev eth1 handle ffff: ingress > > > # tc qdisc add dev eth3 handle ffff: ingress > > > # tc filter add dev eth3 parent ffff: u32 \ > > > > match u32 0 0 \ > > > > action mirred egress redirect dev eth1 > > > # tc filter add dev eth1 parent ffff: u32 \ > > > > match u32 0 0 \ > > > > action mirred egress redirect dev eth3 > > > # ifconfig eth3 promisc > > > # ifconfig eth1 promisc > > > > > > and this works just fine actually, bypassing the bridge layer entirely. > > > > Yeah, mirred is a powerful knife. :-) > > > > In my case it is too low level since I utilize the netfilter functionality of > > the bridge layer. > > You can use mirred only for the specific packets you care about and let > the rest continue to the bridge. This is my plan b, having a u32 classifier that transports STP directly to the other interface. But IMHO this all is a bit hacky and a "forward anything" bridge mode sounds more natural to me. Thanks, //richard