get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 89537,
    "url": "https://patches.dpdk.org/api/patches/89537/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210319064713.4894-1-weix.ling@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": "<20210319064713.4894-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210319064713.4894-1-weix.ling@intel.com",
    "date": "2021-03-19T06:47:13",
    "name": "[V1,9/9] tests/vswitch_sample_cbdma:modify hard code bind cbdma device to igb_uio by drivername in execution.cfg",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "8109b5bc72e81d9aeaac8ba203faab1feb6c18c7",
    "submitter": {
        "id": 1828,
        "url": "https://patches.dpdk.org/api/people/1828/?format=api",
        "name": "Ling, WeiX",
        "email": "weix.ling@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210319064713.4894-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 15786,
            "url": "https://patches.dpdk.org/api/series/15786/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=15786",
            "date": "2021-03-19T06:45:58",
            "name": "modify hard code bind cbdma device to igb_uio by drivername in execution.cfg",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/15786/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/89537/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/89537/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 B4865A0562;\n\tFri, 19 Mar 2021 07:48:17 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AF3E7140E92;\n\tFri, 19 Mar 2021 07:48:17 +0100 (CET)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 6305D4003F\n for <dts@dpdk.org>; Fri, 19 Mar 2021 07:48:16 +0100 (CET)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Mar 2021 23:48:15 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.222])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Mar 2021 23:48:14 -0700"
        ],
        "IronPort-SDR": [
            "\n qgtYSivoZhmV3nHzr5v38Ady/gQnCZPJ5fBJXAsz/KceWIxEp1w2SU873O7zovBKM1f4erqviX\n 9rs9uozaEsgQ==",
            "\n VN1RHfk9ntBIu+o+39veJCviiJ9sbpQHY5nJo+MjAmf0ijChAjWiH6q839MJmrfTHNTi7aQiNp\n OVO9thlJ4EPg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9927\"; a=\"209859782\"",
            "E=Sophos;i=\"5.81,261,1610438400\"; d=\"scan'208\";a=\"209859782\"",
            "E=Sophos;i=\"5.81,261,1610438400\"; d=\"scan'208\";a=\"606504871\""
        ],
        "From": "Ling Wei <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Ling Wei <weix.ling@intel.com>",
        "Date": "Fri, 19 Mar 2021 14:47:13 +0800",
        "Message-Id": "<20210319064713.4894-1-weix.ling@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts] [PATCH V1 9/9] tests/vswitch_sample_cbdma:modify hard code\n bind cbdma device to igb_uio by drivername in execution.cfg",
        "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": "1.Modify hard code bind cbdma device to igb_uio by drivername\n in execution.cfg.\n2.Adjust code format.\n\nSigned-off-by: Ling Wei <weix.ling@intel.com>\n---\n tests/TestSuite_vswitch_sample_cbdma.py | 13 ++++---------\n 1 file changed, 4 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_vswitch_sample_cbdma.py b/tests/TestSuite_vswitch_sample_cbdma.py\nindex b067cc09..df3ab6f3 100644\n--- a/tests/TestSuite_vswitch_sample_cbdma.py\n+++ b/tests/TestSuite_vswitch_sample_cbdma.py\n@@ -228,6 +228,9 @@ class TestVswitchSampleCBDMA(TestCase):\n         \"\"\"\n         get all cbdma ports\n         \"\"\"\n+        # check driver name in execution.cfg\n+        self.verify(self.drivername == 'igb_uio',\n+                    \"CBDMA test case only use igb_uio driver, need config drivername=igb_uio in execution.cfg\")\n         str_info = 'Misc (rawdev) devices using kernel driver'\n         out = self.dut.send_expect('./usertools/dpdk-devbind.py --status-dev misc', '# ', 30)\n         device_info = out.split('\\n')\n@@ -252,8 +255,7 @@ class TestVswitchSampleCBDMA(TestCase):\n             dmas_info += dmas\n         self.dmas_info = dmas_info[:-1]\n         self.device_str = ' '.join(used_cbdma)\n-        self.dut.setup_modules(self.target, \"igb_uio\",\"None\")\n-        self.dut.send_expect('./usertools/dpdk-devbind.py --force --bind=%s %s' % (\"igb_uio\", self.device_str), '# ', 60)\n+        self.dut.send_expect('./usertools/dpdk-devbind.py --force --bind=%s %s' % (self.drivername, self.device_str), '# ', 60)\n \n     def send_vlan_packet(self, dts_mac, pkt_size=64, pkt_count=1):\n         \"\"\"\n@@ -338,7 +340,6 @@ class TestVswitchSampleCBDMA(TestCase):\n         self.set_async_threshold(1518)\n         self.build_vhost_app()\n         cbmda_copy = self.pvp_test_with_cbdma(socket_num=1, with_cbdma=True, cbdma_num=1)\n-\n         self.virtio_user0_pmd.execute_cmd(\"quit\", \"#\")\n         self.vhost_user.send_expect(\"^C\", \"# \", 20)\n \n@@ -348,14 +349,12 @@ class TestVswitchSampleCBDMA(TestCase):\n         self.set_async_threshold(0)\n         self.build_vhost_app()\n         sync_copy = self.pvp_test_with_cbdma(socket_num=1, with_cbdma=True, cbdma_num=1)\n-\n         self.virtio_user0_pmd.execute_cmd(\"quit\", \"#\")\n         self.vhost_user.send_expect(\"^C\", \"# \", 20)\n \n         # test CPU copy\n         # CPU copy means vhost enqueue w/o cbdma channel\n         cpu_copy = self.pvp_test_with_cbdma(socket_num=1, with_cbdma=False, cbdma_num=0)\n-\n         self.virtio_user0_pmd.execute_cmd(\"quit\", \"#\")\n         self.vhost_user.send_expect(\"^C\", \"# \", 20)\n \n@@ -414,7 +413,6 @@ class TestVswitchSampleCBDMA(TestCase):\n \n         self.logger.info(\"Relaunch vhost app perf test\")\n         after_relunch = self.pvp_test_with_multi_cbdma(socket_num=2, with_cbdma=True, cbdma_num=2, launch_virtio=False, quit_vhost=False)\n-\n         self.virtio_user0_pmd.execute_cmd(\"quit\", \"#\")\n         self.virtio_user1_pmd.execute_cmd(\"quit\", \"#\")\n         self.vhost_user.send_expect(\"^C\", \"# \", 20)\n@@ -492,13 +490,11 @@ class TestVswitchSampleCBDMA(TestCase):\n         self.build_vhost_app()\n \n         cbdma_enable = self.vm2vm_check_with_two_cbdma(with_cbdma=True, cbdma_num=2, socket_num=2)\n-\n         self.virtio_user0_pmd.execute_cmd(\"quit\", \"#\")\n         self.virtio_user1_pmd.execute_cmd(\"quit\", \"#\")\n         self.vhost_user.send_expect(\"^C\", \"# \", 20)\n \n         cbdma_disable = self.vm2vm_check_with_two_cbdma(with_cbdma=False, cbdma_num=2, socket_num=2)\n-\n         self.virtio_user0_pmd.execute_cmd(\"quit\", \"#\")\n         self.virtio_user1_pmd.execute_cmd(\"quit\", \"#\")\n         self.vhost_user.send_expect(\"^C\", \"# \", 20)\n@@ -545,7 +541,6 @@ class TestVswitchSampleCBDMA(TestCase):\n             self.result_table_add([frame_size, rx_pps])\n             rx_throughput[frame_size] = rx_pps\n             self.result_table_print()\n-\n         return rx_throughput\n \n     def start_vms_testpmd_and_test(self, launch, quit_vm_testpmd=False):\n",
    "prefixes": [
        "V1",
        "9/9"
    ]
}