Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/120271/?format=api
https://patches.dpdk.org/api/patches/120271/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20221129060241.901035-2-yogesh.jangra@intel.com/", "project": { "id": 3, "url": "https://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20221129060241.901035-2-yogesh.jangra@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20221129060241.901035-2-yogesh.jangra@intel.com", "date": "2022-11-29T06:02:40", "name": "[1/2] dep/pipeline: added dependencies for validate_002 test case", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "5d1cfbcd6a237fa31a2ab41fdc4f1418e67f25b4", "submitter": { "id": 2025, "url": "https://patches.dpdk.org/api/people/2025/?format=api", "name": "Yogesh Jangra", "email": "yogesh.jangra@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20221129060241.901035-2-yogesh.jangra@intel.com/mbox/", "series": [ { "id": 25919, "url": "https://patches.dpdk.org/api/series/25919/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=25919", "date": "2022-11-29T06:02:39", "name": "added test case for validate instruction", "version": 1, "mbox": "https://patches.dpdk.org/series/25919/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/120271/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/120271/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 9DC61A04FD;\n\tTue, 29 Nov 2022 14:26:02 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 986FE40691;\n\tTue, 29 Nov 2022 14:26:02 +0100 (CET)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id AD91D4067E\n for <dts@dpdk.org>; Tue, 29 Nov 2022 14:26:00 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 29 Nov 2022 05:26:00 -0800", "from ena4.iind.intel.com ([10.190.200.193])\n by orsmga003.jf.intel.com with ESMTP; 29 Nov 2022 05:25:57 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1669728360; x=1701264360;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=NUp83ro6TOXlsSusA8jmVEwPwXtdtnZIB1+K51gmX2k=;\n b=MVlWY4URoIvF+E4cdSYt8+z9CwoAvHYv+6+aLKF//tW+GiRbuDNzu9PN\n WieqRZ2E8lAptlOFIIuWsEAcusVqK4ekbAFrG5nqh8RpIK3/A31OoQ2Zn\n gh4zEHBSCnXAHDZayDq8H+w0rByciBCRG4pdo+yjOq0/cu5H2edJUhYWd\n xBb8Z4P4u1DKgGAyKzKuiaSGRzMTMN9ZL3oPYSS2aW9xWjTi8x/1ejJRx\n ajfZkB3gWPkhm8DoSc0ZSP/UWpgPpZNjlQMi4fSACRnDbI9eDtMLBq04t\n +uapO8GHN61oyvFkVfITnW1J/hl1JWICs+LlMzo+UIf3jQ5hFhH46at6P g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10545\"; a=\"401396794\"", "E=Sophos;i=\"5.96,203,1665471600\"; d=\"scan'208\";a=\"401396794\"", "E=McAfee;i=\"6500,9779,10545\"; a=\"594258052\"", "E=Sophos;i=\"5.96,203,1665471600\"; d=\"scan'208\";a=\"594258052\"" ], "X-ExtLoop1": "1", "From": "Yogesh Jangra <yogesh.jangra@intel.com>", "To": "dts@dpdk.org", "Cc": "cristian.dumitrescu@intel.com, kamalakannan.r@intel.com,\n harshad.suresh.narayane@intel.com, yogesh.jangra@intel.com", "Subject": "[PATCH 1/2] dep/pipeline: added dependencies for validate_002 test\n case", "Date": "Tue, 29 Nov 2022 06:02:40 +0000", "Message-Id": "<20221129060241.901035-2-yogesh.jangra@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20221129060241.901035-1-yogesh.jangra@intel.com>", "References": "<20221129060241.901035-1-yogesh.jangra@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "Added dependencies for the validate_002 test case.\n\nSigned-off-by: Yogesh Jangra <yogesh.jangra@intel.com>\n---\n dep/pipeline/validate_002/ethdev.io | 27 ++++++\n dep/pipeline/validate_002/pcap_files/in_1.txt | 16 ++++\n .../validate_002/pcap_files/out_1.txt | 12 +++\n dep/pipeline/validate_002/readme.md | 12 +++\n dep/pipeline/validate_002/table.txt | 1 +\n dep/pipeline/validate_002/validate_002.cli | 22 +++++\n dep/pipeline/validate_002/validate_002.spec | 82 +++++++++++++++++++\n 7 files changed, 172 insertions(+)\n create mode 100644 dep/pipeline/validate_002/ethdev.io\n create mode 100644 dep/pipeline/validate_002/pcap_files/in_1.txt\n create mode 100644 dep/pipeline/validate_002/pcap_files/out_1.txt\n create mode 100644 dep/pipeline/validate_002/readme.md\n create mode 100644 dep/pipeline/validate_002/table.txt\n create mode 100644 dep/pipeline/validate_002/validate_002.cli\n create mode 100644 dep/pipeline/validate_002/validate_002.spec", "diff": "diff --git a/dep/pipeline/validate_002/ethdev.io b/dep/pipeline/validate_002/ethdev.io\nnew file mode 100644\nindex 00000000..4e31f499\n--- /dev/null\n+++ b/dep/pipeline/validate_002/ethdev.io\n@@ -0,0 +1,27 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2022 Intel Corporation\n+\n+;\n+; Pipeline packet mirroring.\n+;\n+mirroring slots 4 sessions 64\n+\n+;\n+; Pipeline input ports.\n+;\n+; Note: Customize the parameters below to match your setup.\n+;\n+port in 0 ethdev 0000:00:04.0 rxq 0 bsz 1\n+port in 1 ethdev 0000:00:05.0 rxq 0 bsz 1\n+port in 2 ethdev 0000:00:06.0 rxq 0 bsz 1\n+port in 3 ethdev 0000:00:07.0 rxq 0 bsz 1\n+\n+;\n+; Pipeline output ports.\n+;\n+; Note: Customize the parameters below to match your setup.\n+;\n+port out 0 ethdev 0000:00:04.0 txq 0 bsz 1\n+port out 1 ethdev 0000:00:05.0 txq 0 bsz 1\n+port out 2 ethdev 0000:00:06.0 txq 0 bsz 1\n+port out 3 ethdev 0000:00:07.0 txq 0 bsz 1\ndiff --git a/dep/pipeline/validate_002/pcap_files/in_1.txt b/dep/pipeline/validate_002/pcap_files/in_1.txt\nnew file mode 100644\nindex 00000000..bab3ce5c\n--- /dev/null\n+++ b/dep/pipeline/validate_002/pcap_files/in_1.txt\n@@ -0,0 +1,16 @@\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 00 11 22 33 44 55 00 66 77 88 99 aa 08 00 45 00\n+000010 00 2e 00 01 00 00 00 06 4e b5 64 00 00 0a c8 00\n+000020 00 0a 00 64 00 c8 aa bb cc de aa bb cc df 50 02\n+000030 20 00 59 93 00 00 58 58 58 58 58 58\n+# Packet 1\n+000000 52 54 00 12 44 57 52 54 00 12 34 56 81 00 00 02\n+000010 08 00 45 00 00 1a 00 01 00 00 40 00 b2 d8 64 00\n+000020 00 01 64 00 00 0a 58 58 58 58 58 58\n\\ No newline at end of file\ndiff --git a/dep/pipeline/validate_002/pcap_files/out_1.txt b/dep/pipeline/validate_002/pcap_files/out_1.txt\nnew file mode 100644\nindex 00000000..9e448bda\n--- /dev/null\n+++ b/dep/pipeline/validate_002/pcap_files/out_1.txt\n@@ -0,0 +1,12 @@\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 52 54 00 12 44 57 ff ee dd cc bb aa 81 00 00 02\n+000010 81 00 52 54 00 12 44 57 52 54 00 12 34 56 81 00\n+000020 00 02 08 00 45 00 00 1a 00 01 00 00 40 00 b2 d8\n+000030 64 00 00 01 64 00 00 0a 58 58 58 58 58 58\n\\ No newline at end of file\ndiff --git a/dep/pipeline/validate_002/readme.md b/dep/pipeline/validate_002/readme.md\nnew file mode 100644\nindex 00000000..2f49d703\n--- /dev/null\n+++ b/dep/pipeline/validate_002/readme.md\n@@ -0,0 +1,12 @@\n+Test Case: validate_002\n+-----------------------\n+\n+ Instructions being tested:\n+ validate h.header\n+\n+ Description:\n+ For the received packet, if its ether type is 8100 then add a new ethernet header\n+ on the top of the packet. Otherwise drop the packet.\n+\n+ Verification:\n+ The packet with ether type 0806 should be received with a new header on top.\ndiff --git a/dep/pipeline/validate_002/table.txt b/dep/pipeline/validate_002/table.txt\nnew file mode 100644\nindex 00000000..955de4d2\n--- /dev/null\n+++ b/dep/pipeline/validate_002/table.txt\n@@ -0,0 +1 @@\n+match 0x8100 action validate_002_action ethernet_src_addr 0xffeeddccbbaa\ndiff --git a/dep/pipeline/validate_002/validate_002.cli b/dep/pipeline/validate_002/validate_002.cli\nnew file mode 100644\nindex 00000000..fe778cdf\n--- /dev/null\n+++ b/dep/pipeline/validate_002/validate_002.cli\n@@ -0,0 +1,22 @@\n+; SPDX-License-Identifier: BSD-3-Clause\n+; Copyright(c) 2010-2020 Intel Corporation\n+\n+;\n+; Pipeline code generation & shared object library build\n+;\n+pipeline codegen /tmp/pipeline/validate_002/validate_002.spec /tmp/pipeline/validate_002/validate_002.c\n+pipeline libbuild /tmp/pipeline/validate_002/validate_002.c /tmp/pipeline/validate_002/validate_002.so\n+\n+mempool MEMPOOL0 buffer 9472 pool 32K cache 256 cpu 0\n+\n+ethdev 0000:00:04.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+ethdev 0000:00:05.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+ethdev 0000:00:06.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+ethdev 0000:00:07.0 rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on\n+\n+\n+pipeline PIPELINE0 build lib /tmp/pipeline/validate_002/validate_002.so io /tmp/pipeline/validate_002/ethdev.io numa 0\n+pipeline PIPELINE0 table validate_002 add /tmp/pipeline/validate_002/table.txt\n+pipeline PIPELINE0 commit\n+\n+thread 1 pipeline PIPELINE0 enable\ndiff --git a/dep/pipeline/validate_002/validate_002.spec b/dep/pipeline/validate_002/validate_002.spec\nnew file mode 100644\nindex 00000000..f29f30e1\n--- /dev/null\n+++ b/dep/pipeline/validate_002/validate_002.spec\n@@ -0,0 +1,82 @@\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+struct vlan_h {\n+\tbit<16> pcp_cfi_vid\n+\tbit<16> ether_type\n+}\n+\n+header ethernet instanceof ethernet_h\n+header outer_ethernet instanceof ethernet_h\n+header vlan instanceof vlan_h\n+\n+//\n+// Packet meta-data.\n+//\n+struct metadata_t {\n+\tbit<32> port\n+}\n+\n+metadata instanceof metadata_t\n+\n+//\n+// Actions\n+//\n+struct validate_002_args_t {\n+\tbit<48> ethernet_src_addr\n+}\n+\n+action validate_002_action args instanceof validate_002_args_t {\n+\tvalidate h.outer_ethernet\n+\tmov h.outer_ethernet.dst_addr h.ethernet.dst_addr\n+\tmov h.outer_ethernet.src_addr t.ethernet_src_addr\n+\tmov h.outer_ethernet.ether_type 0x8100\n+\tvalidate h.vlan\n+\tmov h.vlan.ether_type h.ethernet.ether_type\n+\tmov h.vlan.pcp_cfi_vid 2\n+\n+\treturn\n+}\n+\n+action drop args none {\n+\tdrop\n+}\n+\n+//\n+// Tables.\n+//\n+table validate_002 {\n+\tkey {\n+\t\th.ethernet.ether_type exact\n+\t}\n+\n+\tactions {\n+\t\tvalidate_002_action\n+\t\tdrop\n+\t}\n+\n+\tdefault_action drop args none\n+\tsize 1048576\n+}\n+\n+//\n+// Pipeline.\n+//\n+apply {\n+\trx m.port\n+\textract h.ethernet\n+\ttable validate_002\n+\temit h.outer_ethernet\n+\temit h.vlan\n+\temit h.ethernet\n+\ttx m.port\n+}\n", "prefixes": [ "1/2" ] }{ "id": 120271, "url": "