get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 89620,
    "url": "https://patches.dpdk.org/api/patches/89620/?format=api",
    "web_url": "https://patches.dpdk.org/project/dts/patch/20210322024616.14499-3-haiyangx.zhao@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": "<20210322024616.14499-3-haiyangx.zhao@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20210322024616.14499-3-haiyangx.zhao@intel.com",
    "date": "2021-03-22T02:46:12",
    "name": "[V1,2/6] framework/dut: get nic driver/firmware info",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d5f5e645d086ba2e0bda726b8bfc4f73c6e6c237",
    "submitter": {
        "id": 1978,
        "url": "https://patches.dpdk.org/api/people/1978/?format=api",
        "name": "Zhao, HaiyangX",
        "email": "haiyangx.zhao@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dts/patch/20210322024616.14499-3-haiyangx.zhao@intel.com/mbox/",
    "series": [
        {
            "id": 15806,
            "url": "https://patches.dpdk.org/api/series/15806/?format=api",
            "web_url": "https://patches.dpdk.org/project/dts/list/?series=15806",
            "date": "2021-03-22T02:46:10",
            "name": "framework: add dirver/firmware/pkg in result",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/15806/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/89620/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/89620/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 BBDACA034F;\n\tMon, 22 Mar 2021 03:55:31 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AD811140EAE;\n\tMon, 22 Mar 2021 03:55:31 +0100 (CET)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 36F2B4069C\n for <dts@dpdk.org>; Mon, 22 Mar 2021 03:55:30 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Mar 2021 19:55:29 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.57])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Mar 2021 19:55:27 -0700"
        ],
        "IronPort-SDR": [
            "\n 9qP8ADGbcYVE5vwhFYY2/w96XVjm7F0RNAqu4USK9mFs7rtZVa2Ecx1dkosGcIkOBkRKOBwyCQ\n 9neHYFWFe4wQ==",
            "\n Sl+Ne0Yp7fIG2eTAZMJAF8qqYJAcoY3lsAPxWWpVHcC/6fHfECdni2K5fzeSFvC+YdFyKibJYu\n Xk1RIaGfftwA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9930\"; a=\"254189569\"",
            "E=Sophos;i=\"5.81,266,1610438400\"; d=\"scan'208\";a=\"254189569\"",
            "E=Sophos;i=\"5.81,266,1610438400\"; d=\"scan'208\";a=\"407623006\""
        ],
        "From": "Haiyang Zhao <haiyangx.zhao@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "lijuan.tu@intel.com,\n\tHaiyang Zhao <haiyangx.zhao@intel.com>",
        "Date": "Mon, 22 Mar 2021 10:46:12 +0800",
        "Message-Id": "<20210322024616.14499-3-haiyangx.zhao@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210322024616.14499-1-haiyangx.zhao@intel.com>",
        "References": "<20210322024616.14499-1-haiyangx.zhao@intel.com>",
        "Subject": "[dts] [PATCH V1 2/6] framework/dut: get nic driver/firmware info",
        "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": "get nic driver/firmware info in dut prerequisites.\n\nSigned-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>\n---\n framework/dut.py | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/framework/dut.py b/framework/dut.py\nindex 5bc84fca..d31ba42c 100644\n--- a/framework/dut.py\n+++ b/framework/dut.py\n@@ -424,13 +424,13 @@ class Dut(Crb):\n         retry_times = 3\n         if self.ports_info:\n             self.nic = self.ports_info[0]['port']\n-            # TODO: get nic driver/firmware version\n+            self.nic.get_driver_firmware()\n             if self.nic.default_driver == 'ice':\n                 self.get_nic_pkg(retry_times)\n \n     def get_nic_pkg(self, retry_times=3):\n         self.nic.pkg = self.nic.get_nic_pkg()\n-        while not self.nic.pkg and retry_times > 0:\n+        while not self.nic.pkg.get('type') and retry_times > 0:\n             self.restore_interfaces()\n             self.nic.pkg = self.nic.get_nic_pkg()\n             retry_times = retry_times - 1\n",
    "prefixes": [
        "V1",
        "2/6"
    ]
}