get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1527763/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1527763,
    "url": "http://patchwork.ozlabs.org/api/patches/1527763/",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/1631606713-20513-4-git-send-email-nanteby@nvidia.com/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/",
        "name": "Open vSwitch",
        "link_name": "openvswitch",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "git@github.com:openvswitch/ovs.git",
        "webscm_url": "https://github.com/openvswitch/ovs",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1631606713-20513-4-git-send-email-nanteby@nvidia.com>",
    "list_archive_url": null,
    "date": "2021-09-14T08:05:12",
    "name": "[ovs-dev,3/4] netdev-offload-dpdk: Support tnl_pop for gre tunnel",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "4a28ef9bd2d9b89e41166b06d2cb69f91fe58012",
    "submitter": {
        "id": 82517,
        "url": "http://patchwork.ozlabs.org/api/people/82517/",
        "name": "Nir Anteby",
        "email": "nanteby@nvidia.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/1631606713-20513-4-git-send-email-nanteby@nvidia.com/mbox/",
    "series": [
        {
            "id": 262205,
            "url": "http://patchwork.ozlabs.org/api/series/262205/",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=262205",
            "date": "2021-09-14T08:05:09",
            "name": "netdev datapath hardware offload support for GRE flows",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/262205/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1527763/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/1527763/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
        "Received": [
            "from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4H7wrl04TQz9sSn\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Sep 2021 18:05:42 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp2.osuosl.org (Postfix) with ESMTP id 3D14E403AB;\n\tTue, 14 Sep 2021 08:05:36 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n\tby localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 9AQfZf3bgFs0; Tue, 14 Sep 2021 08:05:35 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org\n [IPv6:2605:bc80:3010:104::8cd3:938])\n\tby smtp2.osuosl.org (Postfix) with ESMTPS id DA48A4033E;\n\tTue, 14 Sep 2021 08:05:31 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 0B1EAC001E;\n\tTue, 14 Sep 2021 08:05:31 +0000 (UTC)",
            "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 15986C000D\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 08:05:28 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 129F460615\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 08:05:28 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id kikiFUvGc54O for <dev@openvswitch.org>;\n Tue, 14 Sep 2021 08:05:25 +0000 (UTC)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by smtp3.osuosl.org (Postfix) with ESMTP id A8985607D3\n for <dev@openvswitch.org>; Tue, 14 Sep 2021 08:05:24 +0000 (UTC)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n nanteby@nvidia.com) with SMTP; 14 Sep 2021 11:05:17 +0300",
            "from nvidia.com (pegasus27.mtr.labs.mlnx [10.213.1.140])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 18E85HxS005159;\n Tue, 14 Sep 2021 11:05:17 +0300"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.8.0",
        "To": "dev@openvswitch.org",
        "Date": "Tue, 14 Sep 2021 08:05:12 +0000",
        "Message-Id": "<1631606713-20513-4-git-send-email-nanteby@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1631606713-20513-1-git-send-email-nanteby@nvidia.com>",
        "References": "<1631606713-20513-1-git-send-email-nanteby@nvidia.com>",
        "Cc": "elibr@nvidia.com, majd@nvidia.com",
        "Subject": "[ovs-dev] [PATCH 3/4] netdev-offload-dpdk: Support tnl_pop for gre\n\ttunnel",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>",
        "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>",
        "List-Post": "<mailto:ovs-dev@openvswitch.org>",
        "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>",
        "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "From": "Nir Anteby via dev <ovs-dev@openvswitch.org>",
        "Reply-To": "Nir Anteby <nanteby@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "Add support for tnl_pop action for gre vport.\n\nSigned-off-by: Nir Anteby <nanteby@nvidia.com>\n---\n lib/netdev-offload-dpdk.c | 11 +++++++++++\n 1 file changed, 11 insertions(+)",
    "diff": "diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c\nindex c831471..d15302a 100644\n--- a/lib/netdev-offload-dpdk.c\n+++ b/lib/netdev-offload-dpdk.c\n@@ -845,6 +845,12 @@ vport_to_rte_tunnel(struct netdev *vport,\n             ds_put_format(s_tnl, \"flow tunnel create %d type vxlan; \",\n                           netdev_dpdk_get_port_id(netdev));\n         }\n+    } else if (!strcmp(netdev_get_type(vport), \"gre\")) {\n+        tunnel->type = RTE_FLOW_ITEM_TYPE_GRE;\n+        if (!VLOG_DROP_DBG(&rl)) {\n+            ds_put_format(s_tnl, \"flow tunnel create %d type gre; \",\n+                          netdev_dpdk_get_port_id(netdev));\n+        }\n     } else {\n         VLOG_DBG_RL(&rl, \"vport type '%s' is not supported\",\n                     netdev_get_type(vport));\n@@ -2099,6 +2105,9 @@ get_vport_netdev_cb(struct netdev *netdev,\n     if (!aux->type || strcmp(netdev_get_type(netdev), aux->type)) {\n         return false;\n     }\n+    if (!strcmp(netdev_get_type(netdev), \"gre\")) {\n+        return true;\n+    }\n \n     tnl_cfg = netdev_get_tunnel_config(netdev);\n     if (!tnl_cfg) {\n@@ -2131,6 +2140,8 @@ get_vport_netdev(const char *dpif_type,\n \n     if (tunnel->type == RTE_FLOW_ITEM_TYPE_VXLAN) {\n         aux.type = \"vxlan\";\n+    } else if (tunnel->type == RTE_FLOW_ITEM_TYPE_GRE) {\n+        aux.type = \"gre\";\n     }\n     netdev_ports_traverse(dpif_type, get_vport_netdev_cb, &aux);\n \n",
    "prefixes": [
        "ovs-dev",
        "3/4"
    ]
}