Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/112887/?format=api
http://patches.dpdk.org/api/patches/112887/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220616094122.1909-3-fengchengwen@huawei.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": "<20220616094122.1909-3-fengchengwen@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220616094122.1909-3-fengchengwen@huawei.com", "date": "2022-06-16T09:41:20", "name": "[v8,2/4] app/testpmd: handle error recovery notification event", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "32e7d961009062971245a9313969a0971d646dfd", "submitter": { "id": 2146, "url": "http://patches.dpdk.org/api/people/2146/?format=api", "name": "fengchengwen", "email": "fengchengwen@huawei.com" }, "delegate": { "id": 3961, "url": "http://patches.dpdk.org/api/users/3961/?format=api", "username": "arybchenko", "first_name": "Andrew", "last_name": "Rybchenko", "email": "andrew.rybchenko@oktetlabs.ru" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220616094122.1909-3-fengchengwen@huawei.com/mbox/", "series": [ { "id": 23570, "url": "http://patches.dpdk.org/api/series/23570/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23570", "date": "2022-06-16T09:41:18", "name": "ethdev: support error recovery notification", "version": 8, "mbox": "http://patches.dpdk.org/series/23570/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/112887/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/112887/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 7AB06A00BE;\n\tThu, 16 Jun 2022 11:48:12 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E16C042C2A;\n\tThu, 16 Jun 2022 11:47:57 +0200 (CEST)", "from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255])\n by mails.dpdk.org (Postfix) with ESMTP id 7D0E042C15\n for <dev@dpdk.org>; Thu, 16 Jun 2022 11:47:52 +0200 (CEST)", "from dggpeml500024.china.huawei.com (unknown [172.30.72.55])\n by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4LNy3M266hz1K9vB;\n Thu, 16 Jun 2022 17:45:51 +0800 (CST)", "from localhost.localdomain (10.67.165.24) by\n dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2375.24; Thu, 16 Jun 2022 17:47:50 +0800" ], "From": "Chengwen Feng <fengchengwen@huawei.com>", "To": "<thomas@monjalon.net>, <ferruh.yigit@xilinx.com>", "CC": "<dev@dpdk.org>, <kalesh-anakkur.purayil@broadcom.com>,\n <somnath.kotur@broadcom.com>, <ajit.khaparde@broadcom.com>, <mdr@ashroe.eu>,\n <Andrew.Rybchenko@oktetlabs.ru>", "Subject": "[PATCH v8 2/4] app/testpmd: handle error recovery notification event", "Date": "Thu, 16 Jun 2022 17:41:20 +0800", "Message-ID": "<20220616094122.1909-3-fengchengwen@huawei.com>", "X-Mailer": "git-send-email 2.33.0", "In-Reply-To": "<20220616094122.1909-1-fengchengwen@huawei.com>", "References": "<20220128124830.427-1-kalesh-anakkur.purayil@broadcom.com>\n <20220616094122.1909-1-fengchengwen@huawei.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[10.67.165.24]", "X-ClientProxiedBy": "dggems705-chm.china.huawei.com (10.3.19.182) To\n dggpeml500024.china.huawei.com (7.185.36.10)", "X-CFilter-Loop": "Reflected", "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": "From: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>\n\nThis patch handles error recovery notification event.\n\nSigned-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>\nSigned-off-by: Somnath Kotur <somnath.kotur@broadcom.com>\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nReviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\n---\n app/test-pmd/parameters.c | 10 ++++++++--\n app/test-pmd/testpmd.c | 8 +++++++-\n 2 files changed, 15 insertions(+), 3 deletions(-)", "diff": "diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c\nindex 641c9c767e..779a699371 100644\n--- a/app/test-pmd/parameters.c\n+++ b/app/test-pmd/parameters.c\n@@ -175,9 +175,9 @@ usage(char* progname)\n \tprintf(\" --no-rmv-interrupt: disable device removal interrupt.\\n\");\n \tprintf(\" --bitrate-stats=N: set the logical core N to perform \"\n \t\t\"bit-rate calculation.\\n\");\n-\tprintf(\" --print-event <unknown|intr_lsc|queue_state|intr_reset|vf_mbox|macsec|intr_rmv|flow_aged|all>: \"\n+\tprintf(\" --print-event <unknown|intr_lsc|queue_state|intr_reset|vf_mbox|macsec|intr_rmv|flow_aged|err_recovering|recover_success|recover_failed|all>: \"\n \t \"enable print of designated event or all of them.\\n\");\n-\tprintf(\" --mask-event <unknown|intr_lsc|queue_state|intr_reset|vf_mbox|macsec|intr_rmv|flow_aged|all>: \"\n+\tprintf(\" --mask-event <unknown|intr_lsc|queue_state|intr_reset|vf_mbox|macsec|intr_rmv|flow_aged|err_recovering|recover_success|recover_failed||all>: \"\n \t \"disable print of designated event or all of them.\\n\");\n \tprintf(\" --flow-isolate-all: \"\n \t \"requests flow API isolated mode on all ports at initialization time.\\n\");\n@@ -461,6 +461,12 @@ parse_event_printing_config(const char *optarg, int enable)\n \t\tmask = UINT32_C(1) << RTE_ETH_EVENT_DESTROY;\n \telse if (!strcmp(optarg, \"flow_aged\"))\n \t\tmask = UINT32_C(1) << RTE_ETH_EVENT_FLOW_AGED;\n+\telse if (!strcmp(optarg, \"err_recovering\"))\n+\t\tmask = UINT32_C(1) << RTE_ETH_EVENT_ERR_RECOVERING;\n+\telse if (!strcmp(optarg, \"recover_success\"))\n+\t\tmask = UINT32_C(1) << RTE_ETH_EVENT_RECOVER_SUCCESS;\n+\telse if (!strcmp(optarg, \"recover_failed\"))\n+\t\tmask = UINT32_C(1) << RTE_ETH_EVENT_RECOVER_FAILED;\n \telse if (!strcmp(optarg, \"all\"))\n \t\tmask = ~UINT32_C(0);\n \telse {\ndiff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex 04c39adc21..96f5c8a63b 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -421,6 +421,9 @@ static const char * const eth_event_desc[] = {\n \t[RTE_ETH_EVENT_DESTROY] = \"device released\",\n \t[RTE_ETH_EVENT_FLOW_AGED] = \"flow aged\",\n \t[RTE_ETH_EVENT_RX_AVAIL_THRESH] = \"RxQ available descriptors threshold reached\",\n+\t[RTE_ETH_EVENT_ERR_RECOVERING] = \"error recovering\",\n+\t[RTE_ETH_EVENT_RECOVER_SUCCESS] = \"error recover successful\",\n+\t[RTE_ETH_EVENT_RECOVER_FAILED] = \"error recover failed\",\n \t[RTE_ETH_EVENT_MAX] = NULL,\n };\n \n@@ -435,7 +438,10 @@ uint32_t event_print_mask = (UINT32_C(1) << RTE_ETH_EVENT_UNKNOWN) |\n \t\t\t (UINT32_C(1) << RTE_ETH_EVENT_IPSEC) |\n \t\t\t (UINT32_C(1) << RTE_ETH_EVENT_MACSEC) |\n \t\t\t (UINT32_C(1) << RTE_ETH_EVENT_INTR_RMV) |\n-\t\t\t (UINT32_C(1) << RTE_ETH_EVENT_FLOW_AGED);\n+\t\t\t (UINT32_C(1) << RTE_ETH_EVENT_FLOW_AGED) |\n+\t\t\t (UINT32_C(1) << RTE_ETH_EVENT_ERR_RECOVERING) |\n+\t\t\t (UINT32_C(1) << RTE_ETH_EVENT_RECOVER_SUCCESS) |\n+\t\t\t (UINT32_C(1) << RTE_ETH_EVENT_RECOVER_FAILED);\n /*\n * Decide if all memory are locked for performance.\n */\n", "prefixes": [ "v8", "2/4" ] }{ "id": 112887, "url": "