Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4324692rwd; Sun, 4 Jun 2023 02:54:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4msOswUtGSwb779ZlbEEovqSvDCoYdlZzxWvJoVv3eMO4tyjtg+ODJ1Je4YXbyUK103ANj X-Received: by 2002:a92:d6ca:0:b0:33b:6cc0:ee6b with SMTP id z10-20020a92d6ca000000b0033b6cc0ee6bmr15530011ilp.13.1685872460984; Sun, 04 Jun 2023 02:54:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685872460; cv=pass; d=google.com; s=arc-20160816; b=pSAwmVkqwiiFZmQc5ktKVdqHFhUwFrsycYjfrSLkuhfs0uD0aH52DmPEKkzIFaTSLX mwRUtnpQbMbiqkKrWjwSqO7Nd9hY7O/iwHi+I98GHzdVJIMCP9lQlAzC8tZnPXAQynNp z3lnwMMBU3Ob3Q2nXCN0XOPaTPs0X3KJzJwgBwhsn8Dtum5Y1Lm1r6svmFAws6sw0BHQ 8QLFH/5adYWSZOVQJ4MDlFVX0pSazqrXyr+tmVcO8b1mODi45tec6iAcpQ2HMnmfOVZw 4Epk5ZniACvsMBlE3xRio+5V4Gg/kYfGx7NzCgf2a/pQTVQQ2CiQe5C2j4E8y27PmZhK kIUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Fr/61BSJkRBxnPIU/JaeVp9SfOJCht1lutLoKEyNQ14=; b=T2mZ1N+kIgaM0w+OvgsMm8zb/sEsREKmAFvt7OYV9aGwwG76zWJaDSmSkEl2xIsKia VHkXnDY2eKM8MUmbBHhUAgaGOcJRQWsnn95E/i1Dud33ynSsNRYrsmD32a8qvTFBf/1K 7EykGaNEPNmfCgp28WN8Am42QBGx3KxXveTofVNHT7dv9aIrPlhWteZSBQnQcsXhQZMN ckfDEVCvO/l9PwTGkPkKLSI1waqgd8ILK00K2u05hGSRZ87iYOHoCA9NquKn9eMX6wHr AUkLjCiecZQ04Oreu2D/Ou87jUB6SoiwAI9JxEgPasKOKiyPu4zxqHSp+y/UeS0TXLTc WNXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=XvCCgXYO; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r15-20020a638f4f000000b0054289df2d2csi3859869pgn.437.2023.06.04.02.54.06; Sun, 04 Jun 2023 02:54:20 -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=pass header.i=@arinc9.com header.s=zmail header.b=XvCCgXYO; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.com>); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbjFDJkj (ORCPT + 99 others); Sun, 4 Jun 2023 05:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbjFDJkh (ORCPT ); Sun, 4 Jun 2023 05:40:37 -0400 Received: from sender3-op-o18.zoho.com (sender3-op-o18.zoho.com [136.143.184.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39413C4; Sun, 4 Jun 2023 02:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685871585; cv=none; d=zohomail.com; s=zohoarc; b=gSgzJn5CL+O8JRGQl9k63DOoj9fWKcId1L3nQggvd1gIHzIwYxWTywtLT/a02TJ7LRrecXnCC5c0dpEhZ8RSxBqZ/OjLSwZRIfpd8GOI9H6HafFgA6uVsz7ttsQWKJk0BS6JJxg6+l0Fj/9M56+7pBbcTXlfvYyzJgGN8EpIzAQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685871585; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Fr/61BSJkRBxnPIU/JaeVp9SfOJCht1lutLoKEyNQ14=; b=Pwa4aYUItn0lfVIAXIIQnf2PlKXweoSkeHOsX49H7wIgV177CfEaKoNKBTzfnYEtNnyq11QSRdyn3JCrLYF/8wIvAJg36yMkwyGK6MMrPRPX5Tbncl2UdmydgjidE/oPKMwK7Ul7HN1VF95Ps/VAH+8vDBZpogsN1V4gPafFdKE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1685871585; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=Fr/61BSJkRBxnPIU/JaeVp9SfOJCht1lutLoKEyNQ14=; b=XvCCgXYOXJbcaYICu8ov2yD6s6INX/5B14mgo4bFrS7DKgv688oGNU6UrBl7guFo qf+VcpMlYJ3R+o34qTJEl8bHvzmL6fEffBFca7Mr5rbql59/kemX2VRIJts8NGkoedR w6MH1IK7sKpbHy0T8Sn3cFFvoqjo5ku5EeACGQoY= Received: from [192.168.99.249] (178-147-169-233.haap.dm.cosmote.net [178.147.169.233]) by mx.zohomail.com with SMTPS id 168587158327044.95124558097791; Sun, 4 Jun 2023 02:39:43 -0700 (PDT) Message-ID: Date: Sun, 4 Jun 2023 12:39:33 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next 27/30] net: dsa: mt7530: introduce BPDU trapping for MT7530 switch Content-Language: en-US To: Vladimir Oltean Cc: Sean Wang , Landen Chao , DENG Qingfang , Daniel Golle , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Richard van Schagen , Richard van Schagen , Frank Wunderlich , Bartel Eerdekens , erkin.bozoglu@xeront.com, mithat.guner@xeront.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-28-arinc.unal@arinc9.com> <20230526170223.gjdek6ob2w2kibzr@skbuf> <20230604092304.gkcdccgfda5hjitf@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230604092304.gkcdccgfda5hjitf@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, 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 4.06.2023 12:23, Vladimir Oltean wrote: > On Sun, Jun 04, 2023 at 11:51:33AM +0300, Arınç ÜNAL wrote: >>> If the switch doesn't currently trap BPDUs, isn't STP broken? >> >> No, the BPDU_PORT_FW bits are 0 after reset. The MT7620 programming guide >> states that frames with 01:80:C2:00:00:00 MAC DA (which is how the BPDU >> distinction is being made) will follow the system default which means the >> BPDUs will be treated as normal multicast frames. >> >> Only if all 3 bits are set will the BPDUs be dropped. > > Right, if you don't trap BPDUs just to the CPU but flood them, I believe > the STP protocol won't behave properly with switching loops. Worth testing. I've got no interest spending time playing around with STP at the moment so I'm going to pass. Arınç