Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6293711rwd; Mon, 19 Jun 2023 05:25:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6n5eC8jrGlyROZHy0BNi29WY3hWR7u6ZkmzFkNI4/t3xKtzC2XO/O1BKiIOzNdwTTO1nQt X-Received: by 2002:a17:902:9f97:b0:1b0:637e:e25a with SMTP id g23-20020a1709029f9700b001b0637ee25amr9534069plq.67.1687177525832; Mon, 19 Jun 2023 05:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687177525; cv=none; d=google.com; s=arc-20160816; b=jCfVAX8BSrR0aCtyV7IMMLMH57CQBB9WzwP2oZL9hSJZDXpGMGac4NRvbI7vLaM86y opIm6Q7uImYluLrERvvelJDnAoZ/jtwIDcsxDi5LyDd1F2l0S3oMgHmZ+/7QKcjYnkYV OeAMzNJXAmLxMgjXoTmvYtXbCHWhbmlcsxzkksMPR9H4YaQMgFvGU9zs/S/hS5Nysxta LJkmY6RMnY8pFNM649Y1qHpNb1w5/GbRbVQObWpZZzj/dmnVNf9ztgkGZGO26FJE9SeQ 2fnguj0lCWPa12w7oHry2mUplU3r701z0e9LdYxYYnSb0VUzdBlg9B+oicbM4V3lO0PV Rt6Q== 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=6f1y6nCpHwghguAOpkCWrKEeehWxm0A0RNp77FEOBz0=; b=xJ8l0EfXGs6eqEabNtah5/Z76TOWGv9sJtKyheFGCaGHSK/08miTKL+uEgWWQE1htb SCO5jfVF81OW8EB+PPB2fBcxv49U/KE0YPcVruqmOtUREqvbDP9IbdjXzaxAkFtfB9HI Zfpc0Bc4UeNxS4Kh++jvD6W5jIYWdhKdRZ25m1vF/Vw+zNbF74SlA/KPdHFVzO+JPF4B TTyNlP3KNXke/hmfXgnzkdPBnYWvWN2nwzvJB8I26hev1cl8EsXlZ0zihjN3z/syjrqZ QCKm+ssfkcFvUCtiuDOW8PjX4aYBUFlFsTGJSVDi0RjoXY2OZn32a/DcX82GRayk8yY6 gtnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=VCR4+zkB; 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 j2-20020a17090276c200b001b678a193dasi56831plt.59.2023.06.19.05.25.11; Mon, 19 Jun 2023 05:25:25 -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=VCR4+zkB; 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 S230096AbjFSMMo (ORCPT + 99 others); Mon, 19 Jun 2023 08:12:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjFSMMn (ORCPT ); Mon, 19 Jun 2023 08:12:43 -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 00FEB12B; Mon, 19 Jun 2023 05:12:42 -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=6f1y6nCpHwghguAOpkCWrKEeehWxm0A0RNp77FEOBz0=; b=VCR4+zkBwMNGteNiO6NtrfbWsU rBePzOObN7wDT8UYw5bT7TESwYG8w5qK3SpV8KMXfuRSJ/Oo8PZJibLNuvSohQqI1vOeWPgkzaTR7 hgqczFetSDX/qc4j3cdN8ReALT8PScmz+IBryE3P+qxfQj4YpbmE5mAePJwVbTQpt6m0g90pQXR8I vbwrAHIFyViGgt+UgOeV2/Dk7zeeJkV0bSNLlsCamfOpZb3sD243xeREzclcpZ7faiUY6LXV8Sp/5 u7ZjKqpEf22TTuHWQnb7TLTvaGll+H0x0ViCYrXZrxYJ1XLfRvnEe7QW6ODoPiUeu343b6K/5qbGB zm9Fnr1g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42216) 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 1qBDkG-0008GZ-4t; Mon, 19 Jun 2023 13:12:32 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qBDkE-0005cw-Um; Mon, 19 Jun 2023 13:12:30 +0100 Date: Mon, 19 Jun 2023 13:12:30 +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 v6 3/6] net: dsa: mt7530: fix handling of BPDUs on MT7530 switch Message-ID: References: <20230617062649.28444-1-arinc.unal@arinc9.com> <20230617062649.28444-4-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: <20230617062649.28444-4-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 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 Sat, Jun 17, 2023 at 09:26:46AM +0300, arinc9.unal@gmail.com wrote: > From: Arınç ÜNAL > > BPDUs are link-local frames, therefore they must be trapped to the CPU > port. Currently, the MT7530 switch treats BPDUs as regular multicast > frames, therefore flooding them to user ports. To fix this, set BPDUs to be > trapped to the CPU port. Group this on mt7530_setup() and > mt7531_setup_common() into mt753x_trap_frames() and call that. > > Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch") > Signed-off-by: Arınç ÜNAL Reviewed-by: Russell King (Oracle) Thanks! > +static void > +mt753x_trap_frames(struct mt7530_priv *priv) The only niggle is that it's not necessary to split this line, but as other functions do this, it's better to follow the already established convention in the file. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!