get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 79456,
    "url": "https://patches.dpdk.org/api/patches/79456/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201001102010.36861-40-cristian.dumitrescu@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": "<20201001102010.36861-40-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201001102010.36861-40-cristian.dumitrescu@intel.com",
    "date": "2020-10-01T10:20:07",
    "name": "[v7,39/42] examples/pipeline: add l2fwd example",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a8e148631dc5f7bd6aa95487b88b56ae67bfed27",
    "submitter": {
        "id": 19,
        "url": "https://patches.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20201001102010.36861-40-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 12639,
            "url": "https://patches.dpdk.org/api/series/12639/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12639",
            "date": "2020-10-01T10:19:29",
            "name": "Pipeline alignment with the P4 language",
            "version": 7,
            "mbox": "https://patches.dpdk.org/series/12639/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/79456/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/79456/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 36F7DA04B5;\n\tThu,  1 Oct 2020 12:35:12 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 790021DC59;\n\tThu,  1 Oct 2020 12:21:20 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id 2F6ED1DC1C\n for <dev@dpdk.org>; Thu,  1 Oct 2020 12:21:09 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Oct 2020 03:21:07 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by fmsmga005.fm.intel.com with ESMTP; 01 Oct 2020 03:21:06 -0700"
        ],
        "IronPort-SDR": [
            "\n 3oIqGrPWuqQIG6bZToaRaaFLlroVUd0k4d1/tV0y80knrheJZSBGWAXh5/hKH40BxvgnCjkLWy\n TrwKit7YsO0Q==",
            "\n hSgkmLhUCj4e49d7f6qMmE79aVTOAG4e+9m7LUBuZ0RZzU0QPd/iJYNkOPsyZRnBIwE9X/i3nK\n I+YrWypkliCQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9760\"; a=\"224297249\"",
            "E=Sophos;i=\"5.77,323,1596524400\"; d=\"scan'208\";a=\"224297249\"",
            "E=Sophos;i=\"5.77,323,1596524400\"; d=\"scan'208\";a=\"515443518\""
        ],
        "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",
        "Cc": "thomas@monjalon.net,\n\tdavid.marchand@redhat.com",
        "Date": "Thu,  1 Oct 2020 11:20:07 +0100",
        "Message-Id": "<20201001102010.36861-40-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20201001102010.36861-1-cristian.dumitrescu@intel.com>",
        "References": "<20200930063416.68428-2-cristian.dumitrescu@intel.com>\n <20201001102010.36861-1-cristian.dumitrescu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v7 39/42] 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..d89caf2d0\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) 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..0cf5e32fa\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) 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": [
        "v7",
        "39/42"
    ]
}