From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932426AbdJZOig (ORCPT ); Thu, 26 Oct 2017 10:38:36 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:58715 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932255AbdJZOic (ORCPT ); Thu, 26 Oct 2017 10:38:32 -0400 Date: Thu, 26 Oct 2017 16:38:23 +0200 From: Andrew Lunn To: Egil Hjelmeland Cc: vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net-next 2/2] net: dsa: lan9303: Learn addresses on CPU port when bridged Message-ID: <20171026143823.GO20299@lunn.ch> References: <20171026090049.1647-1-privat@egil-hjelmeland.no> <20171026090049.1647-3-privat@egil-hjelmeland.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171026090049.1647-3-privat@egil-hjelmeland.no> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 26, 2017 at 11:00:49AM +0200, Egil Hjelmeland wrote: > When CPU transmit directly to port using tag, the LAN9303 does not > learn MAC addresses received on the CPU port into the ALR. > ALR learning is performed only when transmitting using ALR lookup. > > Solution: > If the two external ports are bridged and the packet is not STP BPDU, > then use ALR lookup to allow ALR learning on CPU port. > Otherwise transmit directly to port with STP state override. > > Signed-off-by: Egil Hjelmeland Reviewed-by: Andrew Lunn Andrew