Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/79457/?format=api
https://patches.dpdk.org/api/patches/79457/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201001102010.36861-41-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-41-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201001102010.36861-41-cristian.dumitrescu@intel.com", "date": "2020-10-01T10:20:08", "name": "[v7,40/42] examples/pipeline: add l2fwd with MAC swap example", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "e0eedd59a0037a2985550ac151b35e61a3bba631", "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-41-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/79457/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/79457/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 A1CF6A04B5;\n\tThu, 1 Oct 2020 12:35:31 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 07D621DC5C;\n\tThu, 1 Oct 2020 12:21:22 +0200 (CEST)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id 7172D1DC24\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:08 -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:07 -0700" ], "IronPort-SDR": [ "\n LWL8AlHrxVCrijiLpRf+ShzuCB0BPwi2741lMlyDb0+3IwR0B5buZr/gvrjHAgo0EH7KUxKkH7\n iTrX2IxTWUFQ==", "\n x3BsruGQqsSd6535ePCh6zEFg0/MEpbvsdbELLNcEVXPyLaBXKxbGGiICHMunDpE5yqCuXezad\n B8ZkmetfqgvA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9760\"; a=\"224297251\"", "E=Sophos;i=\"5.77,323,1596524400\"; d=\"scan'208\";a=\"224297251\"", "E=Sophos;i=\"5.77,323,1596524400\"; d=\"scan'208\";a=\"515443523\"" ], "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:08 +0100", "Message-Id": "<20201001102010.36861-41-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 40/42] examples/pipeline: add l2fwd with MAC\n\tswap 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 with MAC destination and source address swap\nto the SWX pipeline application. Example command line:\n./build/pipeline -l0-1 -- -s ./examples/l2fwd_macswp.cli\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n examples/pipeline/examples/l2fwd_macswp.cli | 25 ++++++++\n examples/pipeline/examples/l2fwd_macswp.spec | 59 +++++++++++++++++++\n .../pipeline/examples/l2fwd_macswp_pcap.cli | 20 +++++++\n 3 files changed, 104 insertions(+)\n create mode 100644 examples/pipeline/examples/l2fwd_macswp.cli\n create mode 100644 examples/pipeline/examples/l2fwd_macswp.spec\n create mode 100644 examples/pipeline/examples/l2fwd_macswp_pcap.cli", "diff": "diff --git a/examples/pipeline/examples/l2fwd_macswp.cli b/examples/pipeline/examples/l2fwd_macswp.cli\nnew file mode 100644\nindex 000000000..0f2a89ac5\n--- /dev/null\n+++ b/examples/pipeline/examples/l2fwd_macswp.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_macswp.spec\n+\n+thread 1 pipeline PIPELINE0 enable\ndiff --git a/examples/pipeline/examples/l2fwd_macswp.spec b/examples/pipeline/examples/l2fwd_macswp.spec\nnew file mode 100644\nindex 000000000..e81f20622\n--- /dev/null\n+++ b/examples/pipeline/examples/l2fwd_macswp.spec\n@@ -0,0 +1,59 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2020 Intel Corporation\n+\n+//\n+// Packet headers.\n+//\n+struct ethernet_h {\n+\tbit<48> dst_addr\n+\tbit<48> src_addr\n+\tbit<16> ether_type\n+}\n+\n+header ethernet instanceof ethernet_h\n+\n+//\n+// Packet meta-data.\n+//\n+struct metadata_t {\n+\tbit<32> port\n+\tbit<48> addr\n+}\n+\n+metadata instanceof metadata_t\n+\n+//\n+// Actions.\n+//\n+action macswp args none {\n+\tmov m.addr h.ethernet.dst_addr\n+\tmov h.ethernet.dst_addr h.ethernet.src_addr\n+\tmov h.ethernet.src_addr m.addr\n+\treturn\n+}\n+\n+//\n+// Tables.\n+//\n+table stub {\n+\tkey {\n+\t}\n+\n+\tactions {\n+\t\tmacswp\n+\t}\n+\n+\tdefault_action macswp args none const\n+}\n+\n+//\n+// Pipeline.\n+//\n+apply {\n+\trx m.port\n+\textract h.ethernet\n+\ttable stub\n+\txor m.port 1\n+\temit h.ethernet\n+\ttx m.port\n+}\ndiff --git a/examples/pipeline/examples/l2fwd_macswp_pcap.cli b/examples/pipeline/examples/l2fwd_macswp_pcap.cli\nnew file mode 100644\nindex 000000000..043379cdd\n--- /dev/null\n+++ b/examples/pipeline/examples/l2fwd_macswp_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_macswp.spec\n+\n+thread 1 pipeline PIPELINE0 enable\n", "prefixes": [ "v7", "40/42" ] }{ "id": 79457, "url": "