Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/129516/?format=api
https://patches.dpdk.org/api/patches/129516/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230713051716.2579821-1-kaisenx.you@intel.com/", "project": { "id": 1, "url": "https://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": "<20230713051716.2579821-1-kaisenx.you@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230713051716.2579821-1-kaisenx.you@intel.com", "date": "2023-07-13T05:17:16", "name": "app/test:add NIC parameter exception handling", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "35e3bebac01307f156c7e9c36ff28d5cb081aa4c", "submitter": { "id": 2900, "url": "https://patches.dpdk.org/api/people/2900/?format=api", "name": "Kaisen You", "email": "kaisenx.you@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230713051716.2579821-1-kaisenx.you@intel.com/mbox/", "series": [ { "id": 28928, "url": "https://patches.dpdk.org/api/series/28928/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=28928", "date": "2023-07-13T05:17:16", "name": "app/test:add NIC parameter exception handling", "version": 1, "mbox": "https://patches.dpdk.org/series/28928/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/129516/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/129516/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-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 7A63642E52;\n\tThu, 13 Jul 2023 07:19:34 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0877B40EE7;\n\tThu, 13 Jul 2023 07:19:34 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id 4136940DDA;\n Thu, 13 Jul 2023 07:19:32 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Jul 2023 22:19:31 -0700", "from unknown (HELO localhost.localdomain) ([10.239.252.104])\n by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Jul 2023 22:19:29 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1689225572; x=1720761572;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=OSkaxZlHEXaiCtrW3klWVkAYj/4jguBUJNjODnYH/Ps=;\n b=kxdEl3fBlsvn3SLbwg17v/Ihb7v/VZHsPek7RWZkHzBGpMNfuwDFqFdT\n 4HK5Z+w0iqT0q4tqoeL89MaiZFdjKhCwj8bRFdgCtVDSjQO/Sq5mOiEFD\n kOPwEFROjiGFrwdZV1QTkuze07yRE249H+xx26U/0WjnrwYprZ1/iMYD0\n 30sl09N2OSPuaagWxjEUC7kZPMSwe2O49Qa4SKFwHBcbaPCsPgtt12cNn\n PQ+eVVZCN0gOVkRiIiexYsg10pUgzHJqACuz//5W46EUTh8T4505jx36U\n NWWkT90pKe5aro+J2bU/1Fa0Ge2TCxGWBkohgFBHDS6fOjPJNkVELzHVe Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10769\"; a=\"368623648\"", "E=Sophos;i=\"6.01,201,1684825200\"; d=\"scan'208\";a=\"368623648\"", "E=McAfee;i=\"6600,9927,10769\"; a=\"672134018\"", "E=Sophos;i=\"6.01,201,1684825200\"; d=\"scan'208\";a=\"672134018\"" ], "X-ExtLoop1": "1", "From": "Kaisen You <kaisenx.you@intel.com>", "To": "dev@dpdk.org", "Cc": "qiming.yang@intel.com, yidingx.zhou@intel.com,\n Kaisen You <kaisenx.you@intel.com>, stable@dpdk.org", "Subject": "[PATCH] app/test:add NIC parameter exception handling", "Date": "Thu, 13 Jul 2023 13:17:16 +0800", "Message-Id": "<20230713051716.2579821-1-kaisenx.you@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Add NIC exception parameter handling to dpdk_test process,\nprogram exits when carrying unbound vfio NIC parameters.\n\nFixes: 50247fe03fe0 (\"test/timer: exercise new APIs in secondary process\")\nCc: stable@dpdk.org\n\nSigned-off-by: Kaisen You <kaisenx.you@intel.com>\n---\n app/test/test.c | 18 ++++++++++++++++++\n 1 file changed, 18 insertions(+)", "diff": "diff --git a/app/test/test.c b/app/test/test.c\nindex fb073ff795..c927adba81 100644\n--- a/app/test/test.c\n+++ b/app/test/test.c\n@@ -20,6 +20,7 @@ extern cmdline_parse_ctx_t main_ctx[];\n #endif\n \n #include <rte_memory.h>\n+#include <rte_ethdev.h>\n #include <rte_eal.h>\n #include <rte_cycles.h>\n #include <rte_log.h>\n@@ -111,6 +112,9 @@ main(int argc, char **argv)\n \tchar *tests[argc]; /* store an array of tests to run */\n \tint test_count = 0;\n \tint i;\n+\tuint16_t count;\n+\tuint16_t port_id;\n+\tuint16_t nb_ports;\n #endif\n \tchar *extra_args;\n \tint ret;\n@@ -157,6 +161,20 @@ main(int argc, char **argv)\n \n \tprgname = argv[0];\n \n+\tcount = 0;\n+\tRTE_ETH_FOREACH_DEV(port_id) {\n+\t\tcount++;\n+\t}\n+\tnb_ports = count;\n+\tif (nb_ports == 0) {\n+\t\tif (rte_errno == EBUSY)\n+\t\t\tprintf(\"Requested device cannot be used: %d\\n\", rte_errno);\n+\t\telse\n+\t\t\tprintf(\"No probed ethernet devices: %d\\n\", rte_errno);\n+\t\tret = 0;\n+\t\tgoto out;\n+\t}\n+\n #ifdef RTE_LIB_TIMER\n \tret = rte_timer_subsystem_init();\n \tif (ret < 0 && ret != -EALREADY) {\n", "prefixes": [] }{ "id": 129516, "url": "