get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 36029,
    "url": "https://patches.dpdk.org/api/patches/36029/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180312172615.6621-41-jasvinder.singh@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20180312172615.6621-41-jasvinder.singh@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180312172615.6621-41-jasvinder.singh@intel.com",
    "date": "2018-03-12T17:26:11",
    "name": "[dpdk-dev,v2,40/44] ip_pipeline: add KNI port example",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5c65f739bc4855d062dd0120a848e5398bb8b3c3",
    "submitter": {
        "id": 285,
        "url": "https://patches.dpdk.org/api/people/285/?format=api",
        "name": "Jasvinder Singh",
        "email": "jasvinder.singh@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180312172615.6621-41-jasvinder.singh@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/36029/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/36029/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 62F5E1B3EC;\n\tMon, 12 Mar 2018 18:53:10 +0100 (CET)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id DA7241AFEF\n\tfor <dev@dpdk.org>; Mon, 12 Mar 2018 18:52:53 +0100 (CET)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t12 Mar 2018 10:27:11 -0700",
            "from silpixa00381635.ir.intel.com (HELO\n\tsilpixa00381635.ger.corp.intel.com) ([10.237.222.149])\n\tby orsmga004.jf.intel.com with ESMTP; 12 Mar 2018 10:27:10 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.47,462,1515484800\"; d=\"scan'208\";a=\"182013237\"",
        "From": "Jasvinder Singh <jasvinder.singh@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "cristian.dumitrescu@intel.com,\n\tKevin Laatz <kevin.laatz@intel.com>",
        "Date": "Mon, 12 Mar 2018 17:26:11 +0000",
        "Message-Id": "<20180312172615.6621-41-jasvinder.singh@intel.com>",
        "X-Mailer": "git-send-email 2.9.3",
        "In-Reply-To": "<20180312172615.6621-1-jasvinder.singh@intel.com>",
        "References": "<20180309182426.135278-2-jasvinder.singh@intel.com>\n\t<20180312172615.6621-1-jasvinder.singh@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 40/44] ip_pipeline: add KNI port example",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add example to illustrate the pipeline functioning with KNI\ninterface.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Jasvinder Singh <jasvinder.singh@intel.com>\nSigned-off-by: Kevin Laatz <kevin.laatz@intel.com>\n---\n examples/ip_pipeline/examples/kni.cli | 69 +++++++++++++++++++++++++++++++++++\n 1 file changed, 69 insertions(+)\n create mode 100644 examples/ip_pipeline/examples/kni.cli",
    "diff": "diff --git a/examples/ip_pipeline/examples/kni.cli b/examples/ip_pipeline/examples/kni.cli\nnew file mode 100644\nindex 0000000..1438340\n--- /dev/null\n+++ b/examples/ip_pipeline/examples/kni.cli\n@@ -0,0 +1,69 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2010-2018 Intel Corporation\n+\n+;                 _______________          ______________________\n+;                |               |  KNI0  |                      |\n+; LINK0 RXQ0 --->|...............|------->|--+                   |\n+;                |               |  KNI1  |  | br0               |\n+; LINK1 TXQ0 <---|...............|<-------|<-+                   |\n+;                |               |        |     Linux Kernel     |\n+;                |   PIPELINE0   |        |     Network Stack    |\n+;                |               |  KNI1  |                      |\n+; LINK1 RXQ0 --->|...............|------->|--+                   |\n+;                |               |  KNI0  |  | br0               |\n+; LINK0 TXQ0 <---|...............|<-------|<-+                   |\n+;                |_______________|        |______________________|\n+;\n+; Insert Linux kernel KNI module:\n+;    [Linux]$ insmod rte_kni.ko\n+;\n+; Configure Linux kernel bridge between KNI0 and KNI1 interfaces:\n+;    [Linux]$ brctl addbr br0\n+;    [Linux]$ brctl addif br0 KNI0\n+;    [Linux]$ brctl addif br0 KNI1\n+;    [Linux]$ ifconfig br0 up\n+;    [Linux]$ ifconfig KNI0 up\n+;    [Linux]$ ifconfig KNI1 up\n+;\n+; Monitor packet forwarding performed by Linux kernel between KNI0 and KNI1:\n+;    [Linux]$ tcpdump -i KNI0\n+;    [Linux]$ tcpdump -i KNI1\n+\n+mempool MEMPOOL0 buffer 2304 pool 32K cache 256 cpu 0\n+\n+link LINK0 dev 0000:02:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+link LINK1 dev 0000:02:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+\n+kni KNI0 link LINK0 mempool MEMPOOL0\n+kni KNI1 link LINK1 mempool MEMPOOL0\n+\n+table action profile AP0 ipv4 offset 270 fwd\n+\n+pipeline PIPELINE0 period 10 offset_port_id 0 cpu 0\n+\n+pipeline PIPELINE0 port in bsz 32 link LINK0 rxq 0\n+pipeline PIPELINE0 port in bsz 32 kni KNI1\n+pipeline PIPELINE0 port in bsz 32 link LINK1 rxq 0\n+pipeline PIPELINE0 port in bsz 32 kni KNI0\n+\n+pipeline PIPELINE0 port out bsz 32 kni KNI0\n+pipeline PIPELINE0 port out bsz 32 link LINK1 txq 0\n+pipeline PIPELINE0 port out bsz 32 kni KNI1\n+pipeline PIPELINE0 port out bsz 32 link LINK0 txq 0\n+\n+pipeline PIPELINE0 table match stub action AP0\n+pipeline PIPELINE0 table match stub action AP0\n+pipeline PIPELINE0 table match stub action AP0\n+pipeline PIPELINE0 table match stub action AP0\n+\n+pipeline PIPELINE0 port in 0 table 0\n+pipeline PIPELINE0 port in 1 table 1\n+pipeline PIPELINE0 port in 2 table 2\n+pipeline PIPELINE0 port in 3 table 3\n+\n+thread 1 pipeline PIPELINE0 enable\n+\n+pipeline PIPELINE0 table 0 rule add match default action fwd port 0\n+pipeline PIPELINE0 table 1 rule add match default action fwd port 1\n+pipeline PIPELINE0 table 2 rule add match default action fwd port 2\n+pipeline PIPELINE0 table 3 rule add match default action fwd port 3\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "40/44"
    ]
}