Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6590952rwd; Mon, 19 Jun 2023 09:17:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4r7oXmpw6Xgu9qDDLvQTBHouhcs3CjHhJzQEZgu8JovaQ0aFxYqMWA1mARnU89N1Ny9wEb X-Received: by 2002:a05:6808:1828:b0:39a:bf70:e421 with SMTP id bh40-20020a056808182800b0039abf70e421mr8755850oib.58.1687191473907; Mon, 19 Jun 2023 09:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687191473; cv=none; d=google.com; s=arc-20160816; b=G8qy8Xwb8CIWDyPTQpBfviq8mYC3p10lqClZlQd+k6dKp+jyvgMZB+J86O3y8RrGKx l/PExSaKWz5DnwQLsfvmegwI4Z52I0oP18ud2FyBVDophGWBTt8Xr3aD5D1r8VdmjgpJ d2my/Fmz5QZ+Eobx0FSqMZggFb84tmKh7UZhueYyq9falcys267VLfqyMhncyZBRInQj 5RWYthQhMYMqk2HAtXJ/xf1PDDK6ETTE2q35owSWbnoJZvu+65s3lbTbpbu3NEpAwXcG fYmdjMg7JwVVX/JtF6y8QsHqEJj1O0lCJIaubGVJQHGbwOJV8wH735+ImwY373DLoIqP /zLw== ARC-Message-Signature: i=1; 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=0JT52z/QSGQQNpxiH41WXj61FqSaKcbLdlhQV31bTV0=; b=RGZGAGl18Z3ayLnGB05hfznmQCdTUC+P0Agi9Hg7kM6yJsDRgGM4MwBLbNAjgApmcI aR3y9rb/sIINm3XhVGs8v6oDT0f0ZBGfPJKIr0KqOlGWx4VXwunL6KvOqzq13ZY1Z5Jo JkETGMQKbR+a/HUH5hBj6OAU9g9L2kEofEtoofQwkD2+XnrAGGgmrzFWGx/Do1DIj4Qe +Vo4zvC9/EM+KgL78/PgPXB3bKNNzCyON+nRjGczZIebzGH334wgpTJWmLPS7lOnR5CD ECRGAO4rMx9iiAGMOirYdmA2PUavzc/gpISTwIdpO0majyU8/xDikrdnFuY3QoheHYWb dz1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=dUJrR3Lc; 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 p12-20020a17090a348c00b0024bc03cfa95si7564822pjb.156.2023.06.19.09.17.39; Mon, 19 Jun 2023 09:17:53 -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=dUJrR3Lc; 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 S232114AbjFSQDR (ORCPT + 99 others); Mon, 19 Jun 2023 12:03:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbjFSQDM (ORCPT ); Mon, 19 Jun 2023 12:03:12 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A2A71AB; Mon, 19 Jun 2023 09:03:11 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f8fe9dc27aso23359895e9.3; Mon, 19 Jun 2023 09:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687190589; x=1689782589; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0JT52z/QSGQQNpxiH41WXj61FqSaKcbLdlhQV31bTV0=; b=dUJrR3LckPsF7iVBaxtvI9erHbfGaO7p41VJqcPAM0ZwOmjB+BYY5zucEa3FEBftyL NXCKt4m8hqmV+AL3vhVTflcZxIYDqKNs8AaSIWIkACP3pL7TGBp6TsTGFU/3WoHQh5H7 0Wm2gGR78NFMM4PSRO+XaLURyfyKXX/tBJnMhOLxdRs3jmOxGn2s2lri6RVrbFCSzp07 LzDqm3Z8ZwTwmhfrOzwxHpMT9IJRe1lXrKChwAVRW9Ixn4AtPkrN7MA48wCE8jWrTD1x +5o0KnfP8DgsFXzwxgs77bqGqwgVxy1TK2NgXWCmF8XVSgvAL3fKTQ7bQViYMB5ub9Aj hZ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687190589; x=1689782589; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0JT52z/QSGQQNpxiH41WXj61FqSaKcbLdlhQV31bTV0=; b=ld8WHK7Wy7RjLuZW6p8IQ/kxwlRn+w8iPbAO1sUIV/GKQP/cZq+Iw6xoz21CxjPW49 rP65J/YSvMxv4HRdBcdAzOUB1AGOxyjBE5ThdCn7aPVOG35cAjT4pI+l00n4OMhcyg48 /kKe1isvjf8tm3yZE72AtbBxdhy+Cjg7a0bHjdeuzUoFeBmIm2G9T6b2KZwpRNn0THVg T7osWevq1tQjfu+qpxnnz6EttKBC3GLGnKHcSWi3CQT0rHW9JvW7UsyKEjVtKajJJYOU dx8HX6ZcXkd9I7996pB1nadS+bARJWZPMtx8aCIJox9IKJPb4j6o2/i88DRdRy0UjrRX IKag== X-Gm-Message-State: AC+VfDxVXZXfSXkEN4HP01MAmyst9bSD2qpAZx3+s8yl0hntcqthUsDT zfNH6KuEjULaGfsjnE81DvA= X-Received: by 2002:a1c:4b05:0:b0:3f8:f76e:7160 with SMTP id y5-20020a1c4b05000000b003f8f76e7160mr6243161wma.16.1687190589255; Mon, 19 Jun 2023 09:03:09 -0700 (PDT) Received: from [10.178.67.29] ([192.19.248.250]) by smtp.gmail.com with ESMTPSA id n13-20020a5d67cd000000b003111fd2e33dsm10037519wrw.30.2023.06.19.09.03.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jun 2023 09:03:08 -0700 (PDT) Message-ID: Date: Mon, 19 Jun 2023 17:03:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH net v6 3/6] net: dsa: mt7530: fix handling of BPDUs on MT7530 switch Content-Language: en-US To: arinc9.unal@gmail.com, =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King Cc: 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 References: <20230617062649.28444-1-arinc.unal@arinc9.com> <20230617062649.28444-4-arinc.unal@arinc9.com> From: Florian Fainelli In-Reply-To: <20230617062649.28444-4-arinc.unal@arinc9.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, 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 6/17/2023 7:26 AM, 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: Florian Fainelli -- Florian