Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4310814rwd; Sun, 4 Jun 2023 02:26:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JArYzWqcIKb16OAYSqRaOGkalnwJbppZdVFRy85KZSk7GQnqyRxZdJDGU8YdShWbDF97I X-Received: by 2002:a05:6a20:8e19:b0:104:8045:c952 with SMTP id y25-20020a056a208e1900b001048045c952mr3259935pzj.23.1685870803500; Sun, 04 Jun 2023 02:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685870803; cv=none; d=google.com; s=arc-20160816; b=z19nKJx0GBzkUjdAPv07y7+k2wROgdkq5+s8NWSTe63Mmk18TdrZVVGQ5H6kfNwuqx 3JJ3ZpvSSVYFibNNDHrhiOxkOHBEa3LEFNkbGx9AlYFrqDQmV5+h3YCQv3vap+z65+j9 cCQ7S512OeGNG4nPpFv0HqcVH4H1LU3TkmwJKcuW+2Qo9XE2xXY0eCBE+XDWTJlVFoui fZyHmLXNQ6xST5r+hpetiOnitGqTVt/RYUsUW6sWr4cc8pcY3CF6j0ZOzlm/7OCDyvbh 4gN0Ztigsnm9OXQDzn8x487knupbsCs9FDshWn++nxLFd8DQ85X1QHTWG6eGRs7swql8 cd4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nwyWMrJ3KHae90TffxL9AnX5OQPeP2x8dmjtNZo0s6Y=; b=BwUGSf7ZJ0GxcejulgmiQc7lBTT7nuOzoxbpLg1rwFWZfOWn6LzVF/zBsPwajY9NA7 gBIZXCMwNkG1jDcss30w3P/Gh9HaAJ8T+8nOPX9Z21bdXUh9ZH+zo3wLoY+9K0dbwqHm UAo2c5Jq2wWxENV589pto3Bs/VAcugoFsCUZhxYCMs12C0AruvTaCdjNbB6yhx6S64tg 3H0Fx3v1QnF483PU4233J00j8ea8E84AFUl6a039MavGUPD2cCnQGKOUgdnouKkagLxP PD8lwdL9rLUcEdkVm+XYlN20ZcsriLmXFjKA7pPHwNzODxdwUbikr1CCjXbXrR8aWmcq mhFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=FoOeFN0f; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i196-20020a639dcd000000b005423d556c22si3967328pgd.466.2023.06.04.02.26.31; Sun, 04 Jun 2023 02:26:43 -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=@gmail.com header.s=20221208 header.b=FoOeFN0f; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbjFDJXL (ORCPT + 99 others); Sun, 4 Jun 2023 05:23:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbjFDJXK (ORCPT ); Sun, 4 Jun 2023 05:23:10 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70F61B1; Sun, 4 Jun 2023 02:23:09 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-97668583210so251980166b.1; Sun, 04 Jun 2023 02:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685870588; x=1688462588; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=nwyWMrJ3KHae90TffxL9AnX5OQPeP2x8dmjtNZo0s6Y=; b=FoOeFN0fzdLZT92B3gdASJ45MYDZrDwkWeqcje+rYQVfgQyrdEynZCciTcPmX3x8Am YdWzbf9em1+B/GH1s2qsj5HxYLp6O72WalMOEGQ5iYLl81/YIj46d/dVzN9VtnkHnHtA 7R39jjqgjvcRZl9Dt++GpctRv9RZqTntHkRAYcV8d8uIgsBEhbsXYjeYOPzAKkO6vqRu BqzpgnTMNCL2h79dZZNrNocELrF0hMGwsviQgZrY56YhzQ0p82bYkfJChZ8SrWNJbsaR o3Wsbs4aLiO+KfvoM/eoadriqxzGWipaFlNKtyTycb71TklavcEnXfzfj4T0AYG+Tqc3 MpIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685870588; x=1688462588; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nwyWMrJ3KHae90TffxL9AnX5OQPeP2x8dmjtNZo0s6Y=; b=Dy/IZJ1ZdgAR4gVX9p2ojGN5iGGkTBel6MAhvXg/L5iz/DykgS9OBspKA9pE2Qj7vb q1U8xp/p5lRUxIH8uPUe0B3Q7cW/Cjyb2XK+7lgSaYXXsI6Ci6n8OH5v6DIPOaJcBFId mQ3Cq2s0ZQKftzZlAbcFfTYVEEJzCwzctJ7wH9+V6jx4qwCNZnCN8bjqvPh69BO1eH9W w3noZGqLHf6FtNGtKaoJ8AUj4rajcWvylPbL9ZyHMfDnR8S+WoBfCqh1QQeiEmQGqnA+ 9UOwjt8VY4+TUo7JGjmxmWFeVlFrvIfggP65QSu5T8nWngfi05oY7FJiiOW6xw0C8AKg mExw== X-Gm-Message-State: AC+VfDw89C7LYJgRp243cn78rCKTEVdieq4eaJKfcn6qYBqh1WaWY/lr BxDElrmBkwiyrLUFYhwKb2mdf1Jt4QA= X-Received: by 2002:a17:907:3189:b0:971:c931:3677 with SMTP id xe9-20020a170907318900b00971c9313677mr3281732ejb.68.1685870587648; Sun, 04 Jun 2023 02:23:07 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id dk23-20020a170906f0d700b009746394662asm2715323ejb.53.2023.06.04.02.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jun 2023 02:23:07 -0700 (PDT) Date: Sun, 4 Jun 2023 12:23:04 +0300 From: Vladimir Oltean To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= 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 Subject: Re: [PATCH net-next 27/30] net: dsa: mt7530: introduce BPDU trapping for MT7530 switch Message-ID: <20230604092304.gkcdccgfda5hjitf@skbuf> References: <20230522121532.86610-1-arinc.unal@arinc9.com> <20230522121532.86610-28-arinc.unal@arinc9.com> <20230526170223.gjdek6ob2w2kibzr@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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.