Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3116702rwd; Sat, 10 Jun 2023 01:37:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jtFrju/Jf1L80eSZAnFDSij2wCp0Kg2iSPbwgSV/HYPv1G3lOA38XWbKNPvunm46CKAk9 X-Received: by 2002:a05:6a00:14c9:b0:64d:1185:241a with SMTP id w9-20020a056a0014c900b0064d1185241amr4161618pfu.5.1686386222261; Sat, 10 Jun 2023 01:37:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686386222; cv=pass; d=google.com; s=arc-20160816; b=LebHkJyTBfZ82ol7cjMer75Qcz29fpJY8Z4mBIFARVGG1Bvbcl5d8wR6dYhc9qsyNO M/Gjwz7/e/moaMnoIO1lXeN+4xFrzSPhdLXVt6WnXvCxn/qfMWnEFNn9NGsXmK4tzUjH T86cqU5tZbQHyLViSxbi/XQEqa0Nv9C+Uv+Zrius+fvXFtZ+inX4nC4bvWYhck6Ahjti oGQftuoU6b8c0od34c7OjyxQel6JfqnT30PdEpR+yw30dVX63N030XybE8U1jpX+gNHx xTeKEVsnga9Yw9+dqy/mocYo9aHVOOuuC3O71oQGoLAV6jC/xEmyuwrHFL6bnQuBt289 YW0A== 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=vdOs5mAE/4Z92ZVApF6lsqm3ESAZtt4qbsdKymUSsy8=; b=J1+sjPRXLLzA6t3gFzAe2bYKz2rt92uYDKPeubGQVSk8LI9RGfzqiIQDnqZJxAm3Lh UfHTK6laALSKvkdvfEXdsvSBDLbh9aONI9iskS6bt35fP87GkQsk56M+RujOrJlJhp+L aBx0hwp32dm1ksmf/5fMZWxpXHRGHcy/gdx9a1VZ/tgwI3UhGU0U4PzPb5UgLcbzKeNU Ow7X9dvQW2MKYfCWhNEjym43FTSsS1M37h49KOfEQrx1dZcR/BeltUJXQL/R9pmahYjE Xy9SzxFJhI9FgAA/w177qN4smxOipxD6vdj1HMPJBRnXf+Hu7ZUoyazu5EvenJ32jRfP 7ohw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=Dv2eB1Wt; 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 w66-20020a626245000000b0063b8f0a6f51si3777517pfb.117.2023.06.10.01.36.49; Sat, 10 Jun 2023 01:37:02 -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=Dv2eB1Wt; 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 S230486AbjFJIdy (ORCPT + 99 others); Sat, 10 Jun 2023 04:33:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbjFJIdx (ORCPT ); Sat, 10 Jun 2023 04:33:53 -0400 Received: from sender4-op-o10.zoho.com (sender4-op-o10.zoho.com [136.143.188.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC7AD30F9; Sat, 10 Jun 2023 01:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686385977; cv=none; d=zohomail.com; s=zohoarc; b=mzasCzeVniEzTN+y/39+PDdNiCUBC6eMKYj4FWjNnjpNxK7FVFXcKmZq0JtPF708VYUkoog+YvLBKNBmM+wjQrxNX+rdLLrgFDT+whic/JInHrfnXkxtPzfd7ttYCd/Nx3ovrwGy5XWp93Gh7BTa+KPGROpIvpi6u9Zyj/OxMAs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686385977; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=vdOs5mAE/4Z92ZVApF6lsqm3ESAZtt4qbsdKymUSsy8=; b=gVBsM0+2FcnvG3bVzciwhnU06qjgwR4J4FOkyzxB5YzsCos/+tpCuNodm1gm9qvV/Wjjbvf9sU0IPcUZDq66ejBVwLsG8Mv69iXnoN/F8tIBk+/j2qa9p3ldTiiygCaf0GtiUU8bO/o6l4fDq6vS9FC00UhntqceeBN68BmIym8= 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=1686385977; 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=vdOs5mAE/4Z92ZVApF6lsqm3ESAZtt4qbsdKymUSsy8=; b=Dv2eB1Wtw+Fyp5d5/MP0TnVUpiWG6LUuYza4XoA/eq5ShXa4ujBXwpQ1ULLHRyV4 0R4TRWoVnLspsmhMCurtry5hTwJXsq/aLUAI35aHwdbeAteP44GfwSAExyBWDlAT0rF h+aYRMUofnaN+9sjHCihcnV4t6Tw4Q55LYPJ8NEE= 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 1686385976069223.85040573382184; Sat, 10 Jun 2023 01:32:56 -0700 (PDT) Message-ID: <6a64db9e-ac6c-c571-fb8b-ae3aa2da07b7@arinc9.com> Date: Sat, 10 Jun 2023 11:32:45 +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> <20230604124701.svt2r3aveyybajc3@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230604124701.svt2r3aveyybajc3@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-2.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,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 4.06.2023 15:47, Vladimir Oltean wrote: > On Sun, Jun 04, 2023 at 12:39:33PM +0300, Arınç ÜNAL wrote: >> 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. > > You can at the very least move it towards the beginning of the net-next patch > set, so that we can be sure it doesn't depend on the other refactoring work, > in case someone in the future makes a request for the patch to be backported > to stable. Maybe I should submit this and LLDP trapping to net? Currently, the MT7530 subdriver on the stable kernels treat LLDP frames and BPDUs as regular multicast frames, therefore flooding them to user ports, which is wrong. These patches could count as bug fixes. Arınç