get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 50371,
    "url": "http://patches.dpdk.org/api/patches/50371/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190219145308.65668-5-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20190219145308.65668-5-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190219145308.65668-5-bruce.richardson@intel.com",
    "date": "2019-02-19T14:53:07",
    "name": "[v2,4/5] test/bpf: move to examples folder",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "43a3c27fea59fc4e044cd59704549065a88250aa",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190219145308.65668-5-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 3483,
            "url": "http://patches.dpdk.org/api/series/3483/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3483",
            "date": "2019-02-19T14:53:03",
            "name": "consolidate testing apps to app dir",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/3483/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/50371/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/50371/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8B07D6C9B;\n\tTue, 19 Feb 2019 15:53:36 +0100 (CET)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 47BF92AB\n\tfor <dev@dpdk.org>; Tue, 19 Feb 2019 15:53:35 +0100 (CET)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t19 Feb 2019 06:53:35 -0800",
            "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.222.236])\n\tby fmsmga005.fm.intel.com with ESMTP; 19 Feb 2019 06:53:33 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.58,388,1544515200\"; d=\"scan'208\";a=\"321589108\"",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org,\n\tthomas@monjalon.net",
        "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n\tKonstantin Ananyev <konstantin.ananyev@intel.com>",
        "Date": "Tue, 19 Feb 2019 14:53:07 +0000",
        "Message-Id": "<20190219145308.65668-5-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190219145308.65668-1-bruce.richardson@intel.com>",
        "References": "<20190125202642.66559-1-bruce.richardson@intel.com>\n\t<20190219145308.65668-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 4/5] test/bpf: move to examples folder",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The bpf folder didn't actual contain a test application, but instead\nbasic examples of BPF code for use with testpmd. Therefore we can\nmove it to the `examples` folder. Being different, it also needs\na README with it, explaining what it is and how to use it. References\nto the code from the testpmd docs are suitably updated.\n\nCC: Konstantin Ananyev <konstantin.ananyev@intel.com>\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n MAINTAINERS                                 | 2 +-\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 8 ++++----\n examples/bpf/README                         | 8 ++++++++\n {test => examples}/bpf/dummy.c              | 0\n {test => examples}/bpf/mbuf.h               | 0\n examples/bpf/meson.build                    | 6 ++++++\n {test => examples}/bpf/t1.c                 | 0\n {test => examples}/bpf/t2.c                 | 0\n {test => examples}/bpf/t3.c                 | 0\n 9 files changed, 19 insertions(+), 5 deletions(-)\n create mode 100644 examples/bpf/README\n rename {test => examples}/bpf/dummy.c (100%)\n rename {test => examples}/bpf/mbuf.h (100%)\n create mode 100644 examples/bpf/meson.build\n rename {test => examples}/bpf/t1.c (100%)\n rename {test => examples}/bpf/t2.c (100%)\n rename {test => examples}/bpf/t3.c (100%)",
    "diff": "diff --git a/MAINTAINERS b/MAINTAINERS\nindex c4619174a..6d1d0aea7 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -1230,7 +1230,7 @@ F: doc/guides/howto/telemetry.rst\n BPF - EXPERIMENTAL\n M: Konstantin Ananyev <konstantin.ananyev@intel.com>\n F: lib/librte_bpf/\n-F: test/bpf/\n+F: examples/bpf/\n F: test/test/test_bpf.c\n F: doc/guides/prog_guide/bpf_lib.rst\n \ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex 029148041..b079c60d9 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -4503,20 +4503,20 @@ For example:\n \n .. code-block:: console\n \n-   cd test/bpf\n+   cd examples/bpf\n    clang -O2 -target bpf -c t1.c\n \n Then to load (and JIT compile) t1.o at RX queue 0, port 1::\n \n .. code-block:: console\n \n-   testpmd> bpf-load rx 1 0 J ./dpdk.org/test/bpf/t1.o\n+   testpmd> bpf-load rx 1 0 J ./dpdk.org/examples/bpf/t1.o\n \n To load (not JITed) t1.o at TX queue 0, port 0::\n \n .. code-block:: console\n \n-   testpmd> bpf-load tx 0 0 - ./dpdk.org/test/bpf/t1.o\n+   testpmd> bpf-load tx 0 0 - ./dpdk.org/examples/bpf/t1.o\n \n bpf-unload\n ~~~~~~~~~~\n@@ -4529,4 +4529,4 @@ For example to unload BPF filter from TX queue 0, port 0:\n \n .. code-block:: console\n \n-   testpmd> bpf-load tx 0 0 - ./dpdk.org/test/bpf/t1.o\n+   testpmd> bpf-unload tx 0 0\ndiff --git a/examples/bpf/README b/examples/bpf/README\nnew file mode 100644\nindex 000000000..d714180a5\n--- /dev/null\n+++ b/examples/bpf/README\n@@ -0,0 +1,8 @@\n+This folder contains example BPF programs for use with the DPDK bpf\n+library. To get details of each program and how to compile it, see\n+the header on the '.c' file itself.\n+\n+Once compiled, these example programs can be loaded into `testpmd`\n+for execution on a packet stream. See `bpf-load` and `bpf-unload`\n+commands documented in the `Testpmd Application User Guide` for\n+details on how to do so.\ndiff --git a/test/bpf/dummy.c b/examples/bpf/dummy.c\nsimilarity index 100%\nrename from test/bpf/dummy.c\nrename to examples/bpf/dummy.c\ndiff --git a/test/bpf/mbuf.h b/examples/bpf/mbuf.h\nsimilarity index 100%\nrename from test/bpf/mbuf.h\nrename to examples/bpf/mbuf.h\ndiff --git a/examples/bpf/meson.build b/examples/bpf/meson.build\nnew file mode 100644\nindex 000000000..0a817aaea\n--- /dev/null\n+++ b/examples/bpf/meson.build\n@@ -0,0 +1,6 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2019 Intel Corporation\n+\n+# This contains BPF example code for use in testing BPF with testpmd,\n+# therefore it should not be built as part of a meson build.\n+build=false\ndiff --git a/test/bpf/t1.c b/examples/bpf/t1.c\nsimilarity index 100%\nrename from test/bpf/t1.c\nrename to examples/bpf/t1.c\ndiff --git a/test/bpf/t2.c b/examples/bpf/t2.c\nsimilarity index 100%\nrename from test/bpf/t2.c\nrename to examples/bpf/t2.c\ndiff --git a/test/bpf/t3.c b/examples/bpf/t3.c\nsimilarity index 100%\nrename from test/bpf/t3.c\nrename to examples/bpf/t3.c\n",
    "prefixes": [
        "v2",
        "4/5"
    ]
}