Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/129800/?format=api
http://patchwork.dpdk.org/api/patches/129800/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230802031600.23631-6-lihuisong@huawei.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20230802031600.23631-6-lihuisong@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230802031600.23631-6-lihuisong@huawei.com", "date": "2023-08-02T03:16:00", "name": "[RESEND,v6,5/5] app/testpmd: stop forwarding in new or destroy event", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "5c6a8d35e1c982c79fde5ac8b7cab369a8559258", "submitter": { "id": 2085, "url": "http://patchwork.dpdk.org/api/people/2085/?format=api", "name": "lihuisong (C)", "email": "lihuisong@huawei.com" }, "delegate": { "id": 319, "url": "http://patchwork.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230802031600.23631-6-lihuisong@huawei.com/mbox/", "series": [ { "id": 29084, "url": "http://patchwork.dpdk.org/api/series/29084/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29084", "date": "2023-08-02T03:15:58", "name": "app/testpmd: support multiple process attach and detach port", "version": 6, "mbox": "http://patchwork.dpdk.org/series/29084/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/129800/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/129800/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 9D2FD42FB3;\n\tWed, 2 Aug 2023 05:18:51 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BDE8743253;\n\tWed, 2 Aug 2023 05:18:47 +0200 (CEST)", "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 910E243251\n for <dev@dpdk.org>; Wed, 2 Aug 2023 05:18:45 +0200 (CEST)", "from kwepemm600004.china.huawei.com (unknown [172.30.72.56])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RFxtg0G5hztRm7;\n Wed, 2 Aug 2023 11:15:23 +0800 (CST)", "from localhost.localdomain (10.69.192.56) by\n kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.27; Wed, 2 Aug 2023 11:18:44 +0800" ], "From": "Huisong Li <lihuisong@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<thomas@monjalon.net>, <ferruh.yigit@amd.com>,\n <andrew.rybchenko@oktetlabs.ru>, <fengchengwen@huawei.com>,\n <liudongdong3@huawei.com>, <liuyonglong@huawei.com>, <lihuisong@huawei.com>", "Subject": "[PATCH RESEND v6 5/5] app/testpmd: stop forwarding in new or destroy\n event", "Date": "Wed, 2 Aug 2023 11:16:00 +0800", "Message-ID": "<20230802031600.23631-6-lihuisong@huawei.com>", "X-Mailer": "git-send-email 2.33.0", "In-Reply-To": "<20230802031600.23631-1-lihuisong@huawei.com>", "References": "<20220825024425.10534-1-lihuisong@huawei.com>\n <20230802031600.23631-1-lihuisong@huawei.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[10.69.192.56]", "X-ClientProxiedBy": "dggems704-chm.china.huawei.com (10.3.19.181) To\n kwepemm600004.china.huawei.com (7.193.23.242)", "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": "When testpmd receives the new or destroy event, the port related\ninformation will be updated. Testpmd must stop packet forwarding\nbefore updating the information to avoid some serious problems.\n\nSigned-off-by: Huisong Li <lihuisong@huawei.com>\nAcked-by: Chengwen Feng <fengchengwen@huawei.com>\n---\n app/test-pmd/testpmd.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex a5124c3231..15cbede69b 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -3953,6 +3953,8 @@ eth_event_callback(portid_t port_id, enum rte_eth_event_type type, void *param,\n \n \tswitch (type) {\n \tcase RTE_ETH_EVENT_NEW:\n+\t\tif (test_done == 0)\n+\t\t\tstop_packet_forwarding();\n \t\tif (setup_on_probe_event)\n \t\t\tsetup_attached_port(port_id);\n \t\tbreak;\n@@ -3963,6 +3965,8 @@ eth_event_callback(portid_t port_id, enum rte_eth_event_type type, void *param,\n \t\t\t\t\"Could not set up deferred device removal\\n\");\n \t\tbreak;\n \tcase RTE_ETH_EVENT_DESTROY:\n+\t\tif (test_done == 0)\n+\t\t\tstop_packet_forwarding();\n \t\tports[port_id].port_status = RTE_PORT_CLOSED;\n \t\tprintf(\"Port %u is closed\\n\", port_id);\n \t\tif (rte_eal_alarm_set(100000, remove_invalid_ports_callback,\n", "prefixes": [ "RESEND", "v6", "5/5" ] }{ "id": 129800, "url": "