get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809086,
    "url": "http://patchwork.ozlabs.org/api/patches/809086/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170902152126.17286-19-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": "<20170902152126.17286-19-jiri@resnulli.us>",
    "list_archive_url": null,
    "date": "2017-09-02T15:21:23",
    "name": "[net-next,18/21] mlxsw: spectrum: Register for IPIP_DECAP_ERROR trap",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a9d6f05b73c1ee8321fbe25c75626192aa4d220f",
    "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/20170902152126.17286-19-jiri@resnulli.us/mbox/",
    "series": [
        {
            "id": 1159,
            "url": "http://patchwork.ozlabs.org/api/series/1159/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1159",
            "date": "2017-09-02T15:21:05",
            "name": "mlxsw: Offloading GRE tunnels",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/1159/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809086/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809086/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=\"ijFIpNHy\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xl0G44yctz9sQl\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSun,  3 Sep 2017 01:22:04 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752799AbdIBPWC (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSat, 2 Sep 2017 11:22:02 -0400",
            "from mail-wm0-f67.google.com ([74.125.82.67]:33401 \"EHLO\n\tmail-wm0-f67.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752779AbdIBPV5 (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sat, 2 Sep 2017 11:21:57 -0400",
            "by mail-wm0-f67.google.com with SMTP id 187so2417220wmn.0\n\tfor <netdev@vger.kernel.org>; Sat, 02 Sep 2017 08:21:57 -0700 (PDT)",
            "from localhost (jirka.pirko.cz. [84.16.102.26])\n\tby smtp.gmail.com with ESMTPSA id\n\ty89sm2469810wrc.32.2017.09.02.08.21.55\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSat, 02 Sep 2017 08:21:55 -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=6A0TA3PecY15i3+/PI6B34KUNDLCHhdkJ7/aEAMPx9k=;\n\tb=ijFIpNHySaCMlc8y9UdpbPJdCfSfyC7j/Cl5AoIDRcB2hWbaDqMKPB1Y4bx8NyWOX6\n\tTNsZwdmxN5+kMasjUrJIt+BLLCEDKRja9MDWrJ9mbb4t/v1oW8P6OyIpSlNIXZoaqBZZ\n\tyFMec+1DTl4YPSikQr8JsYAxo0OPVtJgZ7uAzljKvtwJ+2rakizT3aIq4ftXElAhSunQ\n\t0AqPlX6ZvP4wwMBNdHtVe8xMzx89EsHY0O9qX6LoNOZPoRI8GucKXhTSUnV1B/7gfuyV\n\t8LkuZOfGKOz9Q5Zh8dG5R1Zbls0tA2BBzfsqZYDIi4ryw3s28clmnkLDtyzJVizo26AF\n\tPx7A==",
        "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=6A0TA3PecY15i3+/PI6B34KUNDLCHhdkJ7/aEAMPx9k=;\n\tb=fM2SUEDZLtBobnayzEfNrLE9SsTKuM4oNukzIFKiEovKMukBpKSYe/7Cpp12St1mvw\n\t5paEyJRDsSdu+yqpH1ULS7xBkLEFK/lYhL4C6uVop2FREwFnaiRoLr7PAQvT4bz3F8oq\n\tklsbvHWIdJbgwcHqS+hVa+sCjKGSekG0vTyr6OX/sbfsMStlJs/0vBeMmU42dP2jb88P\n\tMVgoSVlt4RTzFhjws6FykoDRoHBqhdnwFb9kWNxJJmH6I49+P6K1gnzru9oJqv/ybkZp\n\txhSxYfcE6T2nW3ukp8JsRZulhDHSIE2DcLlSKxmoHaNuQ3BMIItKD1RXnJN+Ji9kc5g1\n\tAtcQ==",
        "X-Gm-Message-State": "AHPjjUj0g6iw3muLs826My3Knn6g6YpnC7rBUG49fw37XCwWp+O5IKZ6\n\tY1OPOI1xZZjGzXbcghk=",
        "X-Google-Smtp-Source": "ADKCNb5MF5pFp2Mu2ShQWP/+MCtUzamNUpaZ1+Fl/CiWtJFhFPV9bJyUoSFj1/iVeU0HVomHrzAEdw==",
        "X-Received": "by 10.28.39.70 with SMTP id n67mr934126wmn.167.1504365716029;\n\tSat, 02 Sep 2017 08:21:56 -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 18/21] mlxsw: spectrum: Register for\n\tIPIP_DECAP_ERROR trap",
        "Date": "Sat,  2 Sep 2017 17:21:23 +0200",
        "Message-Id": "<20170902152126.17286-19-jiri@resnulli.us>",
        "X-Mailer": "git-send-email 2.9.3",
        "In-Reply-To": "<20170902152126.17286-1-jiri@resnulli.us>",
        "References": "<20170902152126.17286-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\nThese traps are generated for packets that fail checks for source IP,\nencapsulation type, or GRE key. Trap these packets to CPU for follow-up\nhandling by the kernel, which will send ICMP destination unreachable\nresponses.\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/spectrum.c | 1 +\n drivers/net/ethernet/mellanox/mlxsw/trap.h     | 1 +\n 2 files changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c\nindex 992cbfa..ed7cd6c 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c\n+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c\n@@ -3400,6 +3400,7 @@ static const struct mlxsw_listener mlxsw_sp_listener[] = {\n \tMLXSW_SP_RXL_MARK(HOST_MISS_IPV6, TRAP_TO_CPU, HOST_MISS, false),\n \tMLXSW_SP_RXL_MARK(ROUTER_ALERT_IPV4, TRAP_TO_CPU, ROUTER_EXP, false),\n \tMLXSW_SP_RXL_MARK(ROUTER_ALERT_IPV6, TRAP_TO_CPU, ROUTER_EXP, false),\n+\tMLXSW_SP_RXL_MARK(IPIP_DECAP_ERROR, TRAP_TO_CPU, ROUTER_EXP, false),\n \t/* PKT Sample trap */\n \tMLXSW_RXL(mlxsw_sp_rx_listener_sample_func, PKT_SAMPLE, MIRROR_TO_CPU,\n \t\t  false, SP_IP2ME, DISCARD),\ndiff --git a/drivers/net/ethernet/mellanox/mlxsw/trap.h b/drivers/net/ethernet/mellanox/mlxsw/trap.h\nindex 6165239..f396a1f 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/trap.h\n+++ b/drivers/net/ethernet/mellanox/mlxsw/trap.h\n@@ -85,6 +85,7 @@ enum {\n \tMLXSW_TRAP_ID_HOST_MISS_IPV4 = 0x90,\n \tMLXSW_TRAP_ID_IPV6_MC_LINK_LOCAL_DEST = 0x91,\n \tMLXSW_TRAP_ID_HOST_MISS_IPV6 = 0x92,\n+\tMLXSW_TRAP_ID_IPIP_DECAP_ERROR = 0xB1,\n \tMLXSW_TRAP_ID_ROUTER_ALERT_IPV4 = 0xD6,\n \tMLXSW_TRAP_ID_ROUTER_ALERT_IPV6 = 0xD7,\n \tMLXSW_TRAP_ID_ACL0 = 0x1C0,\n",
    "prefixes": [
        "net-next",
        "18/21"
    ]
}