get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 84406,
    "url": "https://patches.dpdk.org/api/patches/84406/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20201120121839.2063190-1-yux.jiang@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": "<20201120121839.2063190-1-yux.jiang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20201120121839.2063190-1-yux.jiang@intel.com",
    "date": "2020-11-20T12:18:38",
    "name": "[V1,2/3] tests/loopback_multi_queues: Add param to enable AVX512 for vectorized_path",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "b147d560f07ce7d5e0b0af5746f562fdd3a9d725",
    "submitter": {
        "id": 1709,
        "url": "https://patches.dpdk.org/api/people/1709/?format=api",
        "name": "Yu Jiang",
        "email": "yux.jiang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20201120121839.2063190-1-yux.jiang@intel.com/mbox/",
    "series": [
        {
            "id": 13994,
            "url": "https://patches.dpdk.org/api/series/13994/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=13994",
            "date": "2020-11-20T12:15:37",
            "name": "tests/loopback_*: Add param to enable AVX512 for vectorized_path",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/13994/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/84406/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/84406/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 14039A04DD;\n\tFri, 20 Nov 2020 05:19:41 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DF090F90;\n\tFri, 20 Nov 2020 05:19:39 +0100 (CET)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id 51B7B3B5\n for <dts@dpdk.org>; Fri, 20 Nov 2020 05:19:38 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Nov 2020 20:19:36 -0800",
            "from unknown (HELO localhost.localdomain) ([10.240.183.77])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Nov 2020 20:19:34 -0800"
        ],
        "IronPort-SDR": [
            "\n s2kIscvPXYlmeTnstRKu4R3IqI+mPXfjVoJsXkecE2OmwH71idpLiW7qUUrUIgux1xA7Py+MrN\n jxFv0xPsdsqw==",
            "\n 1QE3kUciZ2QbI0Bgw8dTMtDk6lAtSZNtSpE0I5kCWkE8xPWdHsEpTdPVvuK68hERSWBZ8VUs1Z\n SuQvRJZBtC/w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9810\"; a=\"233031462\"",
            "E=Sophos;i=\"5.78,355,1599548400\"; d=\"scan'208\";a=\"233031462\"",
            "E=Sophos;i=\"5.78,355,1599548400\"; d=\"scan'208\";a=\"311310824\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "From": "JiangYuX <yux.jiang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "JiangYu <yux.jiang@intel.com>",
        "Date": "Fri, 20 Nov 2020 12:18:38 +0000",
        "Message-Id": "<20201120121839.2063190-1-yux.jiang@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts] [PATCH V1 2/3] tests/loopback_multi_queues: Add param to\n\tenable AVX512 for vectorized_path",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "From: JiangYu <yux.jiang@intel.com>\n\n1, Add param to enable AVX512 for vectorized_path only\n2, Optimize script: testpmd is called with framework unitified-interface\n\nSigned-off-by: JiangYu <yux.jiang@intel.com>\n---\n tests/TestSuite_loopback_multi_queues.py | 41 +++++++++++++++++++-------------\n 1 file changed, 24 insertions(+), 17 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_loopback_multi_queues.py b/tests/TestSuite_loopback_multi_queues.py\nindex 86c2ce9..4700c2d 100644\n--- a/tests/TestSuite_loopback_multi_queues.py\n+++ b/tests/TestSuite_loopback_multi_queues.py\n@@ -39,6 +39,7 @@ Inorder no-mergeable, Virtio 1.1 mergeable, Virtio 1.1 no-mergeable Path.\n import utils\n import time\n import re\n+from pmd_output import PmdOutput\n from test_case import TestCase\n \n \n@@ -75,6 +76,8 @@ class TestLoopbackMultiQueues(TestCase):\n \n         self.vhost = self.dut.new_session(suite=\"vhost\")\n         self.virtio_user = self.dut.new_session(suite=\"virtio-user\")\n+        self.vhost_pmd = PmdOutput(self.dut, self.vhost)\n+        self.virtio_user_pmd = PmdOutput(self.dut, self.virtio_user)\n \n     def get_core_mask(self):\n         \"\"\"\n@@ -90,10 +93,10 @@ class TestLoopbackMultiQueues(TestCase):\n         \"\"\"\n         start testpmd on vhost\n         \"\"\"\n-        eal_param = self.dut.create_eal_parameters(cores=self.core_list_host, prefix='vhost', no_pci=True, vdevs=['net_vhost0,iface=vhost-net,queues=%d' % self.queue_number])\n-        command_line_client = self.path + eal_param + \" -- -i --nb-cores=%d --rxq=%d --txq=%d --txd=1024 --rxd=1024\" % (self.nb_cores, self.queue_number, self.queue_number)\n-        self.vhost.send_expect(command_line_client, \"testpmd> \", 120)\n-        self.vhost.send_expect(\"set fwd mac\", \"testpmd> \", 120)\n+        eal_params = \"--vdev 'net_vhost0,iface=vhost-net,queues={}'\".format(self.queue_number)\n+        param = \"--nb-cores={} --rxq={} --txq={} --txd=1024 --rxd=1024\".format(self.nb_cores, self.queue_number, self.queue_number)\n+        self.vhost_pmd.start_testpmd(self.core_list_host, param=param, no_pci=True, ports=[], eal_param=eal_params, prefix='vhost', fixed_prefix=True)\n+        self.vhost_pmd.execute_cmd(\"set fwd mac\", \"testpmd> \", 120)\n \n     @property\n     def check_2M_env(self):\n@@ -104,22 +107,26 @@ class TestLoopbackMultiQueues(TestCase):\n         \"\"\"\n         start testpmd on virtio\n         \"\"\"\n-        eal_param = self.dut.create_eal_parameters(cores=self.core_list_user, prefix='virtio', no_pci=True, vdevs=['net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=%d,%s' % (self.queue_number, args[\"version\"])])\n+        eal_param = \"--vdev 'net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues={},{}'\".format(self.queue_number, args[\"version\"])\n         if self.check_2M_env:\n             eal_param += \" --single-file-segments\"\n-        command_line_user = self.path + eal_param + \" -- -i %s --nb-cores=%d --rxq=%d --txq=%d --txd=1024 --rxd=1024\" % (args[\"path\"], self.nb_cores, self.queue_number, self.queue_number)\n-        self.virtio_user.send_expect(command_line_user, \"testpmd> \", 120)\n-        self.virtio_user.send_expect(\"set fwd mac\", \"testpmd> \", 120)\n-        self.virtio_user.send_expect(\"start\", \"testpmd> \", 120)\n+        if 'vectorized_path' in self.running_case:\n+            eal_param += \" --force-max-simd-bitwidth=512\"\n+        param = \"{} --nb-cores={} --rxq={} --txq={} --txd=1024 --rxd=1024\".format(args[\"path\"], self.nb_cores, self.queue_number, self.queue_number)\n+        self.virtio_user_pmd.start_testpmd(cores=self.core_list_user, param=param, eal_param=eal_param, \\\n+                no_pci=True, ports=[], prefix=\"virtio\", fixed_prefix=True)\n+\n+        self.virtio_user_pmd.execute_cmd(\"set fwd mac\", \"testpmd> \", 120)\n+        self.virtio_user_pmd.execute_cmd(\"start\", \"testpmd> \", 120)\n \n     def calculate_avg_throughput(self):\n         \"\"\"\n         calculate the average throughput\n         \"\"\"\n         results = 0.0\n-        self.vhost.send_expect(\"show port stats all\", \"testpmd>\", 60)\n+        self.vhost_pmd.execute_cmd(\"show port stats all\", \"testpmd>\", 60)\n         for i in range(10):\n-            out = self.vhost.send_expect(\"show port stats all\", \"testpmd>\", 60)\n+            out = self.vhost_pmd.execute_cmd(\"show port stats all\", \"testpmd>\", 60)\n             time.sleep(1)\n             lines = re.search(\"Rx-pps:\\s*(\\d*)\", out)\n             result = lines.group(1)\n@@ -143,7 +150,7 @@ class TestLoopbackMultiQueues(TestCase):\n         \"\"\"\n         check each queue has receive packets\n         \"\"\"\n-        out = self.vhost.send_expect(\"stop\", \"testpmd> \", 60)\n+        out = self.vhost_pmd.execute_cmd(\"stop\", \"testpmd> \", 60)\n         for queue_index in range(0, self.queue_number):\n             queue = \"Queue= %d\" % queue_index\n             index = out.find(queue)\n@@ -157,15 +164,15 @@ class TestLoopbackMultiQueues(TestCase):\n                    \"frame_size:%d, rx-packets:%d, tx-packets:%d\" %\n                    (frame_size, rx_packets, tx_packets))\n \n-        self.vhost.send_expect(\"clear port stats all\", \"testpmd> \", 60)\n+        self.vhost_pmd.execute_cmd(\"clear port stats all\", \"testpmd> \", 60)\n \n     def send_and_verify(self, case_info):\n         \"\"\"\n         start to send packets and calculate avg throughput\n         \"\"\"\n         for frame_size in self.frame_sizes:\n-            self.vhost.send_expect(\"set txpkts %d\" % frame_size, \"testpmd> \", 30)\n-            self.vhost.send_expect(\"start tx_first 32\", \"testpmd> \", 30)\n+            self.vhost_pmd.execute_cmd(\"set txpkts %d\" % frame_size, \"testpmd> \", 30)\n+            self.vhost_pmd.execute_cmd(\"start tx_first 32\", \"testpmd> \", 30)\n             Mpps = self.calculate_avg_throughput()\n             self.update_result_table(frame_size, case_info, Mpps)\n             if self.queue_number > 1:\n@@ -186,8 +193,8 @@ class TestLoopbackMultiQueues(TestCase):\n         \"\"\"\n         close all testpmd of vhost and virtio\n         \"\"\"\n-        self.vhost.send_expect(\"quit\", \"#\", 60)\n-        self.virtio_user.send_expect(\"quit\", \"#\", 60)\n+        self.vhost_pmd.execute_cmd(\"quit\", \"#\", 60)\n+        self.virtio_user_pmd.execute_cmd(\"quit\", \"#\", 60)\n \n     def close_all_session(self):\n         \"\"\"\n",
    "prefixes": [
        "V1",
        "2/3"
    ]
}