Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6293712rwd; Mon, 19 Jun 2023 05:25:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qyhG2oNGeugCPiefxM+PYVXGsbJ2uRDMBTJJBs4RqgZ5TvyDVUE9F4EywF0Axrt/31rep X-Received: by 2002:a92:d186:0:b0:335:25e7:1897 with SMTP id z6-20020a92d186000000b0033525e71897mr7118812ilz.32.1687177526075; Mon, 19 Jun 2023 05:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687177526; cv=none; d=google.com; s=arc-20160816; b=ItPYSZwSMAszJXt5akVj5YlXSzTJoqcfpFbL9W8MqX7MIZekxbAzDISK56iDjs8X2Z WjUPLUpGtewUFMvWtGIw2dNQfVLnMhK9jlnD7DyMEF/RJTm4kXq60ex8UDuFrN9dzwsq qtJRLbtPqoczqUbM3iblAaxWSl9DSVBJxRqb9whZLfzblF03p9hQXTezaOvy6STNXJGc AowmCUlnpYz8xx2X8TOBbZsYdY51AXLx1/nljP/dBN4SASKdx0RvFRmZcVbNITv4QYRv m6Afj833ELZq8RoioKli9X6GTW4rWCz0wjHp6Tkq9eD+cIsyEAmQhbhUyqB/LKEQH6hP h6vw== 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=vOF1HQ65PMcVDah81Cgs1ZApX9tkkoWLvArF198/E+k=; b=O/Umd+hwAo/o2c7gyNPZA3Uye6MBKvjNthIIfhkuPwUu0EIYnmNLeMLTRn4SjSp6Eq 1J71MdZ88Mu7wd2RLy/4eX2eyWu4OH4yHi8Tr7VBY50gUU3zyysE1zdyRdLDJCCy+ygS X+6DdQFbl158WQLg84lXv+1r7tTf8COlSeg/VdZFllf2taFXRtbdc/xnRPUWMYh2tysH VxCSvQvq5uVelX0DZ++Apyf3tCOKUcWP2QiqbXQ7RlK8cMevD+7US1iVovhnE5EJL7+U KhkqT4p+69X9RjO2Um8LBINzLyDhvbmVX6P8A+a5RwSl7hHdQYCqfmahPLnM+J3o9uOa W7Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Wfq+Avrz; 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 s13-20020a63924d000000b0052c688e6608si6281527pgn.505.2023.06.19.05.25.11; Mon, 19 Jun 2023 05:25:26 -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=Wfq+Avrz; 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 S230267AbjFSL4F (ORCPT + 99 others); Mon, 19 Jun 2023 07:56:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbjFSL4E (ORCPT ); Mon, 19 Jun 2023 07:56:04 -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 2BB1F102; Mon, 19 Jun 2023 04:56:03 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-988b75d8b28so109133266b.3; Mon, 19 Jun 2023 04:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687175761; x=1689767761; 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=vOF1HQ65PMcVDah81Cgs1ZApX9tkkoWLvArF198/E+k=; b=Wfq+AvrzBdKN9WTKX0+xbZ1aUARe6smA6r9p9lttA+/LoMw1qQoa6jvVwu5LKTzhp0 J2ZX6/EBgRuq36n2Nrx0aPKjl5UujfmFDKIbsdK72iRcleopzeR1iPH6ckGQXLoddfyo 3LY9RkbvuxK6zG8et1VLY/1KaKEhKN5hiEWKn0us0jrrqji4EIjKhuaz8EF8vf3Zp5xj Xi099ai3YrwMI/98sv2yBmHicoj1atC8iqzBOyR5UwYD5POq2/58mZPHNasyXOx86J1c GeXKComhurH8mybVHOt2niIfTXLSEWFIJc4RG+XRmD0YJ49ZJ7OXYBtQrN7ve1FMXQdT pnqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687175761; x=1689767761; 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=vOF1HQ65PMcVDah81Cgs1ZApX9tkkoWLvArF198/E+k=; b=RZl1ODP0HOa3HeODsZ/4oTKbOZ0lS11OgYKAfmNU6NpK86RinZLTw4SDbTp7Tc/BH9 vvsi8S3ZrDzqd/4xpLer+4YZkXGT+qvK8Lw7Bgnao4N6mHF3NyiByUK70X/OMbNqoM2q aHXGZSm9m4lowWGomHbB6AurZAPR9lrM+qhHOzdyAWgSyp6L8UAagQMFOJwtSGxxLiQc IGwrWPAz0gOxXYCesfAs6Q7FOOUfDL2X47IVelmoAGXXjNzNeuBbLJJbGr2vpGl4v5yt sXhkXtvoDcYonyhpVqMCaCxw21cddzmYOUmdL/MR+kgOD7vxmI45bK9Yl70Q0EUk2sQC DMEg== X-Gm-Message-State: AC+VfDyM+9VEmOW7ZJfVSYI9DM7J1TC6f0zzgrnj8aVUPCQFMWFDVsuB IR3/hAe3eZI75YcrKIyogaw= X-Received: by 2002:a17:907:7f12:b0:988:66d9:438 with SMTP id qf18-20020a1709077f1200b0098866d90438mr3653609ejc.51.1687175761392; Mon, 19 Jun 2023 04:56:01 -0700 (PDT) Received: from skbuf ([188.25.159.134]) by smtp.gmail.com with ESMTPSA id t25-20020a170906269900b00982983a6a34sm6281529ejc.34.2023.06.19.04.55.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 04:56:01 -0700 (PDT) Date: Mon, 19 Jun 2023 14:55:58 +0300 From: Vladimir Oltean To: arinc9.unal@gmail.com Cc: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , 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: <20230619115558.vqh6oedosxunwy3l@skbuf> 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> 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 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: Vladimir Oltean