Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/833728/?format=api
{ "id": 833728, "url": "http://patchwork.ozlabs.org/api/1.2/patches/833728/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20171103090344.19444-3-jiri@resnulli.us/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20171103090344.19444-3-jiri@resnulli.us>", "list_archive_url": null, "date": "2017-11-03T09:03:30", "name": "[net-next,02/16] mlxsw: spectrum_router: Extract mlxsw_sp_netdevice_ipip_can_offload()", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "1f1c56787fe734b5af36eb8741af7f7486589558", "submitter": { "id": 15321, "url": "http://patchwork.ozlabs.org/api/1.2/people/15321/?format=api", "name": "Jiri Pirko", "email": "jiri@resnulli.us" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/1.2/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20171103090344.19444-3-jiri@resnulli.us/mbox/", "series": [ { "id": 11677, "url": "http://patchwork.ozlabs.org/api/1.2/series/11677/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=11677", "date": "2017-11-03T09:03:28", "name": "mlxsw: Handle changes in GRE configuration", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/11677/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/833728/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/833728/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=\"JZQqrlwV\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3ySwxx3z23z9sNV\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 3 Nov 2017 20:04:37 +1100 (AEDT)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S932428AbdKCJDv (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 3 Nov 2017 05:03:51 -0400", "from mail-wr0-f195.google.com ([209.85.128.195]:55622 \"EHLO\n\tmail-wr0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752465AbdKCJDs (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 3 Nov 2017 05:03:48 -0400", "by mail-wr0-f195.google.com with SMTP id l8so1850962wre.12\n\tfor <netdev@vger.kernel.org>; Fri, 03 Nov 2017 02:03:47 -0700 (PDT)", "from localhost (ip-94-113-127-32.net.upcbroadband.cz.\n\t[94.113.127.32]) by smtp.gmail.com with ESMTPSA id\n\tl130sm1345375wmd.47.2017.11.03.02.03.46\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tFri, 03 Nov 2017 02:03:46 -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=0GDoeAiOziMbO5YDiuosfLSNHqrbN14ABm61rdu0n6k=;\n\tb=JZQqrlwVrhMfB13RBCMj7S0GzF7x/GJIqIZC5JAqL4stn5Yps22GYgvk6XdVYV4QfC\n\tVETwTAO0oiuJqypMe2TDHOuHVw9KcyM7dd2x0iM77dE90QdAh3hFBqKaOfYJDEUD2677\n\t58dEnt15FOLHBeHviX2A2Iq039WeDIbuK7hddNKMzEIMGDrDbcDzxmADdOzX3dIh0uAp\n\tJhegb8S4Ykfgp7qesTsK3Oay6hLUN3yHQRCARE6DRurmSUdz69Jl+xCTBmp9wc74v4HQ\n\tYYoqTuiV1lpKvAizLwMDppXXALX07furwvaIYwnqOBTgaDxFy9/c1oN4yTl7M6hIMQaX\n\tA2pA==", "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=0GDoeAiOziMbO5YDiuosfLSNHqrbN14ABm61rdu0n6k=;\n\tb=s/7prF3KXTNOrjyJiz3bTQcRoGE4CBYofRUsXolbZrEY0UfCUHnO0ss7yhbMZmBGyZ\n\tuSsLZprJab0KcWIivqon/dsvwWnfiMIgWI+APKF4plxittbVgm17JSg4eGIJ6rO6/nNK\n\tUSecY9nybArfs1/HuhRu2tNOqFrQk9wom8uq/ilBqb4QOFyNY1p7gZZ4wadpFJY5qKhM\n\totNYorWSx4E1govHtGHbN768AtJMM9yJeK4Z3OQJp4LkN0dZYp2v+bIqw9Qp4YQgkyot\n\t/nqxLKbWpftj83AaxklzB1s0GbPCa4FWquqn0Mnkgba3bh+TLodlid2xedRo+IdEY/xJ\n\tZ4LQ==", "X-Gm-Message-State": "AMCzsaVIt7xvIERS+vsQ6v8hxAxikZO6Fd//2kbMLmwdMIpG52DejPwu\n\t0Me7e29Dn7A+zelPrpVNbQJfXcFt", "X-Google-Smtp-Source": "ABhQp+Tr0sOzViGAuX8ASj+k05r/vUSUUk5v+SdZzVGJDKog2yvCmRteftouJ9qzbvF++R/DirqZ3A==", "X-Received": "by 10.223.198.18 with SMTP id n18mr4928175wrg.96.1509699826763; \n\tFri, 03 Nov 2017 02:03:46 -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 02/16] mlxsw: spectrum_router: Extract\n\tmlxsw_sp_netdevice_ipip_can_offload()", "Date": "Fri, 3 Nov 2017 10:03:30 +0100", "Message-Id": "<20171103090344.19444-3-jiri@resnulli.us>", "X-Mailer": "git-send-email 2.9.5", "In-Reply-To": "<20171103090344.19444-1-jiri@resnulli.us>", "References": "<20171103090344.19444-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\nSome of the code down the road needs this logic as well.\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 .../net/ethernet/mellanox/mlxsw/spectrum_router.c | 20 +++++++++++++++-----\n 1 file changed, 15 insertions(+), 5 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\nindex 9672933..97f062a 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n@@ -1326,18 +1326,28 @@ mlxsw_sp_ipip_entry_find_by_ol_dev(struct mlxsw_sp *mlxsw_sp,\n \treturn NULL;\n }\n \n+static bool mlxsw_sp_netdevice_ipip_can_offload(struct mlxsw_sp *mlxsw_sp,\n+\t\t\t\t\t\tconst struct net_device *ol_dev,\n+\t\t\t\t\t\tenum mlxsw_sp_ipip_type ipipt)\n+{\n+\tconst struct mlxsw_sp_ipip_ops *ops\n+\t\t= mlxsw_sp->router->ipip_ops_arr[ipipt];\n+\n+\t/* For deciding whether decap should be offloaded, we don't care about\n+\t * overlay protocol, so ask whether either one is supported.\n+\t */\n+\treturn ops->can_offload(mlxsw_sp, ol_dev, MLXSW_SP_L3_PROTO_IPV4) ||\n+\t ops->can_offload(mlxsw_sp, ol_dev, MLXSW_SP_L3_PROTO_IPV6);\n+}\n+\n static int mlxsw_sp_netdevice_ipip_ol_reg_event(struct mlxsw_sp *mlxsw_sp,\n \t\t\t\t\t\tstruct net_device *ol_dev)\n {\n-\tstruct mlxsw_sp_router *router = mlxsw_sp->router;\n \tstruct mlxsw_sp_ipip_entry *ipip_entry;\n \tenum mlxsw_sp_ipip_type ipipt;\n \n \tmlxsw_sp_netdev_ipip_type(mlxsw_sp, ol_dev, &ipipt);\n-\tif (router->ipip_ops_arr[ipipt]->can_offload(mlxsw_sp, ol_dev,\n-\t\t\t\t\t\t MLXSW_SP_L3_PROTO_IPV4) ||\n-\t router->ipip_ops_arr[ipipt]->can_offload(mlxsw_sp, ol_dev,\n-\t\t\t\t\t\t MLXSW_SP_L3_PROTO_IPV6)) {\n+\tif (mlxsw_sp_netdevice_ipip_can_offload(mlxsw_sp, ol_dev, ipipt)) {\n \t\tipip_entry = mlxsw_sp_ipip_entry_create(mlxsw_sp, ipipt,\n \t\t\t\t\t\t\tol_dev);\n \t\tif (IS_ERR(ipip_entry))\n", "prefixes": [ "net-next", "02/16" ] }