get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 124264,
    "url": "http://patches.dpdk.org/api/patches/124264/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20230221145059.10655-2-hongbox.li@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": "<20230221145059.10655-2-hongbox.li@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20230221145059.10655-2-hongbox.li@intel.com",
    "date": "2023-02-21T14:50:59",
    "name": "[V1,2/2] tests/ice_dcf_switch_filter: optimize max vfs script",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "31d011c059d331db28ffb8a1a0f70c564e309a57",
    "submitter": {
        "id": 2804,
        "url": "http://patches.dpdk.org/api/people/2804/?format=api",
        "name": "Li, HongboX",
        "email": "hongbox.li@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20230221145059.10655-2-hongbox.li@intel.com/mbox/",
    "series": [
        {
            "id": 27107,
            "url": "http://patches.dpdk.org/api/series/27107/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=27107",
            "date": "2023-02-21T14:50:58",
            "name": "[V1,1/2] test_plans/ice_dcf_switch_filter: optimize max vfs script",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/27107/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/124264/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/124264/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 95C1741CF8;\n\tTue, 21 Feb 2023 07:33:10 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 91CCB43163;\n\tTue, 21 Feb 2023 07:33:10 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id AB16C40E5A\n for <dts@dpdk.org>; Tue, 21 Feb 2023 07:33:08 +0100 (CET)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Feb 2023 22:33:08 -0800",
            "from unknown (HELO localhost.localdomain) ([10.239.252.93])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Feb 2023 22:33:07 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1676961188; x=1708497188;\n h=from:to:cc:subject:date:message-id:in-reply-to: references;\n bh=oABYbbhJD/wlXyvCncAdVCwhEhLE8g/p0lWmuJ1fGaE=;\n b=QQAWIu9HL8tS7l8OHqMnSopS+cvgKhlmFBAbzjGNKYnHQbhys63Rct65\n ruflhXS86ZTtS+/uJlSiY+syRi9LlvRpsQ+Op3gariNu+2+AWiSQpWKB4\n rtRu4y+mGScUtrP9HC5PJUjS7Ho0Ard5oF1ZTzGcXtO5JEMx7bFP/gXDS\n 0P/4Ubex0xvQdoVsgOyVD3jKsZwALTDYhRx+3Qsiojmc45ywJREqHFPV+\n mjhT8dqqsId4w5gnyFtEJleIjLe1rT1BkALSO4W40K/tBLxvSVkd8XBtM\n UXtshKbHAKddyjQYJYFRN2c9mpJKB01ClGIfzQUj/cKopwy4Np8mQlD69 Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10627\"; a=\"330275968\"",
            "E=Sophos;i=\"5.97,314,1669104000\"; d=\"scan'208\";a=\"330275968\"",
            "E=McAfee;i=\"6500,9779,10627\"; a=\"1000483914\"",
            "E=Sophos;i=\"5.97,314,1669104000\"; d=\"scan'208\";a=\"1000483914\""
        ],
        "From": "Hongbo Li <hongbox.li@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Hongbo Li <hongbox.li@intel.com>",
        "Subject": "[dts][PATCH V1 2/2] tests/ice_dcf_switch_filter: optimize max vfs\n script",
        "Date": "Tue, 21 Feb 2023 22:50:59 +0800",
        "Message-Id": "<20230221145059.10655-2-hongbox.li@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20230221145059.10655-1-hongbox.li@intel.com>",
        "References": "<20230221145059.10655-1-hongbox.li@intel.com>",
        "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": "Change the method of obtaining the maximum number of VF that can be created on one PF\n\nSigned-off-by: Hongbo Li <hongbox.li@intel.com>\n---\n tests/TestSuite_ice_dcf_switch_filter.py | 17 ++++++++++++++---\n 1 file changed, 14 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_ice_dcf_switch_filter.py b/tests/TestSuite_ice_dcf_switch_filter.py\nindex 3560d065..4a84d084 100644\n--- a/tests/TestSuite_ice_dcf_switch_filter.py\n+++ b/tests/TestSuite_ice_dcf_switch_filter.py\n@@ -2951,10 +2951,21 @@ class ICEDCFSwitchFilterTest(TestCase):\n \n     def test_max_vfs(self):\n         # get max vfs number\n-        port_count = (1, 1, 2, 4, 4)[len(self.dut_ports)]\n-        max_vf_number = int(256 / (port_count))\n-        # set up max_vf_number vfs on 1 pf environment\n         self.used_dut_port_0 = self.dut_ports[0]\n+        self.domain_id_0 = self.dut.ports_info[self.used_dut_port_0][\"port\"].domain_id\n+        self.bus_id_0 = self.dut.ports_info[self.used_dut_port_0][\"port\"].bus_id\n+        self.devfun_id_0 = self.dut.ports_info[self.used_dut_port_0][\"port\"].devfun_id\n+        cmd_max_vfs = (\n+            \"cat /sys/bus/pci/devices/\"\n+            + self.domain_id_0\n+            + \"\\\\:\"\n+            + self.bus_id_0\n+            + \"\\\\:\"\n+            + self.devfun_id_0\n+            + \"/sriov_totalvfs\"\n+        )\n+        max_vf_number = int(self.dut.send_expect(cmd_max_vfs, \"#\"))\n+        # set up max_vf_number vfs on 1 pf environment\n         self.pf0_intf = self.dut.ports_info[self.used_dut_port_0][\"intf\"]\n         out = self.dut.send_expect(\"ethtool -i %s\" % self.pf0_intf, \"#\")\n         # generate max_vf_number VFs on PF0\n",
    "prefixes": [
        "V1",
        "2/2"
    ]
}