get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 83533,
    "url": "https://patches.dpdk.org/api/patches/83533/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20201103180811.112226-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": "<20201103180811.112226-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20201103180811.112226-1-weix.ling@intel.com",
    "date": "2020-11-03T18:08:11",
    "name": "[V1] tests/vhost_cbdma:assign the cores which nic in to start testpmd",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "72f054ddc7f2847755e2d6be9740100fb06bf296",
    "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/20201103180811.112226-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 13613,
            "url": "https://patches.dpdk.org/api/series/13613/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=13613",
            "date": "2020-11-03T18:08:11",
            "name": "[V1] tests/vhost_cbdma:assign the cores which nic in to start testpmd",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/13613/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/83533/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/83533/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 B27DDA0521;\n\tTue,  3 Nov 2020 11:12:09 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9BE88C8B4;\n\tTue,  3 Nov 2020 11:12:04 +0100 (CET)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id 2BF0CBE4D\n for <dts@dpdk.org>; Tue,  3 Nov 2020 11:12:01 +0100 (CET)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Nov 2020 02:11:49 -0800",
            "from unknown (HELO localhost.localdomain) ([10.240.183.222])\n by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Nov 2020 02:11:48 -0800"
        ],
        "IronPort-SDR": [
            "\n 3BOfmsNqD4jx86a5nfkZ8DFEqJtl8uCNwdY/83ppRZ9UhTYIhXFN82hm+Ayp/9AU2qrQbpPn7K\n 0QEKhHK7aBGQ==",
            "\n FMab/AOkGMrSXLjoX+6kr1BNrJ5HbrPzMixAeJ3SAVfE61EmZSy/6eo7+9sv+0tuq6kPLK9+f5\n WvpkxrA4JyEA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9793\"; a=\"186874084\"",
            "E=Sophos;i=\"5.77,447,1596524400\"; d=\"scan'208\";a=\"186874084\"",
            "E=Sophos;i=\"5.77,447,1596524400\"; d=\"scan'208\";a=\"538436372\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "From": "lingwei <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "lingwei <weix.ling@intel.com>",
        "Date": "Wed,  4 Nov 2020 02:08:11 +0800",
        "Message-Id": "<20201103180811.112226-1-weix.ling@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dts] [PATCH V1] tests/vhost_cbdma:assign the cores which nic in to\n\tstart testpmd",
        "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": "assign the cores which nic in to start testpmd\n\nSigned-off-by: lingwei <weix.ling@intel.com>\n---\n tests/TestSuite_vhost_cbdma.py | 15 ++++++++-------\n 1 file changed, 8 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_vhost_cbdma.py b/tests/TestSuite_vhost_cbdma.py\nindex e15839f..869765f 100644\n--- a/tests/TestSuite_vhost_cbdma.py\n+++ b/tests/TestSuite_vhost_cbdma.py\n@@ -64,7 +64,8 @@ class TestVirTioVhostCbdma(TestCase):\n         self.virtio_mac = \"00:01:02:03:04:05\"\n         self.headers_size = HEADER_SIZE['eth'] + HEADER_SIZE['ip']\n         self.pci_info = self.dut.ports_info[0]['pci']\n-        self.cores = self.dut.get_core_list(\"all\")\n+        self.socket = self.dut.get_numa_id(self.dut_ports[0])\n+        self.cores = self.dut.get_core_list(\"all\", socket=self.socket)\n         self.cbdma_dev_infos = []\n \n         self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])\n@@ -197,7 +198,7 @@ class TestVirTioVhostCbdma(TestCase):\n \n         pvp_split_all_path_virtio_params = \"--tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=%d --txd=%d \" \\\n                                            \"--rxd=%d\" % (queue, txd_rxd, txd_rxd)\n-        self.launch_testpmd_as_vhost_user(eal_tx_rxd % (queue, txd_rxd, txd_rxd), self.cores[1:3],\n+        self.launch_testpmd_as_vhost_user(eal_tx_rxd % (queue, txd_rxd, txd_rxd), self.cores[0:2],\n                                           dev=vhost_vdevs % (queue, dmathr), )\n \n         for key, path_mode in dev_path_mode_mapper.items():\n@@ -206,7 +207,7 @@ class TestVirTioVhostCbdma(TestCase):\n                     queue, txd_rxd, txd_rxd)\n             vdevs = f\"'net_virtio_user0,mac={self.virtio_mac},path=/tmp/s0,{path_mode},queues=%d'\" % queue\n             self.diff_param_launch_send_and_verify(key, pvp_split_all_path_virtio_params, vdevs,\n-                                                   self.cores[4:6],\n+                                                   self.cores[2:4],\n                                                    )\n         self.result_table_print()\n \n@@ -233,13 +234,13 @@ class TestVirTioVhostCbdma(TestCase):\n         vhost_dev = f\"'net_vhost0,iface={virtio_path},queues={queue},client=1,%s'\"\n \n         # launch vhost testpmd\n-        self.launch_testpmd_as_vhost_user(eal_params, self.cores[27:29],\n+        self.launch_testpmd_as_vhost_user(eal_params, self.cores[0:2],\n                                           dev=vhost_dev % vhost_dmas)\n         #\n         #  queue 2 start virtio testpmd,virtio queue 2 to 1\n         mode = \"dynamic_queue2\"\n         self.launch_testpmd_as_virtio_user(dynamic_queue_number_cbdma_virtio_params,\n-                                           self.cores[29:31],\n+                                           self.cores[2:4],\n                                            dev=virtio_dev)\n         self.send_and_verify(mode)\n         self.vhost_or_virtio_set_one_queue(self.virtio_user)\n@@ -251,7 +252,7 @@ class TestVirTioVhostCbdma(TestCase):\n         self.dut.send_expect(f\"rm -rf {virtio_path}\", \"#\")\n         # queue 2 start virtio testpmd,vhost queue 2 to 1\n         self.launch_testpmd_as_virtio_user(dynamic_queue_number_cbdma_virtio_params,\n-                                           self.cores[29:31],\n+                                           self.cores[2:4],\n                                            dev=virtio_dev)\n         mode = \"Relaunch_dynamic_queue2\"\n         self.send_and_verify(mode)\n@@ -264,7 +265,7 @@ class TestVirTioVhostCbdma(TestCase):\n         mode = \"Relaunch_vhost_2_cbdma\"\n         dmathr = 512\n         vhost_dmas = f\"dmas=[txq0@{self.used_cbdma[0]}],dmathr={dmathr}\"\n-        self.launch_testpmd_as_vhost_user(eal_params, self.cores[27:29],\n+        self.launch_testpmd_as_vhost_user(eal_params, self.cores[0:2],\n                                           dev=vhost_dev % vhost_dmas)\n         self.send_and_verify(mode)\n         self.virtio_user.send_expect(\"quit\", \"# \")\n",
    "prefixes": [
        "V1"
    ]
}