From patchwork Fri Jun 18 18:30:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 463720 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5748C48BDF for ; Fri, 18 Jun 2021 18:30:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A67160E09 for ; Fri, 18 Jun 2021 18:30:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234973AbhFRScs (ORCPT ); Fri, 18 Jun 2021 14:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231497AbhFRScm (ORCPT ); Fri, 18 Jun 2021 14:32:42 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 587DCC061574 for ; Fri, 18 Jun 2021 11:30:31 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id dm5so4862876ejc.9 for ; Fri, 18 Jun 2021 11:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NP39N2p1sOG3pP25GYklTOuIg8pyw1VNbgSyH17kW/g=; b=bXpcgua0SAm8D1MGVN5OXfbBE0e71dxW92LcCxi6BJpsnA0vM/933cziUI4gUWpHbw Kqs3IEAWHq9yRM5QZT8cjFNven/5tAP8RrV+DVxnuvisZf8nbhavuXC1nXQ0I/s8Wnkm s6BauyVhdavnxiLLTcVs+H2insvJrc9EAa7BYM5B5Rq1SZXsALc60iYTUxuj3HScjMnL AFC1N7W0nRBH4Y4n4uYHK9q8NJ0Dw0qrbgv2uIsp8yXthBAK5a6LxYPiiTT+0IZLXwxG q3jvi0EaSkySAHq31Ay8zGWET+tceZMOqM3N1dTEpKuvMMl7+LW1w8q6v7FXitnT0mbi nAZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NP39N2p1sOG3pP25GYklTOuIg8pyw1VNbgSyH17kW/g=; b=JthaOTZB8WHVHnjqhw5zhmvTaenyYyBLaK0GhMBpH/AiapBE8X9EG5+GPHLrRuaWnm j5ym6mTqB3WkU6d4jBe+qUdBzGdmQl3J8Q7Ly0ARf01pWRHgKzkLwWTa5d+I4u50A3tG AWooDmgxH7vUVQgJln7ZQ8Dz2lgmsgYtF8iUL0TbCFhETp7lcw4vZd7uXNzy8JpIJ6a/ intNrWvpPxMFUx3lE26Bv5DPt7sGOY6TxOgnSujrZgziY0+bqSEaKIHWVpT0g+tXRi8i RxzGBby6W5ftYWoXGRhmZFJtUZvkQCUGiatXsXXq8QuA/Pd23zSWi7nGP+sX8KevHTFP Xqlg== X-Gm-Message-State: AOAM533tQQUarWdVQs49zpu9uddps28+pu1cD3USUDV0oRkq7Zg67PVs QwFSqajNDMybs4fUKq77mTI= X-Google-Smtp-Source: ABdhPJzxtQ91LmZItgvJrzivGpHKiyYyY2rxoTiJ0QLHtwA3XOvwLwrlUgzfdNo8IyggrDUzYoXxCQ== X-Received: by 2002:a17:907:990f:: with SMTP id ka15mr12494279ejc.132.1624041029873; Fri, 18 Jun 2021 11:30:29 -0700 (PDT) Received: from localhost.localdomain ([188.26.224.68]) by smtp.gmail.com with ESMTPSA id s11sm6071988edd.65.2021.06.18.11.30.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 11:30:29 -0700 (PDT) From: Vladimir Oltean To: Jakub Kicinski , "David S. Miller" , netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Vivien Didelot , Vladimir Oltean Subject: [PATCH net-next 0/6] Improvement for DSA cross-chip setups Date: Fri, 18 Jun 2021 21:30:11 +0300 Message-Id: <20210618183017.3340769-1-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Vladimir Oltean This series improves some aspects in multi-switch DSA tree topologies: - better device tree validation - better handling of MTU changes - better handling of multicast addresses - removal of some unused code Vladimir Oltean (6): net: dsa: assert uniqueness of dsa,member properties net: dsa: export the dsa_port_is_{user,cpu,dsa} helpers net: dsa: execute dsa_switch_mdb_add only for routing port in cross-chip topologies net: dsa: calculate the largest_mtu across all ports in the tree net: dsa: targeted MTU notifiers should only match on one port net: dsa: remove cross-chip support from the MRP notifiers include/net/dsa.h | 15 ++++++++ net/dsa/dsa2.c | 22 ++++-------- net/dsa/dsa_priv.h | 4 +-- net/dsa/port.c | 4 +-- net/dsa/slave.c | 22 ++++++------ net/dsa/switch.c | 87 ++++++++-------------------------------------- 6 files changed, 53 insertions(+), 101 deletions(-) Reviewed-by: Florian Fainelli Reviewed-by: Florian Fainelli Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn