Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/77201/?format=api
http://patches.dpdk.org/api/patches/77201/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200910152645.9342-41-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": "<20200910152645.9342-41-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200910152645.9342-41-cristian.dumitrescu@intel.com", "date": "2020-09-10T15:26:44", "name": "[v4,40/41] examples/pipeline: add l2fwd with MAC swap example", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e2812bd5f0ed1cbc7f13a8c3830f89c4bef14b21", "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/20200910152645.9342-41-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 12106, "url": "http://patches.dpdk.org/api/series/12106/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12106", "date": "2020-09-10T15:26:04", "name": "Pipeline alignment with the P4 language", "version": 4, "mbox": "http://patches.dpdk.org/series/12106/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/77201/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/77201/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 D4580A04B5;\n\tThu, 10 Sep 2020 17:35:41 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4FF631C2B7;\n\tThu, 10 Sep 2020 17:27:50 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by dpdk.org (Postfix) with ESMTP id DAEE11C1C1\n for <dev@dpdk.org>; Thu, 10 Sep 2020 17:27:24 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Sep 2020 08:27:24 -0700", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by orsmga005.jf.intel.com with ESMTP; 10 Sep 2020 08:27:23 -0700" ], "IronPort-SDR": [ "\n IKViDJc7mNEduqqXG/TcFxvrT9PHul362K21JV1BXS73mUf3JEGxo1yzpiFNR+mSFkN39UQDGm\n GWMv8bYKOqUA==", "\n oeWpQl8Iewu9e1F/Y0wEUaM4ZUCymo9vY6Ve++UKm1XxShjSfYRW3d/30VVsfgY/3A3v/M0yRp\n 8eUS3/x7GTxQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9739\"; a=\"155956264\"", "E=Sophos;i=\"5.76,413,1592895600\"; d=\"scan'208\";a=\"155956264\"", "E=Sophos;i=\"5.76,413,1592895600\"; d=\"scan'208\";a=\"480932320\"" ], "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": "Thu, 10 Sep 2020 16:26:44 +0100", "Message-Id": "<20200910152645.9342-41-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200910152645.9342-1-cristian.dumitrescu@intel.com>", "References": "<20200908201830.74206-2-cristian.dumitrescu@intel.com>\n <20200910152645.9342-1-cristian.dumitrescu@intel.com>", "Subject": "[dpdk-dev] [PATCH v4 40/41] 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..8031b2655\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) 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_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..9044d7d7f\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) 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_macswp.spec\n+\n+thread 1 pipeline PIPELINE0 enable\n", "prefixes": [ "v4", "40/41" ] }{ "id": 77201, "url": "