Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/48039/?format=api
http://patches.dpdk.org/api/patches/48039/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/9b28e77a26d11b3cb8d063ea5949f231b0f9830d.1542124966.git.anatoly.burakov@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<9b28e77a26d11b3cb8d063ea5949f231b0f9830d.1542124966.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/9b28e77a26d11b3cb8d063ea5949f231b0f9830d.1542124966.git.anatoly.burakov@intel.com", "date": "2018-11-13T16:06:26", "name": "[v2] devbind: check for lspci", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ccb6bb401d81a275ab2941f3d8a3cfbed3828cd8", "submitter": { "id": 4, "url": "http://patches.dpdk.org/api/people/4/?format=api", "name": "Anatoly Burakov", "email": "anatoly.burakov@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/9b28e77a26d11b3cb8d063ea5949f231b0f9830d.1542124966.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 2388, "url": "http://patches.dpdk.org/api/series/2388/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2388", "date": "2018-11-13T16:06:26", "name": "[v2] devbind: check for lspci", "version": 2, "mbox": "http://patches.dpdk.org/series/2388/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/48039/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/48039/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1ACEB4CAF;\n\tTue, 13 Nov 2018 17:06:32 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 26AD84CA2;\n\tTue, 13 Nov 2018 17:06:29 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Nov 2018 08:06:28 -0800", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga002.jf.intel.com with ESMTP; 13 Nov 2018 08:06:27 -0800", "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\twADG6QpO021927; Tue, 13 Nov 2018 16:06:26 GMT", "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id wADG6QJb028992;\n\tTue, 13 Nov 2018 16:06:26 GMT", "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id wADG6QD8028987;\n\tTue, 13 Nov 2018 16:06:26 GMT" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.56,499,1539673200\"; d=\"scan'208\";a=\"108224203\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "ferruh.yigit@intel.com, roszenrami@gmail.com, stable@dpdk.org", "Date": "Tue, 13 Nov 2018 16:06:26 +0000", "Message-Id": "<9b28e77a26d11b3cb8d063ea5949f231b0f9830d.1542124966.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": "<d2749a0c9f18188c56e02e61c602e65ca88e099d.1541598755.git.anatoly.burakov@intel.com>", "References": "<d2749a0c9f18188c56e02e61c602e65ca88e099d.1541598755.git.anatoly.burakov@intel.com>", "Subject": "[dpdk-dev] [PATCH v2] devbind: check for lspci", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "On some distributions (such as CentOS 7) lspci may not be installed\nby default, causing exceptions which are difficult to interpret.\n\nFix devbind script to check if lspci is installed at script startup.\n\nCc: stable@dpdk.org\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n\nNotes:\n v2: correct package name to \"pciutils\"\n\n usertools/dpdk-devbind.py | 7 +++++++\n 1 file changed, 7 insertions(+)", "diff": "diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py\nindex 7d564634c..40dc28a7d 100755\n--- a/usertools/dpdk-devbind.py\n+++ b/usertools/dpdk-devbind.py\n@@ -655,6 +655,13 @@ def do_arg_actions():\n \n def main():\n '''program main function'''\n+ # check if lspci is installed, suppress any output\n+ with open(os.devnull, 'w') as devnull:\n+ ret = subprocess.call(['which', 'lspci'],\n+ stdout=devnull, stderr=devnull)\n+ if ret != 0:\n+ print(\"'lspci' not found - please install 'pciutils'\")\n+ sys.exit(1)\n parse_args()\n check_modules()\n clear_data()\n", "prefixes": [ "v2" ] }{ "id": 48039, "url": "