From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11FDFC2D0A8 for ; Sat, 26 Sep 2020 20:22:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C71E62388E for ; Sat, 26 Sep 2020 20:22:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbgIZUWc (ORCPT ); Sat, 26 Sep 2020 16:22:32 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:57176 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbgIZUWc (ORCPT ); Sat, 26 Sep 2020 16:22:32 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kMGiB-00GJNw-Nq; Sat, 26 Sep 2020 22:22:27 +0200 Date: Sat, 26 Sep 2020 22:22:27 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: netdev@vger.kernel.org, davem@davemloft.net, f.fainelli@gmail.com, vivien.didelot@gmail.com, kuba@kernel.org Subject: Re: [PATCH v3 net-next 02/15] net: dsa: allow drivers to request promiscuous mode on master Message-ID: <20200926202227.GA3887691@lunn.ch> References: <20200926193215.1405730-1-vladimir.oltean@nxp.com> <20200926193215.1405730-3-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200926193215.1405730-3-vladimir.oltean@nxp.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sat, Sep 26, 2020 at 10:32:02PM +0300, Vladimir Oltean wrote: > Currently DSA assumes that taggers don't mess with the destination MAC > address of the frames on RX. That is not always the case. Some DSA > headers are placed before the Ethernet header (ocelot), and others > simply mangle random bytes from the destination MAC address (sja1105 > with its incl_srcpt option). > > Currently the DSA master goes to promiscuous mode automatically when the > slave devices go too (such as when enslaved to a bridge), but in > standalone mode this is a problem that needs to be dealt with. > > So give drivers the possibility to signal that their tagging protocol > will get randomly dropped otherwise, and let DSA deal with fixing that. > > Signed-off-by: Vladimir Oltean Reviewed-by: Andrew Lunn Andrew