Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1987145rwd; Thu, 15 Jun 2023 19:47:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ62cJiuka5v8QQXUqQNMOPYKfLUwaNJalnkQBuLQTp6MZvDaWUDYZz8a3n4Ca75wJxYO9mz X-Received: by 2002:a92:d452:0:b0:33d:11cd:c7b2 with SMTP id r18-20020a92d452000000b0033d11cdc7b2mr1056936ilm.24.1686883640590; Thu, 15 Jun 2023 19:47:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686883640; cv=pass; d=google.com; s=arc-20160816; b=u7lSNIM1ayExCnkLVMIARl5BB4k9uJWSfE26F7sJXzO+ei69wUwljRiYBr/McHog+s TlmkZ8TpCSBBNrkT8XiS6oWWdRDyAwate9FO33LKlAEApiRI9Z92cIOd0YBBoEdFdQEZ ieb5KEuPmwLsySba26RJRTLg1CN5e/P8MZ9nt3+yJ8SNrDLoRYqqbzGTRiX//Iwwvert nNb5c1JZi6kRcgcUB1AOHf/bduKKCIY+ydUuoUDLEZBH+O03tmd5oFbb24xoRpQec5nO 0+oEJuXlFWNM/ew/ebGa+X9lI/2LsGEerQaP3T1B/iV5Yy0PXlVESnic9SJJ3wQ8VmFf dHsg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=0Z05yeYX7+OqP7ZF+oetG3YrbAARu6gYGPG6HQXvMuU=; b=Tr52q12/NgPrA9alAPH4YqlX8aQSXdJz1Nb3Rz69pRFj08RKhUJNfMsYFv5JJBL5gF r11aiQaI5ztYHgJ4zGYZLGQfobky1hos4L2eLSSk67J/3uK2rEZtLk27z3EgrE/krqXl YIg+7qYEwpdrwglDm0ZNa/8djJgJiDn/Ns1n/rRCyakcpZkl1NRjimYN7CJYEV6Pl+cO 1ZuYf4NY7WA8beU8Z2LBxYAFXDzoQF8yNt2YkU9tq/OrhAB/a195LAekYtlTCE0DBNU9 7QbTgKKW6qoDiFe04fwdrfp9IdjpspgiMSQ5Z47eXZxUWtr11O7OeY3MU4NcjNdr8kJI dd4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=ZRU2sMFt; 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 y17-20020a63de51000000b00542918676f4si4561024pgi.381.2023.06.15.19.47.07; Thu, 15 Jun 2023 19:47: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=ZRU2sMFt; 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 S229818AbjFPCZE (ORCPT + 99 others); Thu, 15 Jun 2023 22:25:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjFPCYt (ORCPT ); Thu, 15 Jun 2023 22:24:49 -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 8E753189; Thu, 15 Jun 2023 19:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686882253; cv=none; d=zohomail.com; s=zohoarc; b=ThTbYxS+YkPBZVOICscx8Cx48gU+WWhlvd4G/Jpf+XvRHhA/9If8msSniYmRei6vBuumT1DOOZ0fqrNooYD1Yu2rSu+ttQtnXR3RPLPG3SoywGynOgE8sIjpZoHHbYFW54zY/Diljoq2PwxDVeUTTewXL9afGNd6vaKKO/2Z+/A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686882253; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=0Z05yeYX7+OqP7ZF+oetG3YrbAARu6gYGPG6HQXvMuU=; b=RE/XsakSLfsKr0ZnKp/J0/orrwAqFf9HMVkmYp2DW9eyS1ChIqi1gFXmaOJROMPUzEP7qZM3G8pdq92z/tmVwP/hcXcmC9cvX/hgxxFRQbxadx6vg0nQeIR0bCTlhWZTYicUwBgOIvwkJ8/WZkkhzXm4fOK4Jh9g4AeBs61Gin4= 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=1686882253; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:From:From:To:To:Cc:Cc:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=0Z05yeYX7+OqP7ZF+oetG3YrbAARu6gYGPG6HQXvMuU=; b=ZRU2sMFtFpn2AXpGqdg2/rCSawjW15wo42Z/MjD3EFNCGvitJ7+cdlEKdwunRi1q IpKT53KajkvDaXkO5uaK3Qhh+BdRR3rwTG84dsJL5oA2FSxSBKqW4/162II1tBowpZl S+/p6dK6p8nbm7PcFU02jPdpCiwubpL+bFUfvcOQ= Received: from [192.168.68.166] (athedsl-404045.home.otenet.gr [79.131.130.75]) by mx.zohomail.com with SMTPS id 168688225180832.64444677104484; Thu, 15 Jun 2023 19:24:11 -0700 (PDT) Message-ID: Date: Fri, 16 Jun 2023 05:24:05 +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 v4 5/7] net: dsa: mt7530: fix handling of LLDP frames Content-Language: en-US From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= To: Bartel Eerdekens , "Russell King (Oracle)" Cc: 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 , 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 References: <20230612075945.16330-1-arinc.unal@arinc9.com> <20230612075945.16330-6-arinc.unal@arinc9.com> <0d57c035-b6da-08be-8f47-0afb5ddfec58@arinc9.com> In-Reply-To: <0d57c035-b6da-08be-8f47-0afb5ddfec58@arinc9.com> 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 16.06.2023 04:53, Arınç ÜNAL wrote: > On 15.06.2023 15:45, Bartel Eerdekens wrote: >> On Wed, Jun 14, 2023 at 6:42 PM Russell King (Oracle) >> wrote: >>> >>> 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. >> >> Let me chime in on this one, as mentioned by Arinç, I am one of the >> requesters of having this patch (and patch 4). >> Patch 4 enables the trapping of BPDU's to the CPU, being STP (Spanning >> Tree) frames. Maybe that should be mentioned, to be clear. > > Sure, I can quote the first sentence on the wikipedia page "Bridge > protocol data unit". I changed my mind. There's no reason to describe BPDUs. The familiar reader will know, the unfamiliar reader should just look it up. Like Vladimir said, context helps but at the same time, less is more. Arınç