get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808441,
    "url": "http://patchwork.ozlabs.org/api/patches/808441/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1504217150-16151-3-git-send-email-dsahern@gmail.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": "<1504217150-16151-3-git-send-email-dsahern@gmail.com>",
    "list_archive_url": null,
    "date": "2017-08-31T22:05:45",
    "name": "[v3,net-next,2/7] bpf: Allow cgroup sock filters to use get_current_uid_gid helper",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "dde4f161291d0bfbe2f6cf02875e5814bda887b1",
    "submitter": {
        "id": 6918,
        "url": "http://patchwork.ozlabs.org/api/people/6918/?format=api",
        "name": "David Ahern",
        "email": "dsahern@gmail.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/1504217150-16151-3-git-send-email-dsahern@gmail.com/mbox/",
    "series": [
        {
            "id": 913,
            "url": "http://patchwork.ozlabs.org/api/series/913/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=913",
            "date": "2017-08-31T22:05:43",
            "name": "bpf: Add option to set mark and priority in cgroup sock programs",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/913/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808441/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808441/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=gmail.com header.i=@gmail.com\n\theader.b=\"RVAi1Vbw\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xjxKm0JXlz9s8J\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  1 Sep 2017 08:06:36 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751537AbdHaWGM (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 31 Aug 2017 18:06:12 -0400",
            "from mail-pf0-f195.google.com ([209.85.192.195]:35639 \"EHLO\n\tmail-pf0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751001AbdHaWGL (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 31 Aug 2017 18:06:11 -0400",
            "by mail-pf0-f195.google.com with SMTP id g13so532849pfm.2\n\tfor <netdev@vger.kernel.org>; Thu, 31 Aug 2017 15:06:10 -0700 (PDT)",
            "from kenny.it.cumulusnetworks.com. (fw.cumulusnetworks.com.\n\t[216.129.126.126]) by smtp.googlemail.com with ESMTPSA id\n\tx12sm845336pfk.42.2017.08.31.15.06.09\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 31 Aug 2017 15:06:10 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=dOM0PlPLyKevorfLDpiFIF9JjUKDx1xzEAyK5l+umqQ=;\n\tb=RVAi1VbwXWyVZ0blUf727Wzyphhc2WRHP+tRfQtcRaLyGmnQuJKQccjC2ocQQwTpz9\n\tkPjUba90uDyEUHWGMBBCSoVe9qR5rY361WjXnnzcQyL+nb8VVXZoH+qdBRgqNo8kAHlu\n\tjNoS2Hzc8NNPjb6kf89NZCDm1r3UPHGaMfS5/ars3E+5j7O6pE/FJ4yybGfyw4MkcXfW\n\tvLvn9FOCWxqIaAGsJhbzL+Zva9U/7Xvx8qMDp9pkdby1uPz4X/yLYPfZRpnleE02HYCu\n\tbLF5htf9HAU6brV8SrWyGeKcs606c07nB+dXPgFPzaC8C0Jp45sivtRhK1jL3iioWkwp\n\tpmMQ==",
        "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=dOM0PlPLyKevorfLDpiFIF9JjUKDx1xzEAyK5l+umqQ=;\n\tb=fLLxQmEWtZ8+DriO/iC29q1GbcxY4Dja7ssuC4pwv9TP77q95/sdivsBYqVnPaxuUw\n\tOrQcFPiEEo+Hl0oTKv9HAu4ZrhQszNKatohAcEY0eVLSrSAsKNyfqXNYDp1HrX/0aa67\n\tw2MxeJtkZTDB70dlFfG9jnN9IadLzhOvzds2LK3BwfYXWHM9O1fne4FFx+hVFZj5qD6q\n\tqHI/FoTs+dMXAQ8ECRaaeCyeDv+/2swm34QYo/vwaoQS12wYLgIIEh0ptgtKcvHGoXtD\n\tXIW9IzJbIuzM1iMslUS3Xf0lgsPZZfVZCDnIoAB1mTPzD7VNq9IY0nH1PvnlV0HHiHzZ\n\tCkQA==",
        "X-Gm-Message-State": "AHYfb5hn66Q9mGECJPIp9WEStUH7eQU6bwIohKXpfO/jt+91guRvRwG2\n\t01gyM9gA1Wb2OGGS",
        "X-Google-Smtp-Source": "ADKCNb56wi/5/CKV0KGuB6UP3VgbPw2mRkdgLLp6QHJ2Ruc+4IVKVmfOONUq7TeZtq/zZ3gokoACcA==",
        "X-Received": "by 10.99.112.71 with SMTP id a7mr4123963pgn.187.1504217170519;\n\tThu, 31 Aug 2017 15:06:10 -0700 (PDT)",
        "From": "David Ahern <dsahern@gmail.com>",
        "To": "netdev@vger.kernel.org, daniel@iogearbox.net, ast@kernel.org",
        "Cc": "David Ahern <dsahern@gmail.com>",
        "Subject": "[PATCH v3 net-next 2/7] bpf: Allow cgroup sock filters to use\n\tget_current_uid_gid helper",
        "Date": "Thu, 31 Aug 2017 15:05:45 -0700",
        "Message-Id": "<1504217150-16151-3-git-send-email-dsahern@gmail.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1504217150-16151-1-git-send-email-dsahern@gmail.com>",
        "References": "<1504217150-16151-1-git-send-email-dsahern@gmail.com>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "Allow BPF programs run on sock create to use the get_current_uid_gid\nhelper. IPv4 and IPv6 sockets are created in a process context so\nthere is always a valid uid/gid\n\nSigned-off-by: David Ahern <dsahern@gmail.com>\nAcked-by: Alexei Starovoitov <ast@kernel.org>\n---\n net/core/filter.c | 16 +++++++++++++++-\n 1 file changed, 15 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/net/core/filter.c b/net/core/filter.c\nindex f51b9690adf3..9dad3e7e2e10 100644\n--- a/net/core/filter.c\n+++ b/net/core/filter.c\n@@ -3150,6 +3150,20 @@ bpf_base_func_proto(enum bpf_func_id func_id)\n }\n \n static const struct bpf_func_proto *\n+sock_filter_func_proto(enum bpf_func_id func_id)\n+{\n+\tswitch (func_id) {\n+\t/* inet and inet6 sockets are created in a process\n+\t * context so there is always a valid uid/gid\n+\t */\n+\tcase BPF_FUNC_get_current_uid_gid:\n+\t\treturn &bpf_get_current_uid_gid_proto;\n+\tdefault:\n+\t\treturn bpf_base_func_proto(func_id);\n+\t}\n+}\n+\n+static const struct bpf_func_proto *\n sk_filter_func_proto(enum bpf_func_id func_id)\n {\n \tswitch (func_id) {\n@@ -4233,7 +4247,7 @@ const struct bpf_verifier_ops lwt_xmit_prog_ops = {\n };\n \n const struct bpf_verifier_ops cg_sock_prog_ops = {\n-\t.get_func_proto\t\t= bpf_base_func_proto,\n+\t.get_func_proto\t\t= sock_filter_func_proto,\n \t.is_valid_access\t= sock_filter_is_valid_access,\n \t.convert_ctx_access\t= sock_filter_convert_ctx_access,\n };\n",
    "prefixes": [
        "v3",
        "net-next",
        "2/7"
    ]
}