get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 90160,
    "url": "http://patches.dpdk.org/api/patches/90160/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20210331051316.602359-1-weix.ling@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": "<20210331051316.602359-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210331051316.602359-1-weix.ling@intel.com",
    "date": "2021-03-31T05:13:16",
    "name": "[V1] tests/vhost_cbdma: add bind dut ports to DPDK-compatible driver step",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "f0d4f25203932cf0efb8ee261527b58a18085097",
    "submitter": {
        "id": 1828,
        "url": "http://patches.dpdk.org/api/people/1828/?format=api",
        "name": "Ling, WeiX",
        "email": "weix.ling@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20210331051316.602359-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 15992,
            "url": "http://patches.dpdk.org/api/series/15992/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=15992",
            "date": "2021-03-31T05:13:16",
            "name": "[V1] tests/vhost_cbdma: add bind dut ports to DPDK-compatible driver step",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/15992/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/90160/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/90160/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 46936A034F;\n\tWed, 31 Mar 2021 07:14:55 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 164EA4069E;\n\tWed, 31 Mar 2021 07:14:55 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id B1FA240141\n for <dts@dpdk.org>; Wed, 31 Mar 2021 07:14:52 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Mar 2021 22:14:48 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.222])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Mar 2021 22:14:47 -0700"
        ],
        "IronPort-SDR": [
            "\n PWPOuIBzUOmcCMyjKRW+w8o9yfSbgs2Lrorisnt1Mm8c9jV4Rx7MOE8LSXRzs5BJUC3NImWxFu\n 8Ze3FKxjD8IA==",
            "\n aZvZIxk25XSXzpHK9VzcMga5khOfhAJQ2HrtrneOhBgEYuHuBOkDcK7UJcAnx536HZOXZ0l6nN\n nqT3MSh1/qtw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9939\"; a=\"171329832\"",
            "E=Sophos;i=\"5.81,291,1610438400\"; d=\"scan'208\";a=\"171329832\"",
            "E=Sophos;i=\"5.81,291,1610438400\"; d=\"scan'208\";a=\"418491759\""
        ],
        "From": "Ling Wei <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Ling Wei <weix.ling@intel.com>",
        "Date": "Wed, 31 Mar 2021 13:13:16 +0800",
        "Message-Id": "<20210331051316.602359-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] tests/vhost_cbdma: add bind dut ports to\n DPDK-compatible driver step",
        "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": "Add bind dut ports to DPDK-compatible driver method and \nstep in tear_down after test_check_threshold_value_with_cbdma\nexectue over.\n\nSigned-off-by: Ling Wei <weix.ling@intel.com>\n---\n tests/TestSuite_vhost_cbdma.py | 18 ++++++++++++++++++\n 1 file changed, 18 insertions(+)",
    "diff": "diff --git a/tests/TestSuite_vhost_cbdma.py b/tests/TestSuite_vhost_cbdma.py\nindex 260c534e..5699a7db 100644\n--- a/tests/TestSuite_vhost_cbdma.py\n+++ b/tests/TestSuite_vhost_cbdma.py\n@@ -110,6 +110,22 @@ class TestVirTioVhostCbdma(TestCase):\n         self.dut.send_expect(\"rm -rf /tmp/s0\", \"#\")\n         self.mode_list = []\n \n+    def bind_nic_driver(self, ports, driver=\"\"):\n+        if driver == \"igb_uio\":\n+            for port in ports:\n+                netdev = self.dut.ports_info[port]['port']\n+                driver = netdev.get_nic_driver()\n+                if driver != 'igb_uio':\n+                    netdev.bind_driver(driver='igb_uio')\n+        else:\n+            for port in ports:\n+                netdev = self.dut.ports_info[port]['port']\n+                driver_now = netdev.get_nic_driver()\n+                if driver == \"\":\n+                    driver = netdev.default_driver\n+                if driver != driver_now:\n+                    netdev.bind_driver(driver=driver)\n+\n     def get_cbdma_ports_info_and_bind_to_dpdk(self, cbdma_num):\n         \"\"\"\n         get all cbdma ports\n@@ -533,6 +549,8 @@ class TestVirTioVhostCbdma(TestCase):\n         \"\"\"\n         self.dut.send_expect(\"killall -I %s\" % self.testpmd_name, '#', 20)\n         self.bind_cbdma_device_to_kernel()\n+        if self.running_case == 'test_check_threshold_value_with_cbdma':\n+            self.bind_nic_driver(self.dut_ports, self.drivername)\n \n     def tear_down_all(self):\n         \"\"\"\n",
    "prefixes": [
        "V1"
    ]
}