get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 780375,
    "url": "http://patchwork.ozlabs.org/api/patches/780375/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/bc0cefa09874e2d55d045303c2948e586b58fb5d.1498331301.git.daniel@iogearbox.net/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<bc0cefa09874e2d55d045303c2948e586b58fb5d.1498331301.git.daniel@iogearbox.net>",
    "list_archive_url": null,
    "date": "2017-06-24T19:13:52",
    "name": "[net-next] bpf, i40e: report bpf prog id during XDP_QUERY_PROG",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "cc020ca8a121d1b7df839170709b695da0e77bfe",
    "submitter": {
        "id": 65705,
        "url": "http://patchwork.ozlabs.org/api/people/65705/?format=api",
        "name": "Daniel Borkmann",
        "email": "daniel@iogearbox.net"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/bc0cefa09874e2d55d045303c2948e586b58fb5d.1498331301.git.daniel@iogearbox.net/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/780375/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/780375/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@osuosl.org"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3ww4k85XyDz9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 25 Jun 2017 05:14:07 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 6E8C485FD5;\n\tSat, 24 Jun 2017 19:14:05 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id TqY2JJCFf6ZL; Sat, 24 Jun 2017 19:14:03 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id EEA8785F82;\n\tSat, 24 Jun 2017 19:14:03 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 9C9711BFF09\n\tfor <intel-wired-lan@osuosl.org>;\n\tSat, 24 Jun 2017 19:14:02 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 90ED086393\n\tfor <intel-wired-lan@osuosl.org>;\n\tSat, 24 Jun 2017 19:14:02 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id IhV4JHGTeKE3 for <intel-wired-lan@osuosl.org>;\n\tSat, 24 Jun 2017 19:14:01 +0000 (UTC)",
            "from www62.your-server.de (www62.your-server.de [213.133.104.62])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id DA7A386390\n\tfor <intel-wired-lan@osuosl.org>;\n\tSat, 24 Jun 2017 19:14:00 +0000 (UTC)",
            "from [104.10.251.217] (helo=localhost)\n\tby www62.your-server.de with esmtpsa\n\t(TLSv1.2:DHE-RSA-AES128-GCM-SHA256:128)\n\t(Exim 4.85_2) (envelope-from <daniel@iogearbox.net>)\n\tid 1dOqVK-0000jM-0W; Sat, 24 Jun 2017 21:13:58 +0200"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org",
            "Clear (ClamAV 0.99.2/23503/Sat Jun 24 14:13:50 2017)"
        ],
        "X-Greylist": "from auto-whitelisted by SQLgrey-1.7.6",
        "From": "Daniel Borkmann <daniel@iogearbox.net>",
        "To": "jeffrey.t.kirsher@intel.com",
        "Date": "Sat, 24 Jun 2017 21:13:52 +0200",
        "Message-Id": "<bc0cefa09874e2d55d045303c2948e586b58fb5d.1498331301.git.daniel@iogearbox.net>",
        "X-Mailer": "git-send-email 1.9.3",
        "X-Authenticated-Sender": "daniel@iogearbox.net",
        "Cc": "intel-wired-lan@osuosl.org, Daniel Borkmann <daniel@iogearbox.net>",
        "Subject": "[Intel-wired-lan] [PATCH net-next] bpf,\n\ti40e: report bpf prog id during XDP_QUERY_PROG",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "Fill the XDP prog_id with the id just like we do in other XDP enabled\ndrivers such as ixgbe. This is needed so that on dump we can retrieve\nthe attached program based on the id, and dump BPF insns, opcodes, etc\nback to user space. Only XDP driver missing this is currently i40e.\n\nSigned-off-by: Daniel Borkmann <daniel@iogearbox.net>\nAcked-by: John Fastabend <john.fastabend@gmail.com>\nAcked-by: Alexander Duyck <alexander.h.duyck@intel.com>\n---\n [ Jeff, this should still go into this net-next window, so that\n   XDP_QUERY_PROG is covered for all XDP drivers wrt id. Thanks. ]\n\n drivers/net/ethernet/intel/i40e/i40e_main.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex 2db93d3..a76ca6c 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -9589,6 +9589,7 @@ static int i40e_xdp(struct net_device *dev,\n \t\treturn i40e_xdp_setup(vsi, xdp->prog);\n \tcase XDP_QUERY_PROG:\n \t\txdp->prog_attached = i40e_enabled_xdp_vsi(vsi);\n+\t\txdp->prog_id = vsi->xdp_prog ? vsi->xdp_prog->aux->id : 0;\n \t\treturn 0;\n \tdefault:\n \t\treturn -EINVAL;\n",
    "prefixes": [
        "net-next"
    ]
}