get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85949,
    "url": "https://patches.dpdk.org/api/patches/85949/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210104053141.103367-1-kumar.amber@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": "<20210104053141.103367-1-kumar.amber@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210104053141.103367-1-kumar.amber@intel.com",
    "date": "2021-01-04T05:31:41",
    "name": "tests/cbdma: add multi app test",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "3773f5fb2fb28a1575920eb3f318fa4f9a187867",
    "submitter": {
        "id": 1516,
        "url": "https://patches.dpdk.org/api/people/1516/?format=api",
        "name": "Amber, Kumar",
        "email": "kumar.amber@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210104053141.103367-1-kumar.amber@intel.com/mbox/",
    "series": [
        {
            "id": 14518,
            "url": "https://patches.dpdk.org/api/series/14518/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=14518",
            "date": "2021-01-04T05:31:41",
            "name": "tests/cbdma: add multi app test",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/14518/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/85949/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/85949/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 (xvm-189-124.dc0.ghst.net [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2644DA09E4;\n\tMon,  4 Jan 2021 06:39:12 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E231C1606D0;\n\tMon,  4 Jan 2021 06:39:11 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 89B3C1606CF\n for <dts@dpdk.org>; Mon,  4 Jan 2021 06:39:09 +0100 (CET)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Jan 2021 21:39:08 -0800",
            "from bmca4bf01706bbf.iind.intel.com (HELO localhost.localdomain)\n ([10.190.213.111])\n by orsmga007.jf.intel.com with ESMTP; 03 Jan 2021 21:39:06 -0800"
        ],
        "IronPort-SDR": [
            "\n BW1HwQqUXOMx9MmY4IG11KcNt7iQR0/NdxmjZXdylV/0IiQap7yjuKx83XH4NGz674LDbS+fdH\n +/YeqUiHpiWg==",
            "\n o+ZG8W8JMjJL3Gp15e6c4Qsj07ZrR+RHAdXSqtdVodGV4J0SUU1hMtsuGFWvuk5BPlNjjHU1g1\n WMRQSHkuImmA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9853\"; a=\"173405460\"",
            "E=Sophos;i=\"5.78,473,1599548400\"; d=\"scan'208\";a=\"173405460\"",
            "E=Sophos;i=\"5.78,473,1599548400\"; d=\"scan'208\";a=\"386517128\""
        ],
        "X-ExtLoop1": "1",
        "From": "Kumar Amber <kumar.amber@intel.com>",
        "To": "dts@dpdk.org",
        "Date": "Mon,  4 Jan 2021 11:01:41 +0530",
        "Message-Id": "<20210104053141.103367-1-kumar.amber@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts] [PATCH] tests/cbdma: add multi app test",
        "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",
        "Sender": "\"dts\" <dts-bounces@dpdk.org>"
    },
    "content": "The test added implemnts test-pmd running\nas primary app and iotfwd as secondary app.\n\nSigned-off-by: Kumar Amber <kumar.amber@intel.com>\n---\n test_plans/cbdma_test_plan.rst | 15 ++++++++++\n tests/TestSuite_cbdma.py       | 55 ++++++++++++++++++++++++++--------\n 2 files changed, 57 insertions(+), 13 deletions(-)\n mode change 100644 => 100755 tests/TestSuite_cbdma.py",
    "diff": "diff --git a/test_plans/cbdma_test_plan.rst b/test_plans/cbdma_test_plan.rst\nindex aee05a61..94167097 100644\n--- a/test_plans/cbdma_test_plan.rst\n+++ b/test_plans/cbdma_test_plan.rst\n@@ -194,3 +194,18 @@ Test Case6: CBDMA performance cmparison between HW copies and SW copies using di\n 7. Check performance from ioat app and compare with hw copy test::\n \n     Total packets Tx:                   xxx [pps]\n+\n+Test Case7: CBDMA multi application mode test\n+=============================================\n+\n+1.Bind four cbdma ports to ugb_uio driver.\n+\n+2.Launch test-pmd app with three cores and proc_type primary:\n+\n+./build/test-pmd -l 0-2 -n 2 -- -p 0x1 -q 4  --proc-type=primary\n+\n+3. Launch another ioatfwd app with three cores and proc_type secondary:\n+\n+./build/ioatfwd -l 0-2 -n 2 -- -p 0x1 -q 4  --proc-type=secondary\n+\n+4. check both the application should work and no one should report error.\ndiff --git a/tests/TestSuite_cbdma.py b/tests/TestSuite_cbdma.py\nold mode 100644\nnew mode 100755\nindex 6a5be6a4..2685fc4f\n--- a/tests/TestSuite_cbdma.py\n+++ b/tests/TestSuite_cbdma.py\n@@ -39,6 +39,7 @@ import time\n from test_case import TestCase\n from packet import Packet\n from pktgen import TRANSMIT_CONT\n+from pmd_output import PmdOutput\n \n \n class TestCBDMA(TestCase):\n@@ -55,9 +56,10 @@ class TestCBDMA(TestCase):\n         self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])\n         self.get_cbdma_ports_info_and_bind_to_dpdk()\n         out = self.dut.build_dpdk_apps('./examples/ioat')\n-        self.app_path=self.dut.apps_name['ioat']\n+        self.ioat_path = self.dut.apps_name['ioat']\n         self.verify('Error' not in out, 'compilation ioat error')\n \n+\n     def set_up(self):\n         \"\"\"\n         Run before each test case.\n@@ -71,7 +73,7 @@ class TestCBDMA(TestCase):\n         self.table_header.append(\"Updating MAC\")\n         self.table_header.append(\"% linerate\")\n         self.result_table_create(self.table_header)\n-        self.send_session = self.dut.new_session(\"new_session\")\n+        self.send_session = self.dut.new_session(\"new_session\")      \n \n     def get_core_list(self):\n         \"\"\"\n@@ -124,7 +126,7 @@ class TestCBDMA(TestCase):\n             dev_info.append(self.cbdma_dev_infos[i])\n         return dev_info\n \n-    def launch_ioatfwd_app(self, eal_params):\n+    def launch_ioatfwd_app(self, eal_params, session=None):\n         \"\"\"\n         launch ioatfwd with different params\n         \"\"\"\n@@ -140,17 +142,18 @@ class TestCBDMA(TestCase):\n         when the cores num > 2, there will have 2 thread, and the max value of thread\n         num is 2\n         '''\n-        # flush other output\n-        target = self.app_path.split(\"/\")\n-        self.send_session.send_expect(f\"cd  {'/'.join(target[0:-1])} \", '# ')\n-        self.send_session.get_session_before(timeout=1)\n-        cmd_command = \"./\"+target[-1] + eal_params + \\\n-                      '-- -p %s -q %d %s -c %s' % (hex(port_info),\n-                      self.cbdma_ioat_dev_num/self.cbdma_nic_dev_num, mac_info,\n-                      self.cbdma_copy_mode)\n-        self.send_session.send_expect(cmd_command, f'{target[-1].strip()},')\n+        if session is None:\n+            session = self.send_session\n+        expected = self.ioat_path.split('/')[-1].strip()\n+        self.logger.info('expected: {}'.format(expected))\n+        cmd_command = '%s %s %s %s -- -p %s -q %d %s -c %s' % (self.ioat_path, eal_params,\n+                        self.cbdma_proc, self.v_dev, hex(port_info),\n+                        self.cbdma_ioat_dev_num/self.cbdma_nic_dev_num, mac_info,\n+                        self.cbdma_copy_mode)\n+        out = session.send_expect(cmd_command, expected)\n         time.sleep(1)\n-        out = self.send_session.get_session_before(timeout=1)\n+        out = session.get_session_before(timeout=1)\n+        self.logger.info('out before: {}'.format(out))\n         thread_num = 2 if self.cbdma_cores_num > 2 else 1\n         o_thread_info = 'Worker Threads = %d' % thread_num\n         o_copy_info = 'Copy Mode = %s' % self.cbdma_copy_mode\n@@ -359,6 +362,32 @@ class TestCBDMA(TestCase):\n         self.send_and_verify_throughput(check_channel=False)\n         self.result_table_print()\n \n+    def test_multi_app_mode(self):\n+        \"\"\"\n+        CBDMA multi app tests for the simultanous exection of primary\n+        and secondary app\n+        \"\"\"\n+        self.cbdma_cores_num = 3\n+        self.cbdma_nic_dev_num = 1\n+        self.cbdma_ioat_dev_num = 4\n+        self.cbdma_updating_mac = 'disable'\n+        self.cbdma_copy_mode = 'hw'\n+        self.v_dev = \"--vdev net_null_0\"\n+        dev_info = self.get_ports_info()\n+        dev_info.pop(0)\n+        self.get_core_list()\n+        self.pmdout = PmdOutput(self.dut)\n+        self.pmdout.start_testpmd(cores='', eal_param='--vdev net_null_0 --proc-type=primary',\n+                                    ports=dev_info)\n+        self.pmdout.execute_cmd('port stop all')\n+        self.cbdma_proc = '--proc-type=secondary'\n+        eal_params = self.dut.create_eal_parameters(cores=self.core_list,\n+                                        ports=dev_info)\n+        self.launch_ioatfwd_app(eal_params)\n+        self.send_session.send_expect('^C','#')\n+        self.pmdout.execute_cmd('^C')\n+        self.result_table_print()\n+\n     def tear_down(self):\n         \"\"\"\n         Run after each test case.\n",
    "prefixes": []
}