get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 90155,
    "url": "https://patches.dpdk.org/api/patches/90155/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210331101659.506185-4-lijuan.tu@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": "<20210331101659.506185-4-lijuan.tu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210331101659.506185-4-lijuan.tu@intel.com",
    "date": "2021-03-31T10:16:56",
    "name": "[v3,3/6] tests/nic_single_core_perf: revise rst table",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "2bffdec7ebd64cb83c90541976de0e46f41caa7e",
    "submitter": {
        "id": 1098,
        "url": "https://patches.dpdk.org/api/people/1098/?format=api",
        "name": "Tu, Lijuan",
        "email": "lijuan.tu@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210331101659.506185-4-lijuan.tu@intel.com/mbox/",
    "series": [
        {
            "id": 15990,
            "url": "https://patches.dpdk.org/api/series/15990/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=15990",
            "date": "2021-03-31T10:16:54",
            "name": "revise tests/nic_signle_core_perf",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/15990/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/90155/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/90155/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 084EAA034F;\n\tWed, 31 Mar 2021 04:18:04 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 83CAE140DF9;\n\tWed, 31 Mar 2021 04:18:03 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id F0D084069E\n for <dts@dpdk.org>; Wed, 31 Mar 2021 04:18:01 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Mar 2021 19:18:00 -0700",
            "from dpdk-icelake-perf.sh.intel.com ([10.67.118.199])\n by fmsmga002.fm.intel.com with ESMTP; 30 Mar 2021 19:17:58 -0700"
        ],
        "IronPort-SDR": [
            "\n agqGCugkmxg/1FK3jUNXLUo6CYmS881tqym/2Bk3DlRpSiw5KsAnfpOC3B1yYubO6GG3/Xf+Hx\n DbbtxzH7Hocw==",
            "\n xVARVW6WTH9lSjrfvDORrnXWk+qqydjG8tk4dtHgj/BvKWlQzRPR9kH6nqdwp85aJ5/3Z0soaP\n Bj9QihLTDdog=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9939\"; a=\"179027931\"",
            "E=Sophos;i=\"5.81,291,1610438400\"; d=\"scan'208\";a=\"179027931\"",
            "E=Sophos;i=\"5.81,291,1610438400\"; d=\"scan'208\";a=\"445432396\""
        ],
        "X-ExtLoop1": "1",
        "From": "Lijuan Tu <lijuan.tu@intel.com>",
        "To": "dliu@iol.unh.edu,\n\tohilyard@iol.unh.edu,\n\talialnu@nvidia.com",
        "Cc": "dts@dpdk.org,\n\tLijuan Tu <lijuan.tu@intel.com>",
        "Date": "Wed, 31 Mar 2021 10:16:56 +0000",
        "Message-Id": "<20210331101659.506185-4-lijuan.tu@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210331101659.506185-1-lijuan.tu@intel.com>",
        "References": "<20210331101659.506185-1-lijuan.tu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dts] [v3 3/6] tests/nic_single_core_perf: revise rst table",
        "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 more info in rst table, and rename headers to reduce width.\n\nbefore:\n  +----------+------------+---------+------------+--------+---------------------+-----------------------+\n  | Fwd_core | Frame Size | TXD/RXD | Throughput |  Rate  | Expected Throughput | Throughput Difference |\n  +==========+============+=========+============+========+=====================+=======================+\n  | 1C/1T    | 64         | 512     | 9.842 Mpps | 3.307% | 0.000 Mpps          | 9.842 Mpps            |\n  +----------+------------+---------+------------+--------+---------------------+-----------------------+\nafter:\n  +----------+------------+---------+-----------+--------+---------------+-----------------+--------+\n  | Fwd_core | Frame Size | TXD/RXD | Real-Mpps |  Rate  | Expected-Mpps | Real - Expected | Status |\n  +==========+============+=========+===========+========+===============+=================+========+\n  | 1C/1T    | 64         | 512     | 9.864     | 3.314% | 0             | 9.864           | PASS   |\n  +----------+------------+---------+-----------+--------+---------------+-----------------+--------+\n\nSigned-off-by: Lijuan Tu <lijuan.tu@intel.com>\n---\n tests/TestSuite_nic_single_core_perf.py | 28 +++++++++++++------------\n 1 file changed, 15 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_nic_single_core_perf.py b/tests/TestSuite_nic_single_core_perf.py\nindex a0a257dd..095b508a 100644\n--- a/tests/TestSuite_nic_single_core_perf.py\n+++ b/tests/TestSuite_nic_single_core_perf.py\n@@ -120,8 +120,8 @@ class TestNicSingleCorePerf(TestCase):\n         self.gap = self.get_suite_cfg()['accepted_tolerance']\n \n         # header to print test result table\n-        self.table_header = ['Fwd_core', 'Frame Size', 'TXD/RXD', 'Throughput', 'Rate',\n-                             'Expected Throughput', 'Throughput Difference']\n+        self.table_header = ['Fwd_core', 'Frame Size', 'TXD/RXD', 'Real-Mpps', 'Rate',\n+                             'Expected-Mpps', 'Real - Expected', 'Status']\n         self.test_result = {}\n \n     def flows(self):\n@@ -327,15 +327,17 @@ class TestNicSingleCorePerf(TestCase):\n                     ret_data[header[0]] = fwd_config\n                     ret_data[header[1]] = frame_size\n                     ret_data[header[2]] = nb_desc\n-                    ret_data[header[3]] = \"{:.3f} Mpps\".format(\n-                        self.throughput[fwd_config][frame_size][nb_desc])\n-                    ret_data[header[4]] = \"{:.3f}%\".format(\n-                        self.throughput[fwd_config][frame_size][nb_desc] * 100 / wirespeed)\n-                    ret_data[header[5]] = \"{:.3f} Mpps\".format(\n-                        self.expected_throughput[fwd_config][frame_size][nb_desc])\n-                    ret_data[header[6]] = \"{:.3f} Mpps\".format(\n-                        self.throughput[fwd_config][frame_size][nb_desc] -\n-                            self.expected_throughput[fwd_config][frame_size][nb_desc])\n+                    _real = self.throughput[fwd_config][frame_size][nb_desc]\n+                    _exp = self.expected_throughput[fwd_config][frame_size][nb_desc]\n+                    ret_data[header[3]] = \"{:.3f}\".format(_real)\n+                    ret_data[header[4]] = \"{:.3f}%\".format(_real * 100 / wirespeed)\n+                    ret_data[header[5]] = \"{:.3f}\".format(_exp)\n+                    delta = _real - _exp\n+                    ret_data[header[6]] = \"{:.3f}\".format(delta)\n+                    if delta > -self.gap:\n+                        ret_data[header[7]] = 'PASS'\n+                    else:\n+                        ret_data[header[7]] = 'FAIL'\n \n                     ret_datas[frame_size][nb_desc] = deepcopy(ret_data)\n                 self.test_result[fwd_config] = deepcopy(ret_datas)\n@@ -374,8 +376,8 @@ class TestNicSingleCorePerf(TestCase):\n                     row_dict0 = dict()\n                     row_dict0['performance'] = list()\n                     row_dict0['parameters'] = list()\n-                    result_throughput = float(row_in['Throughput'].split()[0])\n-                    expected_throughput = float(row_in['Expected Throughput'].split()[0])\n+                    result_throughput = float(row_in['Real-Mpps'])\n+                    expected_throughput = float(row_in['Expected-Mpps'])\n                     # delta value and accepted tolerance in percentage\n                     delta = result_throughput - expected_throughput\n                     if delta > -self.gap:\n",
    "prefixes": [
        "v3",
        "3/6"
    ]
}