get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130257,
    "url": "https://patches.dpdk.org/api/patches/130257/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20230814151836.1494836-1-songx.jiale@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": "<20230814151836.1494836-1-songx.jiale@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20230814151836.1494836-1-songx.jiale@intel.com",
    "date": "2023-08-14T15:18:36",
    "name": "[V2] tests/ice_dcf_qos: optimize scripts",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "19e93bd11ae3cee4a3201895df8ebf39abb3fe1d",
    "submitter": {
        "id": 2352,
        "url": "https://patches.dpdk.org/api/people/2352/?format=api",
        "name": "Jiale, SongX",
        "email": "songx.jiale@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20230814151836.1494836-1-songx.jiale@intel.com/mbox/",
    "series": [
        {
            "id": 29207,
            "url": "https://patches.dpdk.org/api/series/29207/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=29207",
            "date": "2023-08-14T15:18:36",
            "name": "[V2] tests/ice_dcf_qos: optimize scripts",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/29207/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/130257/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/130257/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 3138B4305C;\n\tMon, 14 Aug 2023 09:08:30 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0F8E740A7F;\n\tMon, 14 Aug 2023 09:08:30 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id B9860406A2\n for <dts@dpdk.org>; Mon, 14 Aug 2023 09:08:28 +0200 (CEST)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Aug 2023 00:08:27 -0700",
            "from unknown (HELO dpdk.sh.intel.com) ([10.239.252.241])\n by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Aug 2023 00:08:26 -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=1691996908; x=1723532908;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=twP/Wdj0WQgQq9AaRTE+2BLe2GBL5s4y093Qzpim26s=;\n b=f3g0cH0hZtaLFH2sh8ogt+b3bYr1y4N7dkPXYl4ymVtCWbVpc3zzXGFk\n zZmj3U5mjtNc/831EumIAfIbwQTQvc2osrdAdF/8gN1hTj/oR+U/msktq\n G/SH9Vm8QddX1nG5Pk8lICIs/G/jN5ViUEBdUbTILFkZ8lySOIn9+q/cT\n s0rolxcx+Pc+9XMOIM2bBfV4wIUCtQZG8Y0enoV+pA2fh/zgz42OLjBCA\n +sToV/Jqn1dHMtKHJKpNQtp94/b8q4OOjOwL70nruDFvXHc8dnudeYK4z\n NDN5BLreXNF6G/JBFknicXiDTjNQqxYECvvKY4+PjDQx2BBqR7YN0pQ3T A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10801\"; a=\"375684980\"",
            "E=Sophos;i=\"6.01,171,1684825200\"; d=\"scan'208\";a=\"375684980\"",
            "E=McAfee;i=\"6600,9927,10801\"; a=\"907128391\"",
            "E=Sophos;i=\"6.01,171,1684825200\"; d=\"scan'208\";a=\"907128391\""
        ],
        "X-ExtLoop1": "1",
        "From": "Jiale Song <songx.jiale@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Jiale Song <songx.jiale@intel.com>",
        "Subject": "[dts] [PATCH V2] tests/ice_dcf_qos: optimize scripts",
        "Date": "Mon, 14 Aug 2023 23:18:36 +0800",
        "Message-Id": "<20230814151836.1494836-1-songx.jiale@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "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 scripts:\n    1. modify pf reset method.\n    2. modify incorrect inspection ports and detection values according\nto the testing plan.\n    3. Modify the detection rate from 25Gbps to 45Gbps. this value is the\nactual measured value.\n\nSigned-off-by: Jiale Song <songx.jiale@intel.com>\n---\n test_plans/ice_dcf_qos_test_plan.rst |  2 +-\n tests/TestSuite_ice_dcf_qos.py       | 13 +++++--------\n 2 files changed, 6 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/test_plans/ice_dcf_qos_test_plan.rst b/test_plans/ice_dcf_qos_test_plan.rst\nindex b2cb08ce..ab3d6035 100644\n--- a/test_plans/ice_dcf_qos_test_plan.rst\n+++ b/test_plans/ice_dcf_qos_test_plan.rst\n@@ -1238,7 +1238,7 @@ This case is to check if the QoS setting works after resetting PF.\n \n 2. Reset pf::\n \n-    echo 1 > /sys/devices/pci0000:17/0000:17:00.0/0000:18:00.0/reset\n+    echo 1 > /sys/bus/pci/devices/0000:31:00.0/reset\n \n 3. Send same streams as step1, check no packets received and transmitted.\n \ndiff --git a/tests/TestSuite_ice_dcf_qos.py b/tests/TestSuite_ice_dcf_qos.py\nindex bd0317db..ff4409d0 100644\n--- a/tests/TestSuite_ice_dcf_qos.py\n+++ b/tests/TestSuite_ice_dcf_qos.py\n@@ -908,7 +908,7 @@ class TestICEDCFQos(TestCase):\n             [[5], 12.5, (8, \"Gbps\", 3)],\n             [[6], 12.5, (8, \"Gbps\", 3)],\n             [[7], 12.5, (8, \"Gbps\", 3)],\n-            [[0, 1, 2, 3, 4, 5, 6, 7], 100, (9.7, \"Gbps\", 1)],\n+            [[0, 1, 2, 3, 4, 5, 6, 7], 100, (9.77, \"Gbps\", 3)],\n         ]\n         results = self.check_traffic(stream_configs, traffic_tasks, frame_size=1024)\n         queue_mapping = [\n@@ -928,7 +928,7 @@ class TestICEDCFQos(TestCase):\n         ]\n         time.sleep(10)\n         traffic_tasks = [\n-            [[0, 1, 2, 3, 4, 5, 6, 7], 100, (7.273, \"Gbps\", 1)],\n+            [[0, 1, 2, 3, 4, 5, 6, 7], 100, (7.273, \"Gbps\", 3)],\n         ]\n         results = self.check_traffic(stream_configs, traffic_tasks, frame_size=68)\n         self.testpmd_close()\n@@ -1017,7 +1017,7 @@ class TestICEDCFQos(TestCase):\n             [[5], 12.5, (2, \"MBps\", 2)],\n             [[6], 12.5, (2, \"MBps\", 2)],\n             [[7], 12.5, (4, \"MBps\", 2)],\n-            [[0, 1, 2, 3, 4, 5, 6, 7], 100, (12.5, \"Gbps\")],\n+            [[0, 1, 2, 3, 4, 5, 6, 7], 100, (128, \"Mbps\")],\n         ]\n         results = self.check_traffic(stream_configs, traffic_tasks)\n         self.testpmd_close()\n@@ -1446,7 +1446,7 @@ class TestICEDCFQos(TestCase):\n         ]\n         self.pmd_con(cmds)\n         traffic_tasks = [\n-            [[0, 1, 2, 3, 4, 5, 6, 7], 100, (25, \"Gbps\")],\n+            [[0, 1, 2, 3, 4, 5, 6, 7], 100, (45, \"Gbps\")],\n         ]\n         results = self.check_traffic(stream_configs, traffic_tasks, frame_size=68)\n         self.pmd_con(\"stop\")\n@@ -1847,10 +1847,7 @@ class TestICEDCFQos(TestCase):\n         ]\n         results = self.check_traffic(stream_configs, traffic_tasks)\n         self.testpmd_close()\n-        pci = str(int(self.nic100g_pci[5:7]) - 1)\n-        cmds = [\n-            f\"echo 1 > /sys/devices/pci0000:{pci}/0000:{pci}:00.0/{self.nic100g_pci}/reset\",\n-        ]\n+        cmds = [\"echo 1 > /sys/bus/pci/devices/%s/reset\" % self.nic100g_pci]\n         self.d_a_con(cmds)\n         self.strict_mode_check_peak_tb_rate_preset(vfs_grp, commit_check=False)\n         stream_configs = [\n",
    "prefixes": [
        "V2"
    ]
}