Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/815336/?format=api
{ "id": 815336, "url": "http://patchwork.ozlabs.org/api/patches/815336/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170919080020.5870-11-jiri@resnulli.us/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170919080020.5870-11-jiri@resnulli.us>", "list_archive_url": null, "date": "2017-09-19T08:00:17", "name": "[net-next,10/13] mlxsw: reg: Add Router Rules Copy Register", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "567f8343ffffdbf119077f4888e13b0cce8f289f", "submitter": { "id": 15321, "url": "http://patchwork.ozlabs.org/api/people/15321/?format=api", "name": "Jiri Pirko", "email": "jiri@resnulli.us" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170919080020.5870-11-jiri@resnulli.us/mbox/", "series": [ { "id": 3798, "url": "http://patchwork.ozlabs.org/api/series/3798/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=3798", "date": "2017-09-19T08:00:07", "name": "mlxsw: Prepare for multicast router offload", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/3798/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/815336/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/815336/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=resnulli-us.20150623.gappssmtp.com\n\theader.i=@resnulli-us.20150623.gappssmtp.com\n\theader.b=\"b5PE1elx\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xxFfv5qlNz9s7M\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 19 Sep 2017 18:00:39 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751652AbdISIAi (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 19 Sep 2017 04:00:38 -0400", "from mail-wr0-f194.google.com ([209.85.128.194]:35693 \"EHLO\n\tmail-wr0-f194.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751622AbdISIAc (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 19 Sep 2017 04:00:32 -0400", "by mail-wr0-f194.google.com with SMTP id n64so1712901wrb.2\n\tfor <netdev@vger.kernel.org>; Tue, 19 Sep 2017 01:00:31 -0700 (PDT)", "from localhost (ip-89-177-125-82.net.upcbroadband.cz.\n\t[89.177.125.82]) by smtp.gmail.com with ESMTPSA id\n\tu1sm7924852wrd.95.2017.09.19.01.00.30\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tTue, 19 Sep 2017 01:00:30 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=resnulli-us.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=Qgi3jMj+gQmlLwoDqorI4DMM9Q0pos5EVEFNM9vbiE8=;\n\tb=b5PE1elxiUGBc3AhmxsnxjOpm8haE72FCDrA0Mw9TYqFjtWPUaL6xalGnFzAJfSJP1\n\tu6xTBgSiW+S8ZLf8CBuQyG31ZpS7GNzzsCPupyY3jPb10YwHzUcuyWg9gYMHynTUyZ1D\n\tIHkjIpvK96D3rRxFdOb36G2Yl29YO67DfL/wsUHAlqTcJd7eL19kV3EVXQ3XvIu0eUVm\n\taI3k+v6Cxb2femMmwT9UQxRF6wtasBTEBJXW0m/J/LqZA0mVM5pe+z4MFsFuF5XiXgD+\n\tw9AIUR837bS9d5P6wziQ+QrcCHwAEUUgPhbHuYZAm30dx/qS79hm81GUqH1+yGbiEfqt\n\tJGSA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=Qgi3jMj+gQmlLwoDqorI4DMM9Q0pos5EVEFNM9vbiE8=;\n\tb=qIS5zPoOYiYjloPmJWAp9qxYuM0Efr43iqnZmIkpRZfLYHDR2G108qXx7J839b639o\n\tOa9SAkrBy9EPMq/1f0DA7x0K42a8dG5pCFfLCDMi11QJ2TlKmt/cRlgjuv5XpwATPBTC\n\t6e8clmBpoKIii7y/6EfpS1y6odISp4N4d0JjkCwL5Pdm14BxI8sjO7PorDgnFq4D7PL0\n\tXr3hbrw7VgeciTpcgr4g4e32HT51CmyK+qGlzq/V30HKRrtA1kGBJS46/1V/sNdhepv6\n\tILN16rYfuwsk3rqDICJyxSQTAEhlZTDLhSpz1pkX5c9g82F2UD0pd4w4KrD5XQX1NdK9\n\thyaw==", "X-Gm-Message-State": "AHPjjUhHv5jObQ0WIY9bniOoTbsmyEJ7vJ0lESCjbZvoDefC4X37NiAm\n\t3M00rL963MP8VRGgFGPw+pmU9Syi", "X-Google-Smtp-Source": "AOwi7QDPhesUcHaxGsSo6EIQhMCqdrc7d8mJkhDizQa6RjAZQ1u/Fw1XnE1VPKGP8ADpatkvwTvjZw==", "X-Received": "by 10.223.160.23 with SMTP id k23mr584742wrk.212.1505808030928; \n\tTue, 19 Sep 2017 01:00:30 -0700 (PDT)", "From": "Jiri Pirko <jiri@resnulli.us>", "To": "netdev@vger.kernel.org", "Cc": "davem@davemloft.net, yotamg@mellanox.com, idosch@mellanox.com,\n\tmlxsw@mellanox.com", "Subject": "[patch net-next 10/13] mlxsw: reg: Add Router Rules Copy Register", "Date": "Tue, 19 Sep 2017 10:00:17 +0200", "Message-Id": "<20170919080020.5870-11-jiri@resnulli.us>", "X-Mailer": "git-send-email 2.9.5", "In-Reply-To": "<20170919080020.5870-1-jiri@resnulli.us>", "References": "<20170919080020.5870-1-jiri@resnulli.us>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "From: Yotam Gigi <yotamg@mellanox.com>\n\nThe RRCR register is used for copying and moving TCAM multicast routes\nfrom different offsets. It will be used to allow routes relocation for\nparman ops as part of the multicast router offloading logic.\n\nSigned-off-by: Yotam Gigi <yotamg@mellanox.com>\nReviewed-by: Ido Schimmel <idosch@mellanox.com>\nSigned-off-by: Jiri Pirko <jiri@mellanox.com>\n---\n drivers/net/ethernet/mellanox/mlxsw/reg.h | 60 +++++++++++++++++++++++++++++++\n 1 file changed, 60 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h\nindex 046525e..31d120a 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/reg.h\n+++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h\n@@ -4680,6 +4680,65 @@ static inline void mlxsw_reg_ricnt_pack(char *payload, u32 index,\n \t\t\t\t\t MLXSW_REG_RICNT_COUNTER_SET_TYPE_BASIC);\n }\n \n+/* RRCR - Router Rules Copy Register Layout\n+ * ----------------------------------------\n+ * This register is used for moving and copying route entry rules.\n+ */\n+#define MLXSW_REG_RRCR_ID 0x800F\n+#define MLXSW_REG_RRCR_LEN 0x24\n+\n+MLXSW_REG_DEFINE(rrcr, MLXSW_REG_RRCR_ID, MLXSW_REG_RRCR_LEN);\n+\n+enum mlxsw_reg_rrcr_op {\n+\t/* Move rules */\n+\tMLXSW_REG_RRCR_OP_MOVE,\n+\t/* Copy rules */\n+\tMLXSW_REG_RRCR_OP_COPY,\n+};\n+\n+/* reg_rrcr_op\n+ * Access: WO\n+ */\n+MLXSW_ITEM32(reg, rrcr, op, 0x00, 28, 4);\n+\n+/* reg_rrcr_offset\n+ * Offset within the region from which to copy/move.\n+ * Access: Index\n+ */\n+MLXSW_ITEM32(reg, rrcr, offset, 0x00, 0, 16);\n+\n+/* reg_rrcr_size\n+ * The number of rules to copy/move.\n+ * Access: WO\n+ */\n+MLXSW_ITEM32(reg, rrcr, size, 0x04, 0, 16);\n+\n+/* reg_rrcr_table_id\n+ * Identifier of the table on which to perform the operation. Encoding is the\n+ * same as in RTAR.key_type\n+ * Access: Index\n+ */\n+MLXSW_ITEM32(reg, rrcr, table_id, 0x10, 0, 4);\n+\n+/* reg_rrcr_dest_offset\n+ * Offset within the region to which to copy/move\n+ * Access: Index\n+ */\n+MLXSW_ITEM32(reg, rrcr, dest_offset, 0x20, 0, 16);\n+\n+static inline void mlxsw_reg_rrcr_pack(char *payload, enum mlxsw_reg_rrcr_op op,\n+\t\t\t\t u16 offset, u16 size,\n+\t\t\t\t enum mlxsw_reg_rtar_key_type table_id,\n+\t\t\t\t u16 dest_offset)\n+{\n+\tMLXSW_REG_ZERO(rrcr, payload);\n+\tmlxsw_reg_rrcr_op_set(payload, op);\n+\tmlxsw_reg_rrcr_offset_set(payload, offset);\n+\tmlxsw_reg_rrcr_size_set(payload, size);\n+\tmlxsw_reg_rrcr_table_id_set(payload, table_id);\n+\tmlxsw_reg_rrcr_dest_offset_set(payload, dest_offset);\n+}\n+\n /* RALTA - Router Algorithmic LPM Tree Allocation Register\n * -------------------------------------------------------\n * RALTA is used to allocate the LPM trees of the SHSPM method.\n@@ -7133,6 +7192,7 @@ static const struct mlxsw_reg_info *mlxsw_reg_infos[] = {\n \tMLXSW_REG(ratr),\n \tMLXSW_REG(rtdp),\n \tMLXSW_REG(ricnt),\n+\tMLXSW_REG(rrcr),\n \tMLXSW_REG(ralta),\n \tMLXSW_REG(ralst),\n \tMLXSW_REG(raltb),\n", "prefixes": [ "net-next", "10/13" ] }