get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 84999,
    "url": "http://patches.dpdk.org/api/patches/84999/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20201211070828.24244-3-haiyangx.zhao@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": "<20201211070828.24244-3-haiyangx.zhao@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20201211070828.24244-3-haiyangx.zhao@intel.com",
    "date": "2020-12-11T07:08:27",
    "name": "[V1,2/3] framework/project_dpdk: replace i40evf with iavf",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "4378125477d3d2afb5703d15b07c1f34d0f70092",
    "submitter": {
        "id": 1978,
        "url": "http://patches.dpdk.org/api/people/1978/?format=api",
        "name": "Zhao, HaiyangX",
        "email": "haiyangx.zhao@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20201211070828.24244-3-haiyangx.zhao@intel.com/mbox/",
    "series": [
        {
            "id": 14251,
            "url": "http://patches.dpdk.org/api/series/14251/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=14251",
            "date": "2020-12-11T07:08:25",
            "name": "replace i40evf with iavf in framework",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/14251/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/84999/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/84999/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 69B11A09E0;\n\tFri, 11 Dec 2020 08:15:04 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D7512C962;\n\tFri, 11 Dec 2020 08:15:02 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id D7F7FBC86\n for <dts@dpdk.org>; Fri, 11 Dec 2020 08:15:00 +0100 (CET)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Dec 2020 23:14:59 -0800",
            "from unknown (HELO localhost.localdomain) ([10.240.183.57])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Dec 2020 23:14:58 -0800"
        ],
        "IronPort-SDR": [
            "\n 0gW/bjMiaeXjk8w3jjm4bZJoPYgN6GoJQCVOduEJhGwkdoKwzy25GBfcQnuB+fNhg4HEal0hGO\n zsvgCjR3nLig==",
            "\n /juA70ytzE87c+naO86kNY7W7pxCTg+RPryzZEN/QZy8EJ8CgEQHJ3dTiKJBfY2Y6xc11oCBcv\n PvV6BC8RqCbQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9831\"; a=\"154199148\"",
            "E=Sophos;i=\"5.78,410,1599548400\"; d=\"scan'208\";a=\"154199148\"",
            "E=Sophos;i=\"5.78,410,1599548400\"; d=\"scan'208\";a=\"545101659\""
        ],
        "From": "Haiyang Zhao <haiyangx.zhao@intel.com>",
        "To": "dts@dpdk.org,\n\tlijuan.tu@intel.com",
        "Cc": "Haiyang Zhao <haiyangx.zhao@intel.com>",
        "Date": "Fri, 11 Dec 2020 15:08:27 +0800",
        "Message-Id": "<20201211070828.24244-3-haiyangx.zhao@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20201211070828.24244-1-haiyangx.zhao@intel.com>",
        "References": "<20201211070828.24244-1-haiyangx.zhao@intel.com>",
        "Subject": "[dts] [PATCH V1 2/3] framework/project_dpdk: replace i40evf with\n\tiavf",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "replace i40evf with iavf in both host and vm dut,\nif the nic kernel driver is i40e.\n\nSigned-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>\n---\n framework/project_dpdk.py | 11 +++++++++++\n 1 file changed, 11 insertions(+)",
    "diff": "diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py\nindex 259282f4..a8a128ac 100644\n--- a/framework/project_dpdk.py\n+++ b/framework/project_dpdk.py\n@@ -278,6 +278,17 @@ class DPDKdut(Dut):\n         shared_lib_path = load_global_setting(HOST_SHARED_LIB_PATH)\n         if use_shared_lib == 'true' and 'Virt' not in str(self):\n             self.set_build_options({'RTE_BUILD_SHARED_LIB': 'y'})\n+        kernel_driver = ''\n+        if 'Virt' in str(self):\n+            if self.host_dut.nic:\n+                kernel_driver = self.host_dut.nic.default_driver\n+        elif self.nic:\n+            kernel_driver = self.nic.default_driver\n+\n+        if kernel_driver == 'i40e':\n+            self.send_expect(\"sed -i '/{ RTE_PCI_DEVICE(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_ADAPTIVE_VF) },/a { RTE_PCI_DEVICE(IAVF_INTEL_VENDOR_ID, IAVF_DEV_ID_VF) },' drivers/net/iavf/iavf_ethdev.c\", \"# \")\n+            self.send_expect(\"sed -i -e '/I40E_DEV_ID_VF/s/0x154C/0x164C/g'  drivers/net/i40e/base/i40e_devids.h\", \"# \")\n+\n         build_type = load_global_setting(HOST_BUILD_TYPE_SETTING)\n         build_install_dpdk = getattr(self, 'build_install_dpdk_%s_%s' % (self.get_os_type(), build_type))\n         build_install_dpdk(target, extra_options)\n",
    "prefixes": [
        "V1",
        "2/3"
    ]
}