get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 36033,
    "url": "https://patches.dpdk.org/api/patches/36033/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180312172615.6621-45-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-45-jasvinder.singh@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180312172615.6621-45-jasvinder.singh@intel.com",
    "date": "2018-03-12T17:26:15",
    "name": "[dpdk-dev,v2,44/44] ip_pipeline: add flow classification example",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "83e389404ba42c81ba894227627e2aab9404ceef",
    "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-45-jasvinder.singh@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/36033/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/36033/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 822151B3FF;\n\tMon, 12 Mar 2018 18:53:12 +0100 (CET)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id 4AA621AFF6\n\tfor <dev@dpdk.org>; Mon, 12 Mar 2018 18:52:55 +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:16 -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:15 -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=\"182013262\"",
        "From": "Jasvinder Singh <jasvinder.singh@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "cristian.dumitrescu@intel.com,\n\tFan Zhang <roy.fan.zhang@intel.com>",
        "Date": "Mon, 12 Mar 2018 17:26:15 +0000",
        "Message-Id": "<20180312172615.6621-45-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 44/44] ip_pipeline: add flow classification\n\texample",
        "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 build pipeline with hash table to classify the\ningress traffic.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Jasvinder Singh <jasvinder.singh@intel.com>\nSigned-off-by: Fan Zhang <roy.fan.zhang@intel.com>\n---\n examples/ip_pipeline/examples/flow.cli | 60 ++++++++++++++++++++++++++++++++++\n 1 file changed, 60 insertions(+)\n create mode 100644 examples/ip_pipeline/examples/flow.cli",
    "diff": "diff --git a/examples/ip_pipeline/examples/flow.cli b/examples/ip_pipeline/examples/flow.cli\nnew file mode 100644\nindex 0000000..60b8445\n--- /dev/null\n+++ b/examples/ip_pipeline/examples/flow.cli\n@@ -0,0 +1,60 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2010-2018 Intel Corporation\n+\n+;                 ________________\n+; LINK0 RXQ0 --->|                |---> LINK0 TXQ0\n+;                |                |\n+; LINK1 RXQ0 --->|                |---> LINK1 TXQ0\n+;                |      Flow      |\n+; LINK2 RXQ0 --->| Classification |---> LINK2 TXQ0\n+;                |                |\n+; LINK3 RXQ0 --->|                |---> LINK3 TXQ0\n+;                |________________|\n+;                        |\n+;                        +-----------> SINK0 (flow lookup miss)\n+;\n+; Input packet: Ethernet/IPv4\n+;\n+; Packet buffer layout:\n+; #   Field Name       Offset (Bytes)   Size (Bytes)\n+; 0   Mbuf             0                128\n+; 1   Headroom         128              128\n+; 2   Ethernet header  256              14\n+; 3   IPv4 header      270              20\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+link LINK2 dev 0000:06:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+link LINK3 dev 0000:06:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\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 link LINK1 rxq 0\n+pipeline PIPELINE0 port in bsz 32 link LINK2 rxq 0\n+pipeline PIPELINE0 port in bsz 32 link LINK3 rxq 0\n+\n+pipeline PIPELINE0 port out bsz 32 link LINK0 txq 0\n+pipeline PIPELINE0 port out bsz 32 link LINK1 txq 0\n+pipeline PIPELINE0 port out bsz 32 link LINK2 txq 0\n+pipeline PIPELINE0 port out bsz 32 link LINK3 txq 0\n+pipeline PIPELINE0 port out bsz 32 sink SINK0\n+\n+pipeline PIPELINE0 table match hash ext key 16 mask 00FF0000FFFFFFFFFFFFFFFFFFFFFFFF offset 278 buckets 16K size 65K action AP0\n+\n+pipeline PIPELINE0 port in 0 table 0\n+pipeline PIPELINE0 port in 1 table 0\n+pipeline PIPELINE0 port in 2 table 0\n+pipeline PIPELINE0 port in 3 table 0\n+\n+thread 1 pipeline PIPELINE0 enable\n+\n+pipeline PIPELINE0 table 0 rule add match default action fwd port 4\n+pipeline PIPELINE0 table 0 rule add match hash ipv4_5tuple 100.0.0.10 200.0.0.10 100 200 6 action fwd port 0\n+pipeline PIPELINE0 table 0 rule add match hash ipv4_5tuple 100.0.0.11 200.0.0.11 101 201 6 action fwd port 1\n+pipeline PIPELINE0 table 0 rule add match hash ipv4_5tuple 100.0.0.12 200.0.0.12 102 202 6 action fwd port 2\n+pipeline PIPELINE0 table 0 rule add match hash ipv4_5tuple 100.0.0.13 200.0.0.13 103 203 6 action fwd port 3\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "44/44"
    ]
}