Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/809154/?format=api
{ "id": 809154, "url": "http://patchwork.ozlabs.org/api/patches/809154/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170902214929.2890-8-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": "<20170902214929.2890-8-jiri@resnulli.us>", "list_archive_url": null, "date": "2017-09-02T21:49:15", "name": "[net-next,v2,07/21] mlxsw: reg: Give mlxsw_reg_ratr_pack a type parameter", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "2f3d58e1a4709ceb0ff8cb04a3432ddc429f7964", "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/20170902214929.2890-8-jiri@resnulli.us/mbox/", "series": [ { "id": 1180, "url": "http://patchwork.ozlabs.org/api/series/1180/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1180", "date": "2017-09-02T21:49:08", "name": "mlxsw: Offloading GRE tunnels", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/1180/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/809154/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/809154/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=\"z/4wWN2g\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xl8sY17hFz9s8J\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSun, 3 Sep 2017 07:49:53 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752824AbdIBVtq (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSat, 2 Sep 2017 17:49:46 -0400", "from mail-wr0-f194.google.com ([209.85.128.194]:35037 \"EHLO\n\tmail-wr0-f194.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752776AbdIBVto (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sat, 2 Sep 2017 17:49:44 -0400", "by mail-wr0-f194.google.com with SMTP id a47so1622657wra.2\n\tfor <netdev@vger.kernel.org>; Sat, 02 Sep 2017 14:49:43 -0700 (PDT)", "from localhost (jirka.pirko.cz. [84.16.102.26])\n\tby smtp.gmail.com with ESMTPSA id\n\te135sm2603288wmg.21.2017.09.02.14.49.41\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSat, 02 Sep 2017 14:49:42 -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=2rt5Iy4hr2Dxn9EdIT74iUZpN+YSB+OK2jIhOrxBzgM=;\n\tb=z/4wWN2g6a2dlJlEPvNd483KcD/cx/sab+poelReB3Kj7PFlRfoace3OCGyWkXBHzb\n\tf4UX88s4PUSSwLS/BWEg6ue+fkIh0mNph43kmn7AgNvqQwFEF+wxo7KHPTq4mFQOmLr2\n\tDxfIAq2o+uXQxGiCR5/fFr/Da/lkpxZ3sDL6KijMjZDz6qnP9MyLtitXjnBbZb9oCbGn\n\tUHEeOvLYsKBj/HG1jpeE9yqS+52aPuPQOyBMZSsDtDLTgBcnp0/krHonaiR2lVV53Wxo\n\t7eeIHL1EljDn5kXzgmQN9K+wRDRG0PHj/7yST2EcVxZZAteoICw7JRBlbFIQlaY5Flj5\n\t2E+Q==", "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=2rt5Iy4hr2Dxn9EdIT74iUZpN+YSB+OK2jIhOrxBzgM=;\n\tb=QEN/c1pVIywSYxatDjJDVGhx9oe4SMnQYm+AdtXyot5UnZS7ctQna45rkP3sJ2CFx9\n\tTbUTIBq/QUXe6euk/QtJR8PcZ8Ryefhfb7zk5bZqCW513BslHdUNdJVzMWTXGOvEZJcN\n\tbRDnIqv3+KiuxXXuVCmqRWGDaRm309crjheYCOky2E/ARqXO0weaVvPGqRoUpYACMEFY\n\t5fw4XydciOC1GUV1GgVJxDhV6Vaf1GOrxeLY8ctZH+KhrdnwS+/nsTrm/r/cPJNbxprM\n\ta3csxLwiSipdD5hQjSjcSpk5Pgzeg2bpDKoZp4Ak8K7dTftKtpqg4JDs42jNDtK6+BxJ\n\t9TfQ==", "X-Gm-Message-State": "AHPjjUgKYiO5xcT6FUAJqVGq4J+vP9RxHdp+pc1FkL4odQWNYosIjYIS\n\tAhrSLAKOfU7sT+QT6TQ=", "X-Google-Smtp-Source": "ADKCNb6BUc3WSiE1DfUMXSCYIZRwfOHciuQFgIj3sllKSHSxHgkTT0E14hbpC+NND5pU3UbV8v2hug==", "X-Received": "by 10.223.164.129 with SMTP id g1mr3093672wrb.61.1504388982909; \n\tSat, 02 Sep 2017 14:49:42 -0700 (PDT)", "From": "Jiri Pirko <jiri@resnulli.us>", "To": "netdev@vger.kernel.org", "Cc": "davem@davemloft.net, petrm@mellanox.com, idosch@mellanox.com,\n\tmlxsw@mellanox.com", "Subject": "[patch net-next v2 07/21] mlxsw: reg: Give mlxsw_reg_ratr_pack a\n\ttype parameter", "Date": "Sat, 2 Sep 2017 23:49:15 +0200", "Message-Id": "<20170902214929.2890-8-jiri@resnulli.us>", "X-Mailer": "git-send-email 2.9.3", "In-Reply-To": "<20170902214929.2890-1-jiri@resnulli.us>", "References": "<20170902214929.2890-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: Petr Machata <petrm@mellanox.com>\n\nTo support IPIP, the driver needs to be able to construct an IPIP\nadjacency. Change mlxsw_reg_ratr_pack to take an adjacency type as an\nargument. Adjust the one existing caller.\n\nSigned-off-by: Petr Machata <petrm@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 | 2 ++\n drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 3 ++-\n 2 files changed, 4 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h\nindex d80cf9b..cc27c5d 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/reg.h\n+++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h\n@@ -4483,11 +4483,13 @@ MLXSW_ITEM32(reg, ratr, ipip_ipv6_ptr, 0x1C, 0, 24);\n static inline void\n mlxsw_reg_ratr_pack(char *payload,\n \t\t enum mlxsw_reg_ratr_op op, bool valid,\n+\t\t enum mlxsw_reg_ratr_type type,\n \t\t u32 adjacency_index, u16 egress_rif)\n {\n \tMLXSW_REG_ZERO(ratr, payload);\n \tmlxsw_reg_ratr_op_set(payload, op);\n \tmlxsw_reg_ratr_v_set(payload, valid);\n+\tmlxsw_reg_ratr_type_set(payload, type);\n \tmlxsw_reg_ratr_adjacency_index_low_set(payload, adjacency_index);\n \tmlxsw_reg_ratr_adjacency_index_high_set(payload, adjacency_index >> 16);\n \tmlxsw_reg_ratr_egress_router_interface_set(payload, egress_rif);\ndiff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\nindex 3ddfbe3..4e47d45 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n@@ -1928,7 +1928,8 @@ static int mlxsw_sp_nexthop_mac_update(struct mlxsw_sp *mlxsw_sp, u32 adj_index,\n \tchar ratr_pl[MLXSW_REG_RATR_LEN];\n \n \tmlxsw_reg_ratr_pack(ratr_pl, MLXSW_REG_RATR_OP_WRITE_WRITE_ENTRY,\n-\t\t\t true, adj_index, neigh_entry->rif);\n+\t\t\t true, MLXSW_REG_RATR_TYPE_ETHERNET,\n+\t\t\t adj_index, neigh_entry->rif);\n \tmlxsw_reg_ratr_eth_entry_pack(ratr_pl, neigh_entry->ha);\n \treturn mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ratr), ratr_pl);\n }\n", "prefixes": [ "net-next", "v2", "07/21" ] }