From patchwork Mon Jun 27 20:13:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 12897102 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 240F6C43334 for ; Mon, 27 Jun 2022 20:09:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240595AbiF0UJw (ORCPT ); Mon, 27 Jun 2022 16:09:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238117AbiF0UJw (ORCPT ); Mon, 27 Jun 2022 16:09:52 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8796E1EEEF; Mon, 27 Jun 2022 13:09:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1656360591; x=1687896591; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9Y+WRv+3bNc+qxaeVc48eNX/Xc1VlLk0PtZO4CV4sAs=; b=t7PaHcTd0EiaAQ8cJ7bksYRzJ1nMefwMs5pCvIlKgl1VRHLfioJqxZm2 a9ew6GzR34QW9etABvFpXE9BFW+4lByi0UJa6kZXMz0Tfj8CjiQRxyA12 GQ8e9EqGHd+K/3R94DNk8HauGAz6HtR/Ie7JTMDN7vONiLgeEVzq8CL6B mIv9NqZF7L3+SBbWUFgU8Tr7rwunVTU6WGra+nGvGN6oJH8/6IsuXimRA zLcLIR2qbacAuBDNmqW8vclCbQAEIOuFIy0h9+y/xjZPAtkiUiOG/dsjC GOkc+qNqnw0xHpAFmtv2F0eY50FC4f42LeMx2fTZKtfmCBY4uH1oRL+nT Q==; X-IronPort-AV: E=Sophos;i="5.92,227,1650956400"; d="scan'208";a="162277514" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 27 Jun 2022 13:09:50 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 27 Jun 2022 13:09:47 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 27 Jun 2022 13:09:44 -0700 From: Horatiu Vultur To: , CC: , , , , , Horatiu Vultur Subject: [PATCH net-next v2 0/7] net: lan966x: Add lag support Date: Mon, 27 Jun 2022 22:13:23 +0200 Message-ID: <20220627201330.45219-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add lag support for lan966x. First 4 patches don't do any changes to the current behaviour, they just prepare for lag support. While the rest is to add the lag support. v1->v2: - fix the LAG PGIDs when ports go down, in this way is not needed anymore the last patch of the series. Horatiu Vultur (7): net: lan966x: Add reqisters used to configure lag interfaces net: lan966x: Split lan966x_fdb_event_work net: lan966x: Expose lan966x_switchdev_nb and lan966x_switchdev_blocking_nb net: lan966x: Extend lan966x_foreign_bridging_check net: lan966x: Add lag support for lan966x. net: lan966x: Extend FDB to support also lag net: lan966x: Extend MAC to support also lag interfaces. .../net/ethernet/microchip/lan966x/Makefile | 2 +- .../ethernet/microchip/lan966x/lan966x_fdb.c | 153 ++++++--- .../ethernet/microchip/lan966x/lan966x_lag.c | 322 ++++++++++++++++++ .../ethernet/microchip/lan966x/lan966x_mac.c | 66 +++- .../ethernet/microchip/lan966x/lan966x_main.h | 41 +++ .../ethernet/microchip/lan966x/lan966x_regs.h | 45 +++ .../microchip/lan966x/lan966x_switchdev.c | 115 +++++-- 7 files changed, 654 insertions(+), 90 deletions(-) create mode 100644 drivers/net/ethernet/microchip/lan966x/lan966x_lag.c