From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCHv2] bridge: change BR_GROUPFWD_RESTRICTED to allow forwarding of LLDP frames Date: Tue, 05 May 2015 19:21:17 -0400 (EDT) Message-ID: <20150505.192117.1979417987836600141.davem@davemloft.net> References: <20150401155001.40d58a37@urahara> <1430772433-16384-1-git-send-email-bernhard.thaler@wvnet.at> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, bridge@lists.linux-foundation.org To: bernhard.thaler@wvnet.at Return-path: In-Reply-To: <1430772433-16384-1-git-send-email-bernhard.thaler@wvnet.at> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bridge-bounces@lists.linux-foundation.org Errors-To: bridge-bounces@lists.linux-foundation.org List-Id: netdev.vger.kernel.org From: Bernhard Thaler Date: Mon, 4 May 2015 22:47:13 +0200 > BR_GROUPFWD_RESTRICTED bitmask restricts users from setting values to > /sys/class/net/brX/bridge/group_fwd_mask that allow forwarding of > some IEEE 802.1D Table 7-10 Reserved addresses: > > (MAC Control) 802.3 01-80-C2-00-00-01 > (Link Aggregation) 802.3 01-80-C2-00-00-02 > 802.1AB LLDP 01-80-C2-00-00-0E > > Change BR_GROUPFWD_RESTRICTED to allow to forward LLDP frames and document > group_fwd_mask. > > e.g. > echo 16384 > /sys/class/net/brX/bridge/group_fwd_mask > allows to forward LLDP frames. > > This may be needed for bridge setups used for network troubleshooting or > any other scenario where forwarding of LLDP frames is desired (e.g. bridge > connecting a virtual machine to real switch transmitting LLDP frames that > virtual machine needs to receive). > > Tested on a simple bridge setup with two interfaces and host transmitting > LLDP frames on one side of this bridge (used lldpd). Setting group_fwd_mask > as described above lets LLDP frames traverse bridge. > > Signed-off-by: Bernhard Thaler Applied, thanks.