Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3008039rwd; Wed, 14 Jun 2023 09:59:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BUtbbnbrSxTMvz3ZK0KChum334xWqgnifoi434mFMpoBnzGMum5E/wld+d1EBQOhBKedD X-Received: by 2002:a17:90a:241:b0:25b:fff4:1ca8 with SMTP id t1-20020a17090a024100b0025bfff41ca8mr1621646pje.24.1686761955303; Wed, 14 Jun 2023 09:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686761955; cv=none; d=google.com; s=arc-20160816; b=RuH+KRpyhi49+eeMrO7yoEjFVzXz70nkEHeX2svhqU15XL2JwbDKyenAtqqV2/N86J I8+BjbqVt70JIlWoCCREyAOX5+jhTEBH9E+VnybuoaGQcjyto3aCc4ARNKeHSuDV/371 pkaWXrkTH9mHYic1Zc62zclXhzOsu93IWhr4p0C4mr+IQfAD3hOIoNqH1xaN1OIxt+dT NB7TMa2PYyQs08swFbdjis0hqste/XHv6DwRKTsqMGUXEWn6ssV4Z3Nwt85UvzO/pqyW lbvzaN8fk+Z9XNpWFSXTSmAiiQycL9O947c58NLUO0l9NUYCq4htnYGuqd9TDZT/w8Fn Izsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wuwv6R2n6vyyWA1URLZOiy/KvbTZmgcum6LrvrKQKuA=; b=r2WITkBw5nRk+iQiBovH8Cr83suHymmvtCLkt2VzILIgmaN6AAJusMRBtuxjMWOZ/E EcBMju39dc/0R8Tk2Jee6gXuBD/dR6z1J13eL0U+2AZc1Zjn06PkvG+PUB7ehBQYqNsy aP42qaJR1sK4iKobi4COUJ8D6jGeZuSvj88JNuOQGvembF/ULsBo70T0f8lX59rH0fas NRQHPzKny3IEGThK0Lhh5CawEN4dpRiqizJ4pfvhs7qI9QwgaN7+ro7MWbnqryp0W7Lr YGQH/0dX2Pg0PPG2GZyUxTFduO+uwLfgqn1TtGqGZym3q7rdFCS89Dojxtnr1rFKpkus qN8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=FRLQvfRA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a17090a02c200b00256078a4c6bsi8171432pjd.78.2023.06.14.09.58.50; Wed, 14 Jun 2023 09:59:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=FRLQvfRA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235119AbjFNQmu (ORCPT + 99 others); Wed, 14 Jun 2023 12:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232697AbjFNQmq (ORCPT ); Wed, 14 Jun 2023 12:42:46 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1098F1A3; Wed, 14 Jun 2023 09:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wuwv6R2n6vyyWA1URLZOiy/KvbTZmgcum6LrvrKQKuA=; b=FRLQvfRAZ9owE+A6TYcFTPP6sA 7xc+Gy5Tw5YiQ26W0GFfesvUBAw2VdDGFHxNoYgaSjVErnJKDZMTsViqd7FVmFEeZMDIw6t5suZrO I2j5+ZvZtGcYhYH2gd93hMpbsvGcc1a1WHWTBHMUnbng/HumUuKtndpGZdGfpjNBJ1mKbnqa1TyuR fyTSWcYtjdKUtdZ51q1V8SYajVIlrZU4jYwEKP2VCfPvWHtv9GkeGhTd6WnIF6xETRjoUJS/H4k64 tstEhMyUdR8FlaYl+xYe19ySassHmSauHQm/Mtn1fYKxxS6CP6C1qXWd/2SwybxVV6zdA48/31x18 daVpNdzA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57494) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q9TZl-00020S-NU; Wed, 14 Jun 2023 17:42:29 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1q9TZi-0000aD-CA; Wed, 14 Jun 2023 17:42:26 +0100 Date: Wed, 14 Jun 2023 17:42:26 +0100 From: "Russell King (Oracle)" To: arinc9.unal@gmail.com Cc: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net v4 5/7] net: dsa: mt7530: fix handling of LLDP frames Message-ID: References: <20230612075945.16330-1-arinc.unal@arinc9.com> <20230612075945.16330-6-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230612075945.16330-6-arinc.unal@arinc9.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 12, 2023 at 10:59:43AM +0300, arinc9.unal@gmail.com wrote: > From: Arınç ÜNAL > > LLDP frames are link-local frames, therefore they must be trapped to the > CPU port. Currently, the MT753X switches treat LLDP frames as regular > multicast frames, therefore flooding them to user ports. To fix this, set > LLDP frames to be trapped to the CPU port(s). > > The mt753x_bpdu_port_fw enum is universally used for trapping frames, > therefore rename it and the values in it to mt753x_port_fw. > > For MT7530, LLDP frames received from a user port will be trapped to the > numerically smallest CPU port which is affine to the DSA conduit interface > that is up. > > For MT7531 and the switch on the MT7988 SoC, LLDP frames received from a > user port will be trapped to the CPU port that is affine to the user port > from which the frames are received. > > The bit for R0E_MANG_FR is 27. When set, the switch regards the frames with > :0E MAC DA as management (LLDP) frames. This bit is set to 1 after reset on > MT7530 and MT7531 according to the documents MT7620 Programming Guide v1.0 > and MT7531 Reference Manual for Development Board v1.0, so there's no need > to deal with this bit. Since there's currently no public document for the > switch on the MT7988 SoC, I assume this is also the case for this switch. > > Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch") Patch 4 claims to be a fix for this commit, and introduces one of these modifications to MT753X_BPC, which this patch then changes. On the face of it, it seems this patch is actually a fix to patch 4 as well as the original patch, so does that mean that patch 4 only half fixes a problem? Bah, I give up with this. IMHO it's just too much of a mess trying to do any sane review of it. No, I'm not going to give any acks or reviewed-bys to it because nothing here makes much sense to me. And I just can't be bothered trying to parse the commit messages anymore. Sorry but no, I'm going to be ignoring these patch sets from now on. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!