get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 116613,
    "url": "https://patches.dpdk.org/api/patches/116613/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20220922025843.1862827-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": "<20220922025843.1862827-1-weix.ling@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220922025843.1862827-1-weix.ling@intel.com",
    "date": "2022-09-22T02:58:43",
    "name": "[V1] tests/pvp_share_lib: delete repeat code",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "53e8f071bf8e624a1557ef9d14e322d5eb9bdeec",
    "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/20220922025843.1862827-1-weix.ling@intel.com/mbox/",
    "series": [
        {
            "id": 24766,
            "url": "https://patches.dpdk.org/api/series/24766/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=24766",
            "date": "2022-09-22T02:58:43",
            "name": "[V1] tests/pvp_share_lib: delete repeat code",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/24766/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/116613/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/116613/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 09C6AA0540;\n\tThu, 22 Sep 2022 05:05:54 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E8C9740691;\n\tThu, 22 Sep 2022 05:05:53 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 0EBF84067C\n for <dts@dpdk.org>; Thu, 22 Sep 2022 05:05:51 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Sep 2022 20:05:51 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.222])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Sep 2022 20:05:49 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1663815952; x=1695351952;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=Lm1MW/JgYJKgtpYcb5Zskb2L56Peq0cyp+9umvxSfe4=;\n b=TLY44OM5nnj2AI4woIde7Lt7aAfoXMghKwQ2/Gl3VITgcQa9J9l1GiXq\n FryQ6hI8sMYOHA8SzROtBashDLuclT0KdcFg8my5iPLk4AsGMU1TFTMaR\n iiSCO4EqOU8OrBsbbwZysFUT4hKX885VaNDF0HmrQ3v7kqYHXtWKWRh0z\n whFXnWNiaB+F/IuTH2qP0zctxVOcTV4EWGkpSxC38nQV1VUwodx2YmohD\n /eVTuCAdAGVdOp9Cn6cQHS+83HGTasgQgoouWkGvB7hwOX4yzjqJjcP0k\n GVv91mGfWWwDm0mKUIGCBpH14aGW6xDPp9B/YD02NOeH+qg0aH8zlbr01 Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10477\"; a=\"301026592\"",
            "E=Sophos;i=\"5.93,335,1654585200\"; d=\"scan'208\";a=\"301026592\"",
            "E=Sophos;i=\"5.93,335,1654585200\"; d=\"scan'208\";a=\"948415931\""
        ],
        "From": "Wei Ling <weix.ling@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Wei Ling <weix.ling@intel.com>",
        "Subject": "[dts][PATCH V1] tests/pvp_share_lib: delete repeat code",
        "Date": "Wed, 21 Sep 2022 22:58:43 -0400",
        "Message-Id": "<20220922025843.1862827-1-weix.ling@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "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"
    },
    "content": "Optimize code and delete repeat code.\n\nSigned-off-by: Wei Ling <weix.ling@intel.com>\n---\n tests/TestSuite_pvp_share_lib.py | 30 ++++++++----------------------\n 1 file changed, 8 insertions(+), 22 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_pvp_share_lib.py b/tests/TestSuite_pvp_share_lib.py\nindex ee3ae39a..32879503 100644\n--- a/tests/TestSuite_pvp_share_lib.py\n+++ b/tests/TestSuite_pvp_share_lib.py\n@@ -1,3 +1,4 @@\n+# coding=utf-8\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2019 Intel Corporation\n #\n@@ -7,9 +8,8 @@ DPDK Test suite.\n The feature need compile dpdk as shared libraries.\n \"\"\"\n \n-import framework.utils as utils\n from framework.pktgen import PacketGeneratorHelper\n-from framework.settings import HEADER_SIZE\n+from framework.settings import HEADER_SIZE, DRIVERS\n from framework.test_case import TestCase\n \n \n@@ -130,7 +130,7 @@ class TestPVPShareLib(TestCase):\n             ports=[self.pci_info],\n         )\n         eal_param += (\n-            \" -d librte_net_vhost.so -d librte_net_%s.so -d librte_mempool_ring.so --file-prefix=vhost\"\n+            \"-d librte_net_vhost.so -d librte_net_%s.so -d librte_mempool_ring.so --file-prefix=vhost\"\n             % driver\n         )\n         command_line_client = self.path + eal_param + \" -- -i\"\n@@ -152,7 +152,7 @@ class TestPVPShareLib(TestCase):\n         )\n         if self.check_2M_env:\n             eal_param += \" --single-file-segments\"\n-        eal_param += \" -d librte_net_virtio.so -d librte_mempool_ring.so\"\n+        eal_param += \"-d librte_net_virtio.so -d librte_mempool_ring.so\"\n         command_line_user = self.path + eal_param + \" -- -i\"\n         self.virtio_user.send_expect(command_line_user, \"testpmd> \", 120)\n         self.virtio_user.send_expect(\"start\", \"testpmd> \", 120)\n@@ -166,29 +166,15 @@ class TestPVPShareLib(TestCase):\n         self.dut.close_session(self.vhost_user)\n         self.dut.close_session(self.virtio_user)\n \n-    def test_perf_pvp_share_lib_of_niantic(self):\n+    def test_perf_pvp_share_lib(self):\n         \"\"\"\n-        Vhost/virtio-user pvp share lib test with 82599\n+        Vhost/virtio-user pvp share lib test with Intel® Ethernet 82599/700 Series\n         \"\"\"\n         self.verify(\n-            self.nic in [\"IXGBE_10G-82599_SFP\"],\n+            self.nic in [\"IXGBE_10G-82599_SFP\", \"I40E_10G-SFP_XL710\", \"I40E_40G-QSFP_A\", \"I40E_25G-25G_SFP28\"],\n             \"the nic not support this case: %s\" % self.running_case,\n         )\n-        self.start_testpmd_as_vhost(driver=\"ixgbe\")\n-        self.start_testpmd_as_virtio()\n-        self.send_and_verify()\n-        self.result_table_print()\n-        self.close_all_apps()\n-\n-    def test_perf_pvp_share_lib_of_fortville(self):\n-        \"\"\"\n-        Vhost/virtio-user pvp share lib test with Intel® Ethernet 700 Series\n-        \"\"\"\n-        self.verify(\n-            self.nic in [\"I40E_10G-SFP_XL710\", \"I40E_40G-QSFP_A\", \"I40E_25G-25G_SFP28\"],\n-            \"the nic not support this case: %s\" % self.running_case,\n-        )\n-        self.start_testpmd_as_vhost(driver=\"i40e\")\n+        self.start_testpmd_as_vhost(driver=DRIVERS[self.nic])\n         self.start_testpmd_as_virtio()\n         self.send_and_verify()\n         self.result_table_print()\n",
    "prefixes": [
        "V1"
    ]
}