Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783AbbFCCZZ (ORCPT ); Tue, 2 Jun 2015 22:25:25 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:40311 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751599AbbFCCY5 (ORCPT ); Tue, 2 Jun 2015 22:24:57 -0400 Date: Tue, 2 Jun 2015 19:24:51 -0700 From: Guenter Roeck To: Vivien Didelot Cc: netdev , David , Florian Fainelli , Andrew Lunn , Scott Feldman , Jiri Pirko , =?iso-8859-1?Q?J=E9rome?= Oufella , linux-kernel , kernel , Chris Healy Subject: Re: [RFC 7/9] net: dsa: mv88e6352: lock CPU port from learning addresses Message-ID: <20150603022451.GB932@roeck-us.net> References: <1433208470-25338-1-git-send-email-vivien.didelot@savoirfairelinux.com> <1433208470-25338-8-git-send-email-vivien.didelot@savoirfairelinux.com> <556DBCA4.10203@roeck-us.net> <1317462817.952931.1433293575321.JavaMail.zimbra@savoirfairelinux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1317462817.952931.1433293575321.JavaMail.zimbra@savoirfairelinux.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1593 Lines: 39 On Tue, Jun 02, 2015 at 09:06:15PM -0400, Vivien Didelot wrote: > Hi Guenter, > > On Jun 2, 2015, at 10:24 AM, Guenter Roeck linux@roeck-us.net wrote: > On 06/01/2015 06:27 PM, Vivien Didelot wrote: > >> This commit disables SA learning and refreshing for the CPU port. > >> > > > > Hi Vivien, > > > > This patch also seems to be unrelated to the rest of the series. > > > > Can you add an explanation why it is needed ? > > > > With this in place, how does the CPU port SA find its way into the fdb ? > > Do we assume that it will be configured statically ? > > An explanation might be useful. > > Without this patch, I noticed the CPU port was stealing the SA of a PC > behind a switch port. this happened when the port was a bridge member, > as the bridge was relaying broadcast coming from one switch port to the > other switch ports in the same vlan. > Makes me feel really uncomfortable. I think we may be going into the wrong direction. The whole point of offloading bridging is to have the switch handle forwarding, and that includes multicasts and broadcasts. Instead of doing that, it looks like we put more and more workarounds in place. Maybe the software bridge code needs to understand that it isn't support to forward broadcasts to ports of an offloaded bridge, and we should let the switch chip handle it ? Thanks, Guenter -- 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/