get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809347,
    "url": "http://patchwork.ozlabs.org/api/patches/809347/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170903182549.30866-2-joelaf@google.com/",
    "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": "<20170903182549.30866-2-joelaf@google.com>",
    "list_archive_url": null,
    "date": "2017-09-03T18:25:47",
    "name": "[RFC,v3,2/4] samples/bpf: Enable cross compiler support",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": true,
    "hash": "d77a4a55187b5bf3df40efffe66a2cb6c596d7da",
    "submitter": {
        "id": 72107,
        "url": "http://patchwork.ozlabs.org/api/people/72107/?format=api",
        "name": "Joel Fernandes",
        "email": "joelaf@google.com"
    },
    "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/20170903182549.30866-2-joelaf@google.com/mbox/",
    "series": [
        {
            "id": 1268,
            "url": "http://patchwork.ozlabs.org/api/series/1268/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1268",
            "date": "2017-09-03T18:23:21",
            "name": "Add cross-compilation support to eBPF samples",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/1268/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809347/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809347/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=google.com header.i=@google.com\n\theader.b=\"eOd/2SkN\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xlhJb2Z1Qz9sDB\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon,  4 Sep 2017 04:26:39 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752803AbdICS0I (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSun, 3 Sep 2017 14:26:08 -0400",
            "from mail-pg0-f45.google.com ([74.125.83.45]:37426 \"EHLO\n\tmail-pg0-f45.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752604AbdICS0G (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sun, 3 Sep 2017 14:26:06 -0400",
            "by mail-pg0-f45.google.com with SMTP id 83so13054124pgb.4\n\tfor <netdev@vger.kernel.org>; Sun, 03 Sep 2017 11:26:06 -0700 (PDT)",
            "from joelaf-glaptop0.roam.corp.google.com\n\t(74.sub-70-213-6.myvzw.com. [70.213.6.74])\n\tby smtp.gmail.com with ESMTPSA id\n\tp64sm7627440pfi.168.2017.09.03.11.26.03\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 03 Sep 2017 11:26:05 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=google.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=6LA6iB402DqWY3wSPsbxSjZ553wPZxkUBM0nrdMv4B0=;\n\tb=eOd/2SkNICbJZR5zSzvaWJGz+uY0yBpiR+5BVbvd7iFTkPLmY7bVGlaqvTEOS1D3OQ\n\ttZo+7fY+WsZKP5oVxfLF9pR+ozyKO/va0RQrGRmre/kd9uvZcSmZ7C9geLtzbJ67MtLt\n\tpGUWZOlnGAJ14/oXD0BzvxRxjPBX+raFxYSKUyaDsW7BB3mV2w4n1ZXNBgVkKehwx2Gt\n\tflY1e2sdfY0yEcRPjvv3ujj4dyoHZdf0zFnGqLJ6n7Iq7uG7JWyu7y+a4z8uv7DVUBvt\n\tFxZEsPdBQIraIjYUN1YKSTnwDqTFmLsYhl5ozf/3T96VKkX7devP7Z3h+yRp+FuKclsu\n\tGVng==",
        "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=6LA6iB402DqWY3wSPsbxSjZ553wPZxkUBM0nrdMv4B0=;\n\tb=pvc5sj8a8Y1j+g6UlUBJnl/uefxPZifdMfm2vrroSZbjmADAZrQze1ZO6HkeLyTRuH\n\tP522HJ9d+u363XX6oUV922CuMaxrVYJst/T4X/va4/p+uDXbr6zLv3FcRyddAwW62uEz\n\tY2/lGT8y5eEg7Hcj+faEbv2rN7LK4RsLnWPPDHEfeZxgiy088JwVyjJfK82uoJuPw1T2\n\tZjPj5znq4SyCNNh1GeeeMx46LVpuX7QM2MWZX+j5XkUGu2gs9kXFMNgDDn2MShF0XBeW\n\tkOwJ2+26aExRH6D40rNtOZYg6po3ueUfjHzHgi57B0oJfmPi099cem6kiaSV6EYiN4tr\n\tNhsQ==",
        "X-Gm-Message-State": "AHPjjUgYIm/UNX9xkT/e1rkjld92Cs9NxiAbQJl1fymMif5BFKaK8+qJ\n\tEMcc5DRZm4jMZb/Y",
        "X-Google-Smtp-Source": "ADKCNb6U3yhnPgNKmGknbV3AXPQ2U2TMkyLTYzxeJO/Lh8K0ghSCwBZ406evNogB7okkGFpIMedOTg==",
        "X-Received": "by 10.98.193.1 with SMTP id i1mr2132779pfg.155.1504463165590;\n\tSun, 03 Sep 2017 11:26:05 -0700 (PDT)",
        "From": "Joel Fernandes <joelaf@google.com>",
        "To": "linux-kernel@vger.kernel.org, netdev@vger.kernel.org",
        "Cc": "kernel-team@android.com, Juri Lelli <juri.lelli@arm.com>,\n\tAlison Chaiken <alison@she-devel.com>, Chenbo Feng <fengc@google.com>,\n\tJoel Fernandes <joelaf@google.com>, Alexei Starovoitov <ast@kernel.org>,\n\tDaniel Borkmann <daniel@iogearbox.net>,\n\tDavid Miller <davem@davemloft.net>",
        "Subject": "[PATCH RFC v3 2/4] samples/bpf: Enable cross compiler support",
        "Date": "Sun,  3 Sep 2017 11:25:47 -0700",
        "Message-Id": "<20170903182549.30866-2-joelaf@google.com>",
        "X-Mailer": "git-send-email 2.14.1.581.gf28d330327-goog",
        "In-Reply-To": "<20170903182549.30866-1-joelaf@google.com>",
        "References": "<20170903182549.30866-1-joelaf@google.com>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "When cross compiling, bpf samples use HOSTCC for compiling the non-BPF part of\nthe sample, however what we really want is to use the cross compiler to build\nfor the cross target since that is what will load and run the BPF sample.\nDetect this and compile samples correctly.\n\nCC: Alexei Starovoitov <ast@kernel.org>\nCC: Daniel Borkmann <daniel@iogearbox.net>\nCc: David Miller <davem@davemloft.net>\nSigned-off-by: Joel Fernandes <joelaf@google.com>\n---\n samples/bpf/Makefile | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile\nindex cf17c7932a6e..13f74b67ca44 100644\n--- a/samples/bpf/Makefile\n+++ b/samples/bpf/Makefile\n@@ -177,6 +177,11 @@ HOSTLOADLIBES_syscall_tp += -lelf\n LLC ?= llc\n CLANG ?= clang\n \n+# Detect that we're cross compiling and use the cross compiler\n+ifdef CROSS_COMPILE\n+HOSTCC = $(CROSS_COMPILE)gcc\n+endif\n+\n # Trick to allow make to be run from this directory\n all:\n \t$(MAKE) -C ../../ $(CURDIR)/\n",
    "prefixes": [
        "RFC",
        "v3",
        "2/4"
    ]
}