Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/79566/?format=api
http://patches.dpdk.org/api/patches/79566/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201003090541.32449-1-jay.jayatheerthan@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": "<20201003090541.32449-1-jay.jayatheerthan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201003090541.32449-1-jay.jayatheerthan@intel.com", "date": "2020-10-03T09:05:40", "name": "[1/2] app/test: uninit vdevs in event eth Rx adapter autotest", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "57a7de10538992db77e6438827249954549fce08", "submitter": { "id": 2008, "url": "http://patches.dpdk.org/api/people/2008/?format=api", "name": "Jayatheerthan, Jay", "email": "jay.jayatheerthan@intel.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201003090541.32449-1-jay.jayatheerthan@intel.com/mbox/", "series": [ { "id": 12677, "url": "http://patches.dpdk.org/api/series/12677/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12677", "date": "2020-10-03T09:05:40", "name": "[1/2] app/test: uninit vdevs in event eth Rx adapter autotest", "version": 1, "mbox": "http://patches.dpdk.org/series/12677/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/79566/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/79566/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 0E813A04BA;\n\tSat, 3 Oct 2020 11:12:24 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7D5711D429;\n\tSat, 3 Oct 2020 11:12:22 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id C397C1D428;\n Sat, 3 Oct 2020 11:12:19 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Oct 2020 02:12:15 -0700", "from unknown (HELO localhost.localdomain) ([10.190.210.212])\n by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Oct 2020 02:12:13 -0700" ], "IronPort-SDR": [ "\n iCiOhJA/VWCzbqc2VmAyNQlPPQWm0Yjdo3UezCXjde/TEV0sEu4QDU0tcA8t4sY+gjfqgzjuLw\n HETtMhtEPhyw==", "\n g0BLXR8qe9Wu4+Zgw03RlyeZiN6tLMg0E17xW3FgBj5slfS5CBjlmQsb9HiBHH7CZZxihX3TTj\n IAD1oPIGgP5w==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9762\"; a=\"142570741\"", "E=Sophos;i=\"5.77,331,1596524400\"; d=\"scan'208\";a=\"142570741\"", "E=Sophos;i=\"5.77,331,1596524400\"; d=\"scan'208\";a=\"351839761\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "From": "\"Jayatheerthan, Jay\" <jay.jayatheerthan@intel.com>", "To": "jerinj@marvell.com,\n\tthomas@monjalon.net,\n\tnikhil.rao@intel.com", "Cc": "dev@dpdk.org,\n\tstable@dpdk.org,\n\tjay.jayatheerthan@intel.com", "Date": "Sat, 3 Oct 2020 14:35:40 +0530", "Message-Id": "<20201003090541.32449-1-jay.jayatheerthan@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dpdk-dev] [PATCH 1/2] app/test: uninit vdevs in event eth Rx\n\tadapter autotest", "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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: \"Jay Jayatheerthan\" <jay.jayatheerthan@intel.com>\n\nadapter_multi_eth_add_del() does vdev init but doesn't uninit them.\nThis causes issues when running event_eth_rx_adapter_autotest multiple\ntimes.\n\nThe fix does vdev uninit before exiting the test.\n\nSigned-off-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com>\n---\n app/test/test_event_eth_rx_adapter.c | 14 +++++++++++++-\n 1 file changed, 13 insertions(+), 1 deletion(-)", "diff": "diff --git a/app/test/test_event_eth_rx_adapter.c b/app/test/test_event_eth_rx_adapter.c\nindex dd3bce71b..71c946164 100644\n--- a/app/test/test_event_eth_rx_adapter.c\n+++ b/app/test/test_event_eth_rx_adapter.c\n@@ -464,7 +464,7 @@ adapter_multi_eth_add_del(void)\n \tint err;\n \tstruct rte_event ev;\n \n-\tuint16_t port_index, drv_id = 0;\n+\tuint16_t port_index, port_index_base, drv_id = 0;\n \tchar driver_name[50];\n \n \tstruct rte_event_eth_rx_adapter_queue_conf queue_config;\n@@ -484,6 +484,7 @@ adapter_multi_eth_add_del(void)\n \n \t/* add the max port for rx_adapter */\n \tport_index = rte_eth_dev_count_total();\n+\tport_index_base = port_index;\n \tfor (; port_index < RTE_MAX_ETHPORTS; port_index += 1) {\n \t\tsnprintf(driver_name, sizeof(driver_name), \"%s%u\", \"net_null\",\n \t\t\t\tdrv_id);\n@@ -513,6 +514,17 @@ adapter_multi_eth_add_del(void)\n \t\tTEST_ASSERT(err == 0, \"Expected 0 got %d\", err);\n \t}\n \n+\t/* delete vdev ports */\n+\tfor (drv_id = 0, port_index = port_index_base;\n+\t port_index < RTE_MAX_ETHPORTS;\n+\t drv_id += 1, port_index += 1) {\n+\t\tsnprintf(driver_name, sizeof(driver_name), \"%s%u\", \"net_null\",\n+\t\t\t\tdrv_id);\n+\t\terr = rte_vdev_uninit(driver_name);\n+\t\tTEST_ASSERT(err == 0, \"Failed driver %s got %d\",\n+\t\t\t driver_name, err);\n+\t}\n+\n \treturn TEST_SUCCESS;\n }\n \n", "prefixes": [ "1/2" ] }{ "id": 79566, "url": "