Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/90273/?format=api
http://patchwork.dpdk.org/api/patches/90273/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/patch/20210401073833.26279-1-haiyangx.zhao@intel.com/", "project": { "id": 3, "url": "http://patchwork.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": "<20210401073833.26279-1-haiyangx.zhao@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20210401073833.26279-1-haiyangx.zhao@intel.com", "date": "2021-04-01T07:38:33", "name": "[V1] framework/dut: fix getting nic info failed in FreeBSD", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "d1549c093974e0f9a1943551fea6e93b5356b657", "submitter": { "id": 1978, "url": "http://patchwork.dpdk.org/api/people/1978/?format=api", "name": "Zhao, HaiyangX", "email": "haiyangx.zhao@intel.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dts/patch/20210401073833.26279-1-haiyangx.zhao@intel.com/mbox/", "series": [ { "id": 16041, "url": "http://patchwork.dpdk.org/api/series/16041/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=16041", "date": "2021-04-01T07:38:33", "name": "[V1] framework/dut: fix getting nic info failed in FreeBSD", "version": 1, "mbox": "http://patchwork.dpdk.org/series/16041/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/90273/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/90273/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 3C693A034F;\n\tThu, 1 Apr 2021 09:47:56 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 33ACA141083;\n\tThu, 1 Apr 2021 09:47:56 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id C328F4013F\n for <dts@dpdk.org>; Thu, 1 Apr 2021 09:47:54 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Apr 2021 00:47:51 -0700", "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 01 Apr 2021 00:47:50 -0700" ], "IronPort-SDR": [ "\n n85+UDIzFnrJjpELJL6eCvtT6Qhde1VxC5VFD60jgcJp49rJFTPrp7AduXv2N72z5vu5ATwEPT\n r2nnBAQNxnug==", "\n kybAmUx4h+XLc1ZHcPAeS7cpO2MkNhbLXu5wbSTYiNTZWrgke2Yd1nFKenxOULq+4/wxA5A/qS\n 0DXcPBybMSzw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9940\"; a=\"179304936\"", "E=Sophos;i=\"5.81,296,1610438400\"; d=\"scan'208\";a=\"179304936\"", "E=Sophos;i=\"5.81,296,1610438400\"; d=\"scan'208\";a=\"610810646\"" ], "From": "Haiyang Zhao <haiyangx.zhao@intel.com>", "To": "dts@dpdk.org", "Cc": "Haiyang Zhao <haiyangx.zhao@intel.com>", "Date": "Thu, 1 Apr 2021 15:38:33 +0800", "Message-Id": "<20210401073833.26279-1-haiyangx.zhao@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dts] [PATCH V1] framework/dut: fix getting nic info failed in\n FreeBSD", "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": "Getting pci_id will be failed in FreeBSD and it causes get nic name \nand default_driver failed, and will cause many cases failed, fix it \nby assign the pci_id and reget the nic and driver name.\n\nSigned-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>\n---\n framework/dut.py | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/framework/dut.py b/framework/dut.py\nindex 6216166d..ca1c9089 100644\n--- a/framework/dut.py\n+++ b/framework/dut.py\n@@ -1061,6 +1061,9 @@ class Dut(Crb):\n bus_id = addr_array[1]\n devfun_id = addr_array[2]\n port = GetNicObj(self, domain_id, bus_id, devfun_id)\n+ port.pci_id= pci_id\n+ port.name = settings.get_nic_name(pci_id)\n+ port.default_driver = settings.get_nic_driver(pci_id)\n intf = port.get_interface_name()\n \n macaddr = port.get_mac_addr()\n", "prefixes": [ "V1" ] }{ "id": 90273, "url": "