Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1998605rwd; Thu, 15 Jun 2023 20:01:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7gWyYmqEi8W+J5A8WaGrJ0IN2Von9YRBNyI2AdYxTnB6fHSab84i77k7OfVNkmCQMVMiN6 X-Received: by 2002:a05:620a:2589:b0:75b:23a0:d9e1 with SMTP id x9-20020a05620a258900b0075b23a0d9e1mr466368qko.55.1686884505624; Thu, 15 Jun 2023 20:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686884505; cv=none; d=google.com; s=arc-20160816; b=vvwLT/ifk786yXUDWVMoYRsVXNe98rdR4T7clwN4xK0MbR5jqoNXcdGjTh7bJGmZNE Dl9N44bYwHJe2riSv0IkavVe6aixV34GZO9Nkj9LiOqY+Q/DLWqao6Q0jCC5qixFG5zQ hl8CA79nqYw45tQkNtucRCmB3eiQkJJWw9fuvJLAH+O2/q4VOrddvmBDqPcNc2950yIL hO/YxP+JldWeISL7aRcRgFxahV5dcN5hIOXWzS7cFQ8y2Oa120F9nhJwx+6vc1Thi3XW TdTkq6BuJHEUvGm2Q3UnoF/n4OMVaESr1RKT/gdnkR720VPatPi7p+fO8SIX2hMjPiWI ZODQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5kFgu8FWM4Gf6hm5nPlre0K9PgbWZtv1AsAuuIyVNe4=; b=oZy8ihDQdVnJZ+tJE0vUKDKdVhl+tNdMcNWw34Wv1dHi8SvetouykgJwe+qNRTF8Qc O/VojbeQUzLd4IQWd7RzXWEOyREEtPDQHXlQXeHR0jiFZHSr0OjmFzyIkr6r8tTA0p+9 4WL3nL5wxwjBJ8w8veXO9OCJcWp98sMi637TYiHJUWsd1xTAUD1bjPXCAKRNrSZEyatH tc9kbzX83ET8GAijRvqZmHQ2Kjz1YhbdfQYsUFvYrOKSdhLgitBn/0xzGFLCzYI8Hfcz o4qZvqkFgYZEtxrUHKmknS1Qmaah4+An3xi4oMBLYPXZWvCcJ/hJtCOXqilU9wFNPqAc Cc6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=q5+Utgok; 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 a9-20020aa78e89000000b00660d2553147si2091166pfr.212.2023.06.15.20.01.27; Thu, 15 Jun 2023 20:01:45 -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=q5+Utgok; 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 S232771AbjFPCxf (ORCPT + 99 others); Thu, 15 Jun 2023 22:53:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjFPCxe (ORCPT ); Thu, 15 Jun 2023 22:53:34 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 641E92953; Thu, 15 Jun 2023 19:53:33 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f62cf9755eso177154e87.1; Thu, 15 Jun 2023 19:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686884011; x=1689476011; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5kFgu8FWM4Gf6hm5nPlre0K9PgbWZtv1AsAuuIyVNe4=; b=q5+Utgokxvif9/N22sEUcN6nL79Azu+IUrd+5OfrEL/EpRPDSK3xLEYFdQUT2KcCk3 mu5lXN3UZjYK3Wt9yOW7uVwrO3CiO1QOXIkQBqfT+J5WoM0fR1VXZkHyECQsXjhN0mlU su2NJPbsc37uBxuNXdtXntu+UjngUBGhEn4ZDs00XgQL8yqnSt3ApsSkJ6gKYe1DWAzQ V5SsnLoymI1vET1P4g6dQ0ceu/l6KmUvcwRto8dsXJoeMdp+M37wM7aPDZGJKsVHYMF6 FkPY8BRS3HkcnDoBTheWzKFBrdlRihUmdD7pDMhUahCwmVEN7H4yv0CTSV+DDxNNpFVV WLQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686884011; x=1689476011; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5kFgu8FWM4Gf6hm5nPlre0K9PgbWZtv1AsAuuIyVNe4=; b=XWA559beib/bP+c6kUXcKb1HN3n0RjO187GNSidvr2qt/C5Z5nkJDQMqtfxDMgz+hw ypSuGq3qpx4X11LzE0ryJvTuTp8g9nmDmf2dESnKP4F0JajxVgGZRJgZV0dRiFqolXMQ vkN7gDdPMBw8J/WUgfk8/Qi5yoj9UudyozO1vqN2r+li10dRNxoFByv0iJFm43mjbumh px6X5NOuhdvKjoK5Jnzo++1u4dHtH9LxTjHPC/lrcmJccvfSz+Y8vOXWB4r3rxDq1FWB RylK2s3NPZhFDAPIyjQQAnf8YyOwPm8Ejgk4zkT6Z0Gfr7AtkL1eJSM9q/PHQRD3iwQO Ogrw== X-Gm-Message-State: AC+VfDyq1Up+z9YjQLy9taz0IvBhtnvBsE5AgTOgUz57i4pOodlRjjY1 ZDNxNM7uTPB/KtZSlcudKkM= X-Received: by 2002:a05:6512:328c:b0:4f3:b49b:e246 with SMTP id p12-20020a056512328c00b004f3b49be246mr323458lfe.5.1686884011259; Thu, 15 Jun 2023 19:53:31 -0700 (PDT) Received: from arinc9-Xeront.. (athedsl-404045.home.otenet.gr. [79.131.130.75]) by smtp.gmail.com with ESMTPSA id v15-20020a1cf70f000000b003f8d770e935sm890328wmh.0.2023.06.15.19.53.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 19:53:30 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , 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 , Russell King Cc: Landen Chao , 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: [PATCH net v5 0/6] net: dsa: mt7530: fix multiple CPU ports, BPDU and LLDP handling Date: Fri, 16 Jun 2023 05:53:21 +0300 Message-Id: <20230616025327.12652-1-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Hi. This patch series fixes hopefully all issues regarding multiple CPU ports and the handling of LLDP frames and BPDUs. I am adding me as a maintainer, I've got some code improvements on the way. I will keep an eye on this driver and the patches submitted for it in the future. Arınç v5: - Change the comment in the diff on the first patch with Russell's words. - Change the patch log of the first patch to state that the patch is just preparatory work for change "net: dsa: introduce preferred_default_local_cpu_port and use on MT7530" and not a fix to an existing problem on the code base. - Remove the "net: dsa: mt7530: fix trapping frames with multiple CPU ports on MT7530" patch. It fixes a theoretical issue, therefore it is net-next material. - Remove unnecessary information from the patch logs. Remove the enum renaming change. - Strengthen the point of the "net: dsa: introduce preferred_default_local_cpu_port and use on MT7530" patch. v4: Make the patch logs and my comments in the code easier to understand. v3: Fix the from header on the patches. Write a cover letter. v2: Add patches to fix the handling of LLDP frames and BPDUs. Arınç ÜNAL (6): net: dsa: mt7530: set all CPU ports in MT7531_CPU_PMAP net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch net: dsa: mt7530: fix handling of BPDUs on MT7530 switch net: dsa: mt7530: fix handling of LLDP frames net: dsa: introduce preferred_default_local_cpu_port and use on MT7530 MAINTAINERS: add me as maintainer of MEDIATEK SWITCH DRIVER MAINTAINERS | 5 +++-- drivers/net/dsa/mt7530.c | 44 +++++++++++++++++++++++++++++++++++-------- drivers/net/dsa/mt7530.h | 6 ++++++ include/net/dsa.h | 8 ++++++++ net/dsa/dsa.c | 24 ++++++++++++++++++++++- 5 files changed, 76 insertions(+), 11 deletions(-)