get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76972,
    "url": "http://patches.dpdk.org/api/patches/76972/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200908201830.74206-40-cristian.dumitrescu@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": "<20200908201830.74206-40-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200908201830.74206-40-cristian.dumitrescu@intel.com",
    "date": "2020-09-08T20:18:28",
    "name": "[v3,39/41] examples/pipeline: add l2fwd example",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "b3c2415f8f304dae0cf1bffa584c95c011a85b8c",
    "submitter": {
        "id": 19,
        "url": "http://patches.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@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/20200908201830.74206-40-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 12034,
            "url": "http://patches.dpdk.org/api/series/12034/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12034",
            "date": "2020-09-08T20:17:52",
            "name": "Pipeline alignment with the P4 language",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/12034/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/76972/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/76972/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8F19CA04B1;\n\tTue,  8 Sep 2020 22:25:19 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 69A6E1C12B;\n\tTue,  8 Sep 2020 22:19:50 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id 2E7AF1C1A5\n for <dev@dpdk.org>; Tue,  8 Sep 2020 22:19:13 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Sep 2020 13:19:12 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by fmsmga006.fm.intel.com with ESMTP; 08 Sep 2020 13:19:11 -0700"
        ],
        "IronPort-SDR": [
            "\n 2bteyoHwA+uAOIS0+5GQC0BA8SjWY/moATLUArds79UfnOTdHuNlcCSmHphUv3xPzbWm9R8j25\n zDTnQKHSMhuQ==",
            "\n LjGOPF/V8m+eBOKhXYE7whjp5wUH71fyoBzYeI94/gB9DWOwyE6nmYjvh0gZJGOkAfWuKPklR5\n O3oX+OW8qdpw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9738\"; a=\"145939464\"",
            "E=Sophos;i=\"5.76,407,1592895600\"; d=\"scan'208\";a=\"145939464\"",
            "E=Sophos;i=\"5.76,406,1592895600\"; d=\"scan'208\";a=\"504493567\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Tue,  8 Sep 2020 21:18:28 +0100",
        "Message-Id": "<20200908201830.74206-40-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200908201830.74206-1-cristian.dumitrescu@intel.com>",
        "References": "<20200907214032.95052-2-cristian.dumitrescu@intel.com>\n <20200908201830.74206-1-cristian.dumitrescu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 39/41] examples/pipeline: add l2fwd 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://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add L2 Forwarding example to the SWX pipeline application. Example\ncommand line: ./build/pipeline -l0-1 -- -s ./examples/l2fwd.cli\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n examples/pipeline/examples/l2fwd.cli      |  25 ++++++\n examples/pipeline/examples/l2fwd.spec     |  42 +++++++++\n examples/pipeline/examples/l2fwd_pcap.cli |  20 +++++\n examples/pipeline/examples/packet.txt     | 102 ++++++++++++++++++++++\n 4 files changed, 189 insertions(+)\n create mode 100644 examples/pipeline/examples/l2fwd.cli\n create mode 100644 examples/pipeline/examples/l2fwd.spec\n create mode 100644 examples/pipeline/examples/l2fwd_pcap.cli\n create mode 100644 examples/pipeline/examples/packet.txt",
    "diff": "diff --git a/examples/pipeline/examples/l2fwd.cli b/examples/pipeline/examples/l2fwd.cli\nnew file mode 100644\nindex 000000000..c6a3b9d04\n--- /dev/null\n+++ b/examples/pipeline/examples/l2fwd.cli\n@@ -0,0 +1,25 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2010-2020 Intel Corporation\n+\n+mempool MEMPOOL0 buffer 2304 pool 32K cache 256 cpu 0\n+\n+link LINK0 dev 0000:18:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+link LINK1 dev 0000:18:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+link LINK2 dev 0000:3b:00.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+link LINK3 dev 0000:3b:00.1 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+\n+pipeline PIPELINE0 create 0\n+\n+pipeline PIPELINE0 port in 0 link LINK0 rxq 0 bsz 32\n+pipeline PIPELINE0 port in 1 link LINK1 rxq 0 bsz 32\n+pipeline PIPELINE0 port in 2 link LINK2 rxq 0 bsz 32\n+pipeline PIPELINE0 port in 3 link LINK3 rxq 0 bsz 32\n+\n+pipeline PIPELINE0 port out 0 link LINK0 txq 0 bsz 32\n+pipeline PIPELINE0 port out 1 link LINK1 txq 0 bsz 32\n+pipeline PIPELINE0 port out 2 link LINK2 txq 0 bsz 32\n+pipeline PIPELINE0 port out 3 link LINK3 txq 0 bsz 32\n+\n+pipeline PIPELINE0 build ./examples/pipeline/examples/l2fwd.spec\n+\n+thread 1 pipeline PIPELINE0 enable\ndiff --git a/examples/pipeline/examples/l2fwd.spec b/examples/pipeline/examples/l2fwd.spec\nnew file mode 100644\nindex 000000000..0aebafd07\n--- /dev/null\n+++ b/examples/pipeline/examples/l2fwd.spec\n@@ -0,0 +1,42 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2020 Intel Corporation\n+\n+//\n+// Meta-data.\n+//\n+struct metadata_t {\n+\tbit<32> port_in\n+\tbit<32> port_out\n+}\n+\n+metadata instanceof metadata_t\n+\n+//\n+// Actions.\n+//\n+action NoAction args none {\n+\treturn\n+}\n+\n+//\n+// Tables.\n+//\n+table stub {\n+\tkey {\n+\t}\n+\n+\tactions {\n+\t\tNoAction\n+\t}\n+\n+\tdefault_action NoAction args none const\n+}\n+\n+//\n+// Pipeline.\n+//\n+apply {\n+\trx m.port_in\n+\ttable stub\n+\ttx m.port_in\n+}\ndiff --git a/examples/pipeline/examples/l2fwd_pcap.cli b/examples/pipeline/examples/l2fwd_pcap.cli\nnew file mode 100644\nindex 000000000..be7773b58\n--- /dev/null\n+++ b/examples/pipeline/examples/l2fwd_pcap.cli\n@@ -0,0 +1,20 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2010-2020 Intel Corporation\n+\n+mempool MEMPOOL0 buffer 2304 pool 32K cache 256 cpu 0\n+\n+pipeline PIPELINE0 create 0\n+\n+pipeline PIPELINE0 port in 0 source MEMPOOL0 ./examples/packet.pcap\n+pipeline PIPELINE0 port in 1 source MEMPOOL0 ./examples/packet.pcap\n+pipeline PIPELINE0 port in 2 source MEMPOOL0 ./examples/packet.pcap\n+pipeline PIPELINE0 port in 3 source MEMPOOL0 ./examples/packet.pcap\n+\n+pipeline PIPELINE0 port out 0 sink none\n+pipeline PIPELINE0 port out 1 sink none\n+pipeline PIPELINE0 port out 2 sink none\n+pipeline PIPELINE0 port out 3 sink none\n+\n+pipeline PIPELINE0 build ./examples/l2fwd.spec\n+\n+thread 1 pipeline PIPELINE0 enable\ndiff --git a/examples/pipeline/examples/packet.txt b/examples/pipeline/examples/packet.txt\nnew file mode 100644\nindex 000000000..d1c79b7e7\n--- /dev/null\n+++ b/examples/pipeline/examples/packet.txt\n@@ -0,0 +1,102 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2020 Intel Corporation\n+#\n+\n+#Text to PCAP: text2pcap packet.txt packet.pcap\n+#PCAP to text: tcpdump -r packet.pcap -xx\n+\n+#Packet 0\n+000000 aa bb cc dd 00 00 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 1\n+000000 aa bb cc dd 00 01 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 2\n+000000 aa bb cc dd 00 02 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 3\n+000000 aa bb cc dd 00 03 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 4\n+000000 aa bb cc dd 00 04 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 5\n+000000 aa bb cc dd 00 05 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 6\n+000000 aa bb cc dd 00 06 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 7\n+000000 aa bb cc dd 00 07 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 8\n+000000 aa bb cc dd 00 08 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 9\n+000000 aa bb cc dd 00 09 b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 10\n+000000 aa bb cc dd 00 0a b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 11\n+000000 aa bb cc dd 00 0b b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 12\n+000000 aa bb cc dd 00 0c b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 13\n+000000 aa bb cc dd 00 0d b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 14\n+000000 aa bb cc dd 00 0e b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n+\n+#Packet 15\n+000000 aa bb cc dd 00 0f b0 b1 b2 b3 b4 b5 08 00 45 00\n+000010 00 2e 00 00 00 00 40 11 00 00 c0 c1 c2 c3 d0 d1\n+000020 d2 d3 e0 e1 f0 f1 00 1a 00 00 00 01 02 03 04 05\n+000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11\n",
    "prefixes": [
        "v3",
        "39/41"
    ]
}