get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 105723,
    "url": "http://patches.dpdk.org/api/patches/105723/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/1641866138-122679-3-git-send-email-yogesh.jangra@intel.com/",
    "project": {
        "id": 3,
        "url": "http://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": "<1641866138-122679-3-git-send-email-yogesh.jangra@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/1641866138-122679-3-git-send-email-yogesh.jangra@intel.com",
    "date": "2022-01-11T01:55:38",
    "name": "[2/2] tests/pipeline: add support for annotations in pipeline test suite",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "258de8d7aa74ad3296642fd25165c68695257f22",
    "submitter": {
        "id": 2025,
        "url": "http://patches.dpdk.org/api/people/2025/?format=api",
        "name": "Yogesh Jangra",
        "email": "yogesh.jangra@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/1641866138-122679-3-git-send-email-yogesh.jangra@intel.com/mbox/",
    "series": [
        {
            "id": 21117,
            "url": "http://patches.dpdk.org/api/series/21117/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=21117",
            "date": "2022-01-11T01:55:38",
            "name": "add pipeline annotation and VM support test coverage",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/21117/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/105723/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/105723/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 BB7C4A034D;\n\tTue, 11 Jan 2022 10:09:40 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B1C2A4121E;\n\tTue, 11 Jan 2022 10:09:40 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id ADBED411AE\n for <dts@dpdk.org>; Tue, 11 Jan 2022 10:09:36 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Jan 2022 01:09:34 -0800",
            "from ena-4.iind.intel.com ([10.190.200.151])\n by orsmga001.jf.intel.com with ESMTP; 11 Jan 2022 01:09:29 -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=1641892179; x=1673428179;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=ru4pUiQT5V5YAgmQRz9KT6jTNpa4t+Kn4epWezOGS0c=;\n b=IRFUsc/c4TA49ZG9oiIa5+rNgzxej3TkbudiMsoktyDBA99g4SMIdfSQ\n tsKpoleGoiOAvcCb6fJw1L9lp8PTVAg9zHWMUQbJJUZ6E1d8hzDkI79ax\n 8GQoWbYR3E5QgCO38CN1d0onKwzcUEfz47spm1OMCS7y0wa5OSgy83CqF\n La1RGaqx0krIC2Ev/IqiipQeZ80f20/LYfh6kqrXcyNIEFWI40zmg0LMY\n KaNvXS8RXp4ESJveiM67PbahAFfCpAgzSdUxwBClqOGL/kLPswZ7Zeh9x\n VQ9fypDnGffVjTymoIlBrP9PwNTv2rS5cOdjMTz0oQ8BahK7w+FlKJHDj A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10223\"; a=\"243640587\"",
            "E=Sophos;i=\"5.88,279,1635231600\"; d=\"scan'208\";a=\"243640587\"",
            "E=Sophos;i=\"5.88,279,1635231600\"; d=\"scan'208\";a=\"558301618\""
        ],
        "X-ExtLoop1": "1",
        "From": "Yogesh Jangra <yogesh.jangra@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "venkata.suresh.kumar.p@intel.com, harshad.suresh.narayane@intel.com,\n yogesh.jangra@intel.com",
        "Subject": "[PATCH 2/2] tests/pipeline: add support for annotations in pipeline\n test suite",
        "Date": "Mon, 10 Jan 2022 20:55:38 -0500",
        "Message-Id": "<1641866138-122679-3-git-send-email-yogesh.jangra@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1641866138-122679-1-git-send-email-yogesh.jangra@intel.com>",
        "References": "<1641866138-122679-1-git-send-email-yogesh.jangra@intel.com>",
        "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": "This patch has P4 action annotation support, port type and updates\nfor mempool size to add support to run the suite on virtual machine.\n\nSigned-off-by: Yogesh Jangra <yogesh.jangra@intel.com>\nSigned-off-by: Harshad Suresh Narayane <harshad.suresh.narayane@intel.com>\nTested-by: Venkata Suresh Kumar P <venkata.suresh.kumar.p@intel.com>\n---\n tests/TestSuite_pipeline.py | 155 +++++++++++++++++++++++++++++++++++-\n 1 file changed, 153 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_pipeline.py b/tests/TestSuite_pipeline.py\nindex 842b2acd..5e711f4b 100644\n--- a/tests/TestSuite_pipeline.py\n+++ b/tests/TestSuite_pipeline.py\n@@ -65,6 +65,7 @@ PAYLOAD = re.compile(r'\\t0x([0-9a-fA-F]+):  ([0-9a-fA-F ]+)')\n \n FILE_DIR = os.path.dirname(os.path.abspath(__file__)).split(os.path.sep)\n DEP_DIR = os.path.sep.join(FILE_DIR[:-1]) + '/dep/'\n+DIR_RTE_INSTALL_DIR = '/root/dpdk'\n \n BUFFER_SIZE = 1024\n CLI_SERVER_CONNECT_DELAY = 1\n@@ -370,6 +371,9 @@ class TestPipeline(TestCase):\n         self.session_secondary.copy_file_to('dep/pipeline.tar.gz', '/tmp/')\n         self.dut.send_expect('tar -zxf /tmp/pipeline.tar.gz --directory /tmp', \"# \", 20)\n \n+        # update environment variable for the performance improvement\n+        self.dut.send_expect(\"export RTE_INSTALL_DIR={}\".format(DIR_RTE_INSTALL_DIR), \"#\")\n+\n     def set_up(self):\n         \"\"\"\n         Run before each test case.\n@@ -416,7 +420,7 @@ class TestPipeline(TestCase):\n             self.dut.send_expect(\"^C\", \"# \", 20)\n             self.verify(0, \"CLI Response Error\")\n \n-    def run_dpdk_app(self, cli_file):\n+    def run_dpdk_app(self, cli_file, exp_out = \"PIPELINE0 enable\"):\n \n         cmd = \"test -f {} && echo \\\"File exists!\\\"\".format(cli_file)\n         self.dut.send_expect(cmd, \"File exists!\", 1)\n@@ -430,7 +434,7 @@ class TestPipeline(TestCase):\n             cmd = \"sed -i -e 's/0000:00:07.0/%s/' {}\".format(cli_file) % self.dut_p3_pci\n             self.dut.send_expect(cmd, \"# \", 20)\n             cmd = \"{0} {1} -- -s {2}\".format(self.app_pipeline_path, self.eal_para, cli_file)\n-            self.dut.send_expect(cmd, \"PIPELINE0 enable\", 60)\n+            self.dut.send_expect(cmd, exp_out, 60)\n         except Exception:\n             self.dut.send_expect(\"^C\", \"# \", 20)\n             self.verify(0, \"ERROR in running DPDK application\")\n@@ -4518,6 +4522,34 @@ class TestPipeline(TestCase):\n         self.send_and_sniff_pkts(0, 1, in_pcap, out_pcap, \"udp\")\n         self.dut.send_expect(\"^C\", \"# \", 10)\n \n+    def test_ring_port_002(self):\n+\n+        cli_file = '/tmp/pipeline/ring_port_002/ring_port_002.cli'\n+        cmd = \"test -f {} && echo \\\"File exists!\\\"\".format(cli_file)\n+        self.dut.send_expect(cmd, \"File exists!\", 10)\n+        try:\n+            cmd = \"sed -i -e 's/0000:00:04.0/%s/' {}\".format(cli_file) % self.dut_p0_pci\n+            self.dut.send_expect(cmd, \"# \", 10)\n+            cmd = \"sed -i -e 's/0000:00:05.0/%s/' {}\".format(cli_file) % self.dut_p1_pci\n+            self.dut.send_expect(cmd, \"# \", 10)\n+            cmd = \"sed -i -e 's/0000:00:06.0/%s/' {}\".format(cli_file) % self.dut_p2_pci\n+            self.dut.send_expect(cmd, \"# \", 10)\n+            cmd = \"sed -i -e 's/0000:00:07.0/%s/' {}\".format(cli_file) % self.dut_p3_pci\n+            self.dut.send_expect(cmd, \"# \", 10)\n+\n+            ports = [self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci]\n+            eal_params = self.dut.create_eal_parameters(cores=list(range(4)), ports=ports)\n+            cmd = \"{0} {1} -- -s {2}\".format(self.app_pipeline_path, eal_params, cli_file)\n+            self.dut.send_expect(cmd, \"PIPELINE0 enable\", 60)\n+        except Exception:\n+            self.dut.send_expect(\"^C\", \"# \", 20)\n+            self.verify(0, \"ERROR in running DPDK application\")\n+\n+        in_pcap = 'pipeline/ring_port_002/pcap_files/in_1.txt'\n+        out_pcap = 'pipeline/ring_port_002/pcap_files/out_1.txt'\n+        self.send_and_sniff_pkts(0, 0, in_pcap, out_pcap, \"tcp\")\n+        self.dut.send_expect(\"^C\", \"# \", 10)\n+\n     def test_u100_001(self):\n \n         cli_file = '/tmp/pipeline/u100_001/u100_001.cli'\n@@ -4608,6 +4640,55 @@ class TestPipeline(TestCase):\n         self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)\n         self.dut.send_expect(\"^C\", \"# \", 20)\n \n+    def test_u100_003(self):\n+\n+        cli_file = '/tmp/pipeline/u100_003/u100_003.cli'\n+        self.run_dpdk_app(cli_file)\n+        base_dir = 'pipeline/u100_003/pcap_files/'\n+\n+        # TCP Packets\n+        in_pcap = ['in_1.txt']\n+        in_pcap = [base_dir + s for s in in_pcap]\n+        out_pcap = ['out_11.txt', 'out_12.txt', 'out_13.txt', 'out_14.txt']\n+        out_pcap = [base_dir + s for s in out_pcap]\n+        filters = [\"tcp\", \"vlan 16\", \"vlan 16\", \"tcp\"]\n+        tx_port = [0]\n+        rx_port = [0, 1, 2, 3]\n+        self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)\n+\n+        # UDP Packets\n+        in_pcap = ['in_2.txt']\n+        in_pcap = [base_dir + s for s in in_pcap]\n+        out_pcap = ['out_21.txt', 'out_22.txt', 'out_23.txt', 'out_24.txt']\n+        out_pcap = [base_dir + s for s in out_pcap]\n+        filters = [\"udp port 200\", \"vlan 16\", \"vlan 16\", \"udp port 200\"]\n+        self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)\n+\n+        # ICMP Packets\n+        in_pcap = ['in_3.txt']\n+        in_pcap = [base_dir + s for s in in_pcap]\n+        out_pcap = ['out_31.txt', 'out_32.txt', 'out_33.txt', 'out_34.txt']\n+        out_pcap = [base_dir + s for s in out_pcap]\n+        filters = [\"icmp\", \"vlan 16\", \"vlan 16\", \"icmp\"]\n+        self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)\n+\n+        # IGMP Packets\n+        in_pcap = ['in_4.txt']\n+        in_pcap = [base_dir + s for s in in_pcap]\n+        out_pcap = ['out_41.txt', 'out_42.txt', 'out_43.txt', 'out_44.txt']\n+        out_pcap = [base_dir + s for s in out_pcap]\n+        filters = [\"igmp\", \"vlan 16\", \"vlan 16\", \"igmp\"] * 4\n+        self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)\n+\n+        # IPv6 Packets\n+        in_pcap = ['in_5.txt']\n+        in_pcap = [base_dir + s for s in in_pcap]\n+        out_pcap = ['out_51.txt', 'out_52.txt', 'out_53.txt', 'out_54.txt']\n+        out_pcap = [base_dir + s for s in out_pcap]\n+        filters = [\"tcp\"] * 4\n+        self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)\n+        self.dut.send_expect(\"^C\", \"# \", 20)\n+\n     def test_lpm_001(self):\n \n         cli_file = '/tmp/pipeline/lpm_001/lpm_001.cli'\n@@ -4993,6 +5074,76 @@ class TestPipeline(TestCase):\n         self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)\n         self.dut.send_expect(\"^C\", \"# \", 20)\n \n+    def test_annotation_001(self):\n+\n+        cli_file = '/tmp/pipeline/annotation_001/annotation_001.cli'\n+        self.run_dpdk_app(cli_file,'thread 1 pipeline PIPELINE0 enable\\n')\n+\n+        in_pcap = ['pipeline/annotation_001/pcap_files/in_1.txt'] * 4\n+        out_pcap = ['pipeline/annotation_001/pcap_files/out_1.txt'] * 4\n+        filters = [\"tcp\"] * 4\n+        tx_port = [0, 1, 2, 3]\n+        rx_port = [0, 1, 2, 3]\n+        self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)\n+\n+        self.dut.send_expect(\"^C\", \"# \", 20)\n+\n+    def test_annotation_002(self):\n+\n+        cli_file = '/tmp/pipeline/annotation_002/annotation_002.cli'\n+        self.run_dpdk_app(cli_file,'thread 1 pipeline PIPELINE0 enable\\n')\n+\n+        in_pcap = ['pipeline/annotation_002/pcap_files/in_1.txt'] * 4\n+        out_pcap = ['pipeline/annotation_002/pcap_files/out_1.txt'] * 4\n+        filters = [\"tcp\"] * 4\n+        tx_port = [0, 1, 2, 3]\n+        rx_port = [0, 1, 2, 3]\n+        self.send_and_sniff_multiple(tx_port, rx_port, in_pcap, out_pcap, filters)\n+\n+        self.dut.send_expect(\"^C\", \"# \", 20)\n+\n+    def test_annotation_003(self):\n+\n+        cli_file = '/tmp/pipeline/annotation_003/annotation_003.cli'\n+        self.run_dpdk_app(cli_file,'pipeline PIPELINE0 port out 3 link LINK3 txq 0 bsz 1\\n')\n+\n+        sleep(CLI_SERVER_CONNECT_DELAY)\n+        s = self.connect_cli_server()\n+        CLI_CMD = 'pipeline PIPELINE0 build /tmp/pipeline/annotation_003/annotation_003.spec\\n'\n+        self.socket_send_cmd(s, CLI_CMD, \"Error -22 at line 54: Invalid action name statement.\")\n+        s.close()\n+\n+        self.dut.send_expect(\"^C\", \"# \", 20)\n+\n+    def test_annotation_004(self):\n+\n+        cli_file = '/tmp/pipeline/annotation_004/annotation_004.cli'\n+        self.run_dpdk_app(cli_file,'pipeline PIPELINE0 build /tmp/pipeline/annotation_004/'\\\n+                'annotation_004.spec\\n')\n+\n+        sleep(CLI_SERVER_CONNECT_DELAY)\n+        s = self.connect_cli_server()\n+        CLI_CMD = 'pipeline PIPELINE0 table annotation_004 add /tmp/pipeline/annotation_004/'\\\n+                'annotation_004_table.txt\\n'\n+        self.socket_send_cmd(s, CLI_CMD, \"Invalid entry in file /tmp/pipeline/annotation_004/\"\\\n+                \"annotation_004_table.txt at line 2\\n\")\n+        s.close()\n+\n+        self.dut.send_expect(\"^C\", \"# \", 20)\n+\n+    def test_annotation_005(self):\n+\n+        cli_file = '/tmp/pipeline/annotation_005/annotation_005.cli'\n+        self.run_dpdk_app(cli_file,'pipeline PIPELINE0 port out 3 link LINK3 txq 0 bsz 1\\n')\n+\n+        sleep(CLI_SERVER_CONNECT_DELAY)\n+        s = self.connect_cli_server()\n+        CLI_CMD = 'pipeline PIPELINE0 build /tmp/pipeline/annotation_005/annotation_005.spec\\n'\n+        self.socket_send_cmd(s, CLI_CMD, \"Error -22 at line 62: Table configuration error.\")\n+        s.close()\n+\n+        self.dut.send_expect(\"^C\", \"# \", 20)\n+\n     def tear_down(self):\n         \"\"\"\n         Run after each test case.\n",
    "prefixes": [
        "2/2"
    ]
}