From patchwork Sun Nov 1 13:42:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 315886 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=-6.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=no 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 1B851C2D0A3 for ; Sun, 1 Nov 2020 13:42:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C2F1D20791 for ; Sun, 1 Nov 2020 13:42:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726496AbgKANmv (ORCPT ); Sun, 1 Nov 2020 08:42:51 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35821 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbgKANmv (ORCPT ); Sun, 1 Nov 2020 08:42:51 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B7E435C00A7; Sun, 1 Nov 2020 08:42:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 01 Nov 2020 08:42:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=RU/6tjayiABAOOpR1 iQXLDzZYeMlpM00B/fhhQmUO6E=; b=L3LQC+sNCn4iRab7p+aL06CaJTkn3/MIR 9Fzm9wj6dRjJG5oKICvDLlzYX2AEOx+rzwqb6Ml6VYEO0JLJ0fzWeVqz1fmcWLFI FV23nVaau4GONu+sgK8KAQgjEctukEDdHCBbdBnFcYqzFqRsXN8Df3arnW+FE2vX TJ47Sa9bHBC659kWKH9sIMPhu5s9yDiYruj9Q1PaX1IbnakA50djjxpUG8GbekLW u2dFj5UXvaIZaagNlgcXibUonqfpMRtZ2Z5Kt3JRlQe+bTGRJMScm+h/pEyA9Y5g gGuutJTYaCgsQd8zetQh67TuinsGgVt0DbLt+10jxILyYHkplAO2g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrleelgdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhstghh rdhorhhgqeenucggtffrrghtthgvrhhnpeetveeghfevgffgffekueffuedvhfeuheehte ffieekgeehveefvdegledvffduhfenucfkphepkeegrddvvdelrdduheehrddukedvnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihguohhstg hhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: from shredder.mtl.com (igld-84-229-155-182.inter.net.il [84.229.155.182]) by mail.messagingengine.com (Postfix) with ESMTPA id CA6063064680; Sun, 1 Nov 2020 08:42:47 -0500 (EST) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, jiri@nvidia.com, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH net-next 0/2] mlxsw: spectrum: Prepare for XM implementation - LPM trees Date: Sun, 1 Nov 2020 15:42:13 +0200 Message-Id: <20201101134215.713708-1-idosch@idosch.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Jiri says: This is a preparation patchset for follow-up support of boards with extended mezzanine (XM), which are going to allow extended (scale-wise) router offload. XM requires a separate set of PRM registers to be used to configure LPM trees. Therefore, this patchset introduces operations that allow different implementations of tree configuration for legacy router offload and the XM router offload. Jiri Pirko (2): mlxsw: reg: Add XRALXX Registers mlxsw: spectrum_router: Introduce low-level ops and implement them for RALXX regs drivers/net/ethernet/mellanox/mlxsw/reg.h | 83 ++++++++++++ .../ethernet/mellanox/mlxsw/spectrum_router.c | 120 ++++++++++++------ .../ethernet/mellanox/mlxsw/spectrum_router.h | 11 ++ 3 files changed, 173 insertions(+), 41 deletions(-)