Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/91514/?format=api
https://patches.dpdk.org/api/patches/91514/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1618453563-13490-1-git-send-email-humin29@huawei.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": "<1618453563-13490-1-git-send-email-humin29@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1618453563-13490-1-git-send-email-humin29@huawei.com", "date": "2021-04-15T02:26:03", "name": "[v2] examples: add eal cleanup to examples", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "2c89d9a5b90fc1dc95a368eb592cea7f38ef7d5a", "submitter": { "id": 1944, "url": "https://patches.dpdk.org/api/people/1944/?format=api", "name": "humin (Q)", "email": "humin29@huawei.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/1618453563-13490-1-git-send-email-humin29@huawei.com/mbox/", "series": [ { "id": 16386, "url": "https://patches.dpdk.org/api/series/16386/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=16386", "date": "2021-04-15T02:26:03", "name": "[v2] examples: add eal cleanup to examples", "version": 2, "mbox": "https://patches.dpdk.org/series/16386/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/91514/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/91514/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 638A6A0A02;\n\tThu, 15 Apr 2021 04:25:52 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 38532161F14;\n\tThu, 15 Apr 2021 04:25:52 +0200 (CEST)", "from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190])\n by mails.dpdk.org (Postfix) with ESMTP id 92355161F13\n for <dev@dpdk.org>; Thu, 15 Apr 2021 04:25:49 +0200 (CEST)", "from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59])\n by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FLNS257pkz18JP5;\n Thu, 15 Apr 2021 10:23:30 +0800 (CST)", "from localhost.localdomain (10.69.192.56) by\n DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id\n 14.3.498.0; Thu, 15 Apr 2021 10:25:45 +0800" ], "From": "\"Min Hu (Connor)\" <humin29@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<ferruh.yigit@intel.com>, <bruce.richardson@intel.com>,\n <thomas@monjalon.net>", "Date": "Thu, 15 Apr 2021 10:26:03 +0800", "Message-ID": "<1618453563-13490-1-git-send-email-humin29@huawei.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1618366270-1862-1-git-send-email-humin29@huawei.com>", "References": "<1618366270-1862-1-git-send-email-humin29@huawei.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Originating-IP": "[10.69.192.56]", "X-CFilter-Loop": "Reflected", "Subject": "[dpdk-dev] [PATCH v2] examples: add eal cleanup to examples", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Chengchang Tang <tangchengchang@huawei.com>\n\nAccording to the programming guide, the rte_eal_init should be used pairs\nwith rte_eal_cleanup.\n\nThis patch add rte_eal_cleanup to examples to encourage new users of\nDPDK to use it.\n\nFixes: aec9c13c5257 (\"eal: add function to release internal resources\")\nFixes: 3d0fad56b74a (\"examples/fips_validation: add crypto FIPS application\")\nFixes: c8e6ceecebc1 (\"examples/ioat: add new sample app for ioat driver\")\nFixes: 4ff457986f76 (\"examples/l2fwd-event: add default poll mode routines\")\nFixes: 08bd1a174461 (\"examples/l3fwd-graph: add graph-based l3fwd skeleton\")\nFixes: c5eebf85badc (\"examples/ntb: add example for NTB\")\nFixes: b77f66002812 (\"examples/pipeline: add new example application\")\nFixes: edbed86d1cc3 (\"examples/vdpa: introduce a new sample for vDPA\")\nFixes: c19beb3f38cd (\"examples/vhost_blk: introduce vhost storage sample\")\nFixes: f5188211c721 (\"examples/vhost_crypto: add sample application\")\nCc: stable@dpdk.org\n\nSigned-off-by: Chengchang Tang <tangchengchang@huawei.com>\n---\n examples/bbdev_app/main.c | 3 +++\n examples/bond/main.c | 4 ++++\n examples/cmdline/main.c | 3 +++\n examples/distributor/main.c | 3 +++\n examples/ethtool/ethtool-app/main.c | 3 +++\n examples/fips_validation/main.c | 3 +++\n examples/flow_classify/flow_classify.c | 3 +++\n examples/flow_filtering/main.c | 7 ++++++-\n examples/helloworld/main.c | 4 ++++\n examples/ioat/ioatfwd.c | 3 +++\n examples/ip_fragmentation/main.c | 3 +++\n examples/ip_reassembly/main.c | 3 +++\n examples/ipsec-secgw/ipsec-secgw.c | 3 +++\n examples/ipv4_multicast/main.c | 3 +++\n examples/kni/main.c | 3 +++\n examples/l2fwd-cat/l2fwd-cat.c | 3 +++\n examples/l2fwd-crypto/main.c | 3 +++\n examples/l2fwd-event/main.c | 3 +++\n examples/l2fwd-jobstats/main.c | 3 +++\n examples/l2fwd-keepalive/main.c | 4 ++++\n examples/l2fwd/main.c | 3 +++\n examples/l3fwd-acl/main.c | 3 +++\n examples/l3fwd-graph/main.c | 3 +++\n examples/l3fwd/main.c | 4 ++++\n examples/link_status_interrupt/main.c | 3 +++\n examples/multi_process/client_server_mp/mp_client/client.c | 3 +++\n examples/multi_process/client_server_mp/mp_server/main.c | 4 ++++\n examples/multi_process/simple_mp/main.c | 4 ++++\n examples/multi_process/symmetric_mp/main.c | 3 +++\n examples/ntb/ntb_fwd.c | 3 +++\n examples/packet_ordering/main.c | 4 ++++\n examples/performance-thread/l3fwd-thread/main.c | 3 +++\n examples/performance-thread/pthread_shim/main.c | 4 ++++\n examples/pipeline/main.c | 3 +++\n examples/ptpclient/ptpclient.c | 3 +++\n examples/qos_meter/main.c | 3 +++\n examples/qos_sched/main.c | 3 +++\n examples/rxtx_callbacks/main.c | 4 ++++\n examples/server_node_efd/node/node.c | 3 +++\n examples/server_node_efd/server/main.c | 4 ++++\n examples/service_cores/main.c | 3 +++\n examples/skeleton/basicfwd.c | 3 +++\n examples/timer/main.c | 3 +++\n examples/vdpa/main.c | 3 +++\n examples/vhost/main.c | 4 +++-\n examples/vhost_blk/vhost_blk.c | 3 +++\n examples/vhost_crypto/main.c | 3 +++\n examples/vm_power_manager/guest_cli/main.c | 3 +++\n examples/vm_power_manager/main.c | 3 +++\n examples/vmdq/main.c | 3 +++\n examples/vmdq_dcb/main.c | 3 +++\n 51 files changed, 166 insertions(+), 2 deletions(-)", "diff": "diff --git a/examples/bbdev_app/main.c b/examples/bbdev_app/main.c\nindex 20cfd32..5251db0 100644\n--- a/examples/bbdev_app/main.c\n+++ b/examples/bbdev_app/main.c\n@@ -1195,5 +1195,8 @@ main(int argc, char **argv)\n \t\tret |= rte_eal_wait_lcore(lcore_id);\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn ret;\n }\ndiff --git a/examples/bond/main.c b/examples/bond/main.c\nindex 81a6fa9..f48400e 100644\n--- a/examples/bond/main.c\n+++ b/examples/bond/main.c\n@@ -876,5 +876,9 @@ main(int argc, char *argv[])\n \tprompt(NULL);\n \n \trte_delay_ms(100);\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/cmdline/main.c b/examples/cmdline/main.c\nindex bb79542..94002f0 100644\n--- a/examples/cmdline/main.c\n+++ b/examples/cmdline/main.c\n@@ -36,5 +36,8 @@ int main(int argc, char **argv)\n \tcmdline_interact(cl);\n \tcmdline_stdin_exit(cl);\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/distributor/main.c b/examples/distributor/main.c\nindex caa7c46..1b10296 100644\n--- a/examples/distributor/main.c\n+++ b/examples/distributor/main.c\n@@ -932,5 +932,8 @@ main(int argc, char *argv[])\n \trte_free(pd);\n \trte_free(pr);\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/ethtool/ethtool-app/main.c b/examples/ethtool/ethtool-app/main.c\nindex c6023a1..21ed85c 100644\n--- a/examples/ethtool/ethtool-app/main.c\n+++ b/examples/ethtool/ethtool-app/main.c\n@@ -299,5 +299,8 @@ int main(int argc, char **argv)\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c\nindex b73691d..c175fe6 100644\n--- a/examples/fips_validation/main.c\n+++ b/examples/fips_validation/main.c\n@@ -501,6 +501,9 @@ main(int argc, char *argv[])\n \tfips_test_clear();\n \tcryptodev_fips_validate_app_uninit();\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn ret;\n \n }\ndiff --git a/examples/flow_classify/flow_classify.c b/examples/flow_classify/flow_classify.c\nindex 335d7d2..5c3e111 100644\n--- a/examples/flow_classify/flow_classify.c\n+++ b/examples/flow_classify/flow_classify.c\n@@ -853,5 +853,8 @@ main(int argc, char *argv[])\n \t/* Call lcore_main on the main core only. */\n \tlcore_main(cls_app);\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/flow_filtering/main.c b/examples/flow_filtering/main.c\nindex 93523d6..932f49f 100644\n--- a/examples/flow_filtering/main.c\n+++ b/examples/flow_filtering/main.c\n@@ -259,5 +259,10 @@ main(int argc, char **argv)\n \t\trte_exit(EXIT_FAILURE, \"error in creating flow\");\n \t}\n \n-\treturn main_loop();\n+\tret = main_loop();\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n+\treturn ret;\n }\ndiff --git a/examples/helloworld/main.c b/examples/helloworld/main.c\nindex 8a4cee6..ac72145 100644\n--- a/examples/helloworld/main.c\n+++ b/examples/helloworld/main.c\n@@ -43,5 +43,9 @@ main(int argc, char **argv)\n \tlcore_hello(NULL);\n \n \trte_eal_mp_wait_lcore();\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/ioat/ioatfwd.c b/examples/ioat/ioatfwd.c\nindex 6502e45..845301a 100644\n--- a/examples/ioat/ioatfwd.c\n+++ b/examples/ioat/ioatfwd.c\n@@ -1011,6 +1011,9 @@ main(int argc, char **argv)\n \t\t\trte_ring_free(cfg.ports[i].rx_to_tx_ring);\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \tprintf(\"Bye...\\n\");\n \treturn 0;\n }\ndiff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c\nindex 5a96841..77a6a18 100644\n--- a/examples/ip_fragmentation/main.c\n+++ b/examples/ip_fragmentation/main.c\n@@ -1075,5 +1075,8 @@ main(int argc, char **argv)\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c\nindex 954a115..ce8882a 100644\n--- a/examples/ip_reassembly/main.c\n+++ b/examples/ip_reassembly/main.c\n@@ -1201,5 +1201,8 @@ main(int argc, char **argv)\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c\nindex 20d69ba..1efcb5e 100644\n--- a/examples/ipsec-secgw/ipsec-secgw.c\n+++ b/examples/ipsec-secgw/ipsec-secgw.c\n@@ -3037,6 +3037,9 @@ main(int32_t argc, char **argv)\n \t\trte_eth_dev_close(portid);\n \t\tprintf(\" Done\\n\");\n \t}\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n \tprintf(\"Bye...\\n\");\n \n \treturn 0;\ndiff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c\nindex e18726a..fd6207a 100644\n--- a/examples/ipv4_multicast/main.c\n+++ b/examples/ipv4_multicast/main.c\n@@ -805,5 +805,8 @@ main(int argc, char **argv)\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/kni/main.c b/examples/kni/main.c\nindex fe93b86..beabb3c 100644\n--- a/examples/kni/main.c\n+++ b/examples/kni/main.c\n@@ -1140,5 +1140,8 @@ main(int argc, char** argv)\n \t\t\tkni_port_params_array[i] = NULL;\n \t\t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/l2fwd-cat/l2fwd-cat.c b/examples/l2fwd-cat/l2fwd-cat.c\nindex 2e632c5..02288a3 100644\n--- a/examples/l2fwd-cat/l2fwd-cat.c\n+++ b/examples/l2fwd-cat/l2fwd-cat.c\n@@ -201,5 +201,8 @@ main(int argc, char *argv[])\n \t/* Call lcore_main on the main core only. */\n \tlcore_main();\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c\nindex a96cb94..ba60c1a 100644\n--- a/examples/l2fwd-crypto/main.c\n+++ b/examples/l2fwd-crypto/main.c\n@@ -2805,5 +2805,8 @@ main(int argc, char **argv)\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/l2fwd-event/main.c b/examples/l2fwd-event/main.c\nindex 444ee4e..0acfee4 100644\n--- a/examples/l2fwd-event/main.c\n+++ b/examples/l2fwd-event/main.c\n@@ -716,6 +716,9 @@ main(int argc, char **argv)\n \t\t\tprintf(\" Done\\n\");\n \t\t}\n \t}\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n \tprintf(\"Bye...\\n\");\n \n \treturn 0;\ndiff --git a/examples/l2fwd-jobstats/main.c b/examples/l2fwd-jobstats/main.c\nindex 1151769..58a7226 100644\n--- a/examples/l2fwd-jobstats/main.c\n+++ b/examples/l2fwd-jobstats/main.c\n@@ -1022,5 +1022,8 @@ main(int argc, char **argv)\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/l2fwd-keepalive/main.c b/examples/l2fwd-keepalive/main.c\nindex e4c2b27..be66162 100644\n--- a/examples/l2fwd-keepalive/main.c\n+++ b/examples/l2fwd-keepalive/main.c\n@@ -817,5 +817,9 @@ main(int argc, char **argv)\n \n \tif (ka_shm != NULL)\n \t\trte_keepalive_shm_cleanup(ka_shm);\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c\nindex 3377b08..ffb67bb 100644\n--- a/examples/l2fwd/main.c\n+++ b/examples/l2fwd/main.c\n@@ -903,6 +903,9 @@ main(int argc, char **argv)\n \t\trte_eth_dev_close(portid);\n \t\tprintf(\" Done\\n\");\n \t}\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n \tprintf(\"Bye...\\n\");\n \n \treturn ret;\ndiff --git a/examples/l3fwd-acl/main.c b/examples/l3fwd-acl/main.c\nindex 4a17274..a1f457b 100644\n--- a/examples/l3fwd-acl/main.c\n+++ b/examples/l3fwd-acl/main.c\n@@ -2258,5 +2258,8 @@ main(int argc, char **argv)\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c\nindex 127c5e8..75c2e0e 100644\n--- a/examples/l3fwd-graph/main.c\n+++ b/examples/l3fwd-graph/main.c\n@@ -1123,6 +1123,9 @@ main(int argc, char **argv)\n \t\trte_eth_dev_close(portid);\n \t\tprintf(\" Done\\n\");\n \t}\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n \tprintf(\"Bye...\\n\");\n \n \treturn ret;\ndiff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c\nindex bb49e5f..ee156d1 100644\n--- a/examples/l3fwd/main.c\n+++ b/examples/l3fwd/main.c\n@@ -1315,6 +1315,10 @@ main(int argc, char **argv)\n \t\t\tprintf(\" Done\\n\");\n \t\t}\n \t}\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \tprintf(\"Bye...\\n\");\n \n \treturn ret;\ndiff --git a/examples/link_status_interrupt/main.c b/examples/link_status_interrupt/main.c\nindex f1653b4..6cffd5a 100644\n--- a/examples/link_status_interrupt/main.c\n+++ b/examples/link_status_interrupt/main.c\n@@ -731,5 +731,8 @@ main(int argc, char **argv)\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/multi_process/client_server_mp/mp_client/client.c b/examples/multi_process/client_server_mp/mp_client/client.c\nindex 361d90b..6d4c246 100644\n--- a/examples/multi_process/client_server_mp/mp_client/client.c\n+++ b/examples/multi_process/client_server_mp/mp_client/client.c\n@@ -268,4 +268,7 @@ main(int argc, char *argv[])\n \n \t\tneed_flush = 1;\n \t}\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n }\ndiff --git a/examples/multi_process/client_server_mp/mp_server/main.c b/examples/multi_process/client_server_mp/mp_server/main.c\nindex b18e12d..9bcee46 100644\n--- a/examples/multi_process/client_server_mp/mp_server/main.c\n+++ b/examples/multi_process/client_server_mp/mp_server/main.c\n@@ -304,5 +304,9 @@ main(int argc, char *argv[])\n \trte_eal_mp_remote_launch(sleep_lcore, NULL, SKIP_MAIN);\n \n \tdo_packet_forwarding();\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/multi_process/simple_mp/main.c b/examples/multi_process/simple_mp/main.c\nindex 109b8bb..a05404f 100644\n--- a/examples/multi_process/simple_mp/main.c\n+++ b/examples/multi_process/simple_mp/main.c\n@@ -121,5 +121,9 @@ main(int argc, char **argv)\n \tcmdline_stdin_exit(cl);\n \n \trte_eal_mp_wait_lcore();\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/multi_process/symmetric_mp/main.c b/examples/multi_process/symmetric_mp/main.c\nindex ae7f5e0..79e5c61 100644\n--- a/examples/multi_process/symmetric_mp/main.c\n+++ b/examples/multi_process/symmetric_mp/main.c\n@@ -472,5 +472,8 @@ main(int argc, char **argv)\n \n \trte_eal_mp_remote_launch(lcore_main, NULL, CALL_MAIN);\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c\nindex 54b7f08..e9a3887 100644\n--- a/examples/ntb/ntb_fwd.c\n+++ b/examples/ntb/ntb_fwd.c\n@@ -1498,5 +1498,8 @@ main(int argc, char **argv)\n \t\tstart_pkt_fwd();\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/packet_ordering/main.c b/examples/packet_ordering/main.c\nindex bcbda05..d2fe9f6 100644\n--- a/examples/packet_ordering/main.c\n+++ b/examples/packet_ordering/main.c\n@@ -783,5 +783,9 @@ main(int argc, char **argv)\n \t}\n \n \tprint_stats();\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/performance-thread/l3fwd-thread/main.c b/examples/performance-thread/l3fwd-thread/main.c\nindex b16c19b..2f593ab 100644\n--- a/examples/performance-thread/l3fwd-thread/main.c\n+++ b/examples/performance-thread/l3fwd-thread/main.c\n@@ -3781,5 +3781,8 @@ main(int argc, char **argv)\n \t\t}\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/performance-thread/pthread_shim/main.c b/examples/performance-thread/pthread_shim/main.c\nindex 23e3b5e..241267f 100644\n--- a/examples/performance-thread/pthread_shim/main.c\n+++ b/examples/performance-thread/pthread_shim/main.c\n@@ -258,5 +258,9 @@ int main(int argc, char **argv)\n \tRTE_LCORE_FOREACH_WORKER(lcore_id) {\n \t\trte_eal_wait_lcore(lcore_id);\n \t}\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/pipeline/main.c b/examples/pipeline/main.c\nindex fb57ef3..8ea19f9 100644\n--- a/examples/pipeline/main.c\n+++ b/examples/pipeline/main.c\n@@ -190,4 +190,7 @@ main(int argc, char **argv)\n \n \t\tconn_poll_for_msg(conn);\n \t}\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n }\ndiff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c\nindex 33b297e..af44052 100644\n--- a/examples/ptpclient/ptpclient.c\n+++ b/examples/ptpclient/ptpclient.c\n@@ -788,5 +788,8 @@ main(int argc, char *argv[])\n \t/* Call lcore_main on the main core only. */\n \tlcore_main();\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/qos_meter/main.c b/examples/qos_meter/main.c\nindex f2d9c28..6e724f3 100644\n--- a/examples/qos_meter/main.c\n+++ b/examples/qos_meter/main.c\n@@ -460,5 +460,8 @@ main(int argc, char **argv)\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/qos_sched/main.c b/examples/qos_sched/main.c\nindex a6071b9..dc6a17a 100644\n--- a/examples/qos_sched/main.c\n+++ b/examples/qos_sched/main.c\n@@ -218,5 +218,8 @@ main(int argc, char **argv)\n \t\t}\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/rxtx_callbacks/main.c b/examples/rxtx_callbacks/main.c\nindex 35c6c39..b57b2fc 100644\n--- a/examples/rxtx_callbacks/main.c\n+++ b/examples/rxtx_callbacks/main.c\n@@ -338,5 +338,9 @@ main(int argc, char *argv[])\n \n \t/* call lcore_main on main core only */\n \tlcore_main();\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/server_node_efd/node/node.c b/examples/server_node_efd/node/node.c\nindex 67a5580..e68606e 100644\n--- a/examples/server_node_efd/node/node.c\n+++ b/examples/server_node_efd/node/node.c\n@@ -383,4 +383,7 @@ main(int argc, char *argv[])\n \n \t\tneed_flush = 1;\n \t}\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n }\ndiff --git a/examples/server_node_efd/server/main.c b/examples/server_node_efd/server/main.c\nindex 4728960..39b7b63 100644\n--- a/examples/server_node_efd/server/main.c\n+++ b/examples/server_node_efd/server/main.c\n@@ -334,5 +334,9 @@ main(int argc, char *argv[])\n \trte_eal_mp_remote_launch(sleep_lcore, NULL, SKIP_MAIN);\n \n \tdo_packet_forwarding();\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/service_cores/main.c b/examples/service_cores/main.c\nindex c7c7928..c5753cc 100644\n--- a/examples/service_cores/main.c\n+++ b/examples/service_cores/main.c\n@@ -220,5 +220,8 @@ main(int argc, char **argv)\n \t\t\ti = 0;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/skeleton/basicfwd.c b/examples/skeleton/basicfwd.c\nindex 4b2b6ab..a31b288 100644\n--- a/examples/skeleton/basicfwd.c\n+++ b/examples/skeleton/basicfwd.c\n@@ -205,5 +205,8 @@ main(int argc, char *argv[])\n \t/* Call lcore_main on the main core only. */\n \tlcore_main();\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/timer/main.c b/examples/timer/main.c\nindex 5a57e48..d67301e 100644\n--- a/examples/timer/main.c\n+++ b/examples/timer/main.c\n@@ -117,5 +117,8 @@ main(int argc, char **argv)\n \t/* call it on main lcore too */\n \t(void) lcore_mainloop(NULL);\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/vdpa/main.c b/examples/vdpa/main.c\nindex 97e967b..097a267 100644\n--- a/examples/vdpa/main.c\n+++ b/examples/vdpa/main.c\n@@ -576,5 +576,8 @@ main(int argc, char *argv[])\n \t\tvdpa_sample_quit();\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/vhost/main.c b/examples/vhost/main.c\nindex 2ca7d98..ff48ba2 100644\n--- a/examples/vhost/main.c\n+++ b/examples/vhost/main.c\n@@ -1781,6 +1781,8 @@ main(int argc, char *argv[])\n \tRTE_LCORE_FOREACH_WORKER(lcore_id)\n \t\trte_eal_wait_lcore(lcore_id);\n \n-\treturn 0;\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n \n+\treturn 0;\n }\ndiff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/vhost_blk.c\nindex 5c64071..5209da3 100644\n--- a/examples/vhost_blk/vhost_blk.c\n+++ b/examples/vhost_blk/vhost_blk.c\n@@ -906,5 +906,8 @@ int main(int argc, char *argv[])\n \twhile (1)\n \t\tsleep(1);\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c\nindex 7ed38fe..dea7dcb 100644\n--- a/examples/vhost_crypto/main.c\n+++ b/examples/vhost_crypto/main.c\n@@ -469,6 +469,9 @@ free_resource(void)\n \t}\n \n \tmemset(&options, 0, sizeof(options));\n+\n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n }\n \n int\ndiff --git a/examples/vm_power_manager/guest_cli/main.c b/examples/vm_power_manager/guest_cli/main.c\nindex 4e17f7f..b8fa65e 100644\n--- a/examples/vm_power_manager/guest_cli/main.c\n+++ b/examples/vm_power_manager/guest_cli/main.c\n@@ -200,5 +200,8 @@ main(int argc, char **argv)\n \t}\n \trun_cli(NULL);\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c\nindex 799d7b9..7d5bf68 100644\n--- a/examples/vm_power_manager/main.c\n+++ b/examples/vm_power_manager/main.c\n@@ -468,5 +468,8 @@ main(int argc, char **argv)\n \n \tfree(ci->cd);\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/vmdq/main.c b/examples/vmdq/main.c\nindex 3cb890f..a19f7db 100644\n--- a/examples/vmdq/main.c\n+++ b/examples/vmdq/main.c\n@@ -659,5 +659,8 @@ main(int argc, char *argv[])\n \t\t\treturn -1;\n \t}\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\ndiff --git a/examples/vmdq_dcb/main.c b/examples/vmdq_dcb/main.c\nindex 1a74364..ba99280 100644\n--- a/examples/vmdq_dcb/main.c\n+++ b/examples/vmdq_dcb/main.c\n@@ -707,5 +707,8 @@ main(int argc, char *argv[])\n \t/* call on main too */\n \t(void) lcore_main((void*)i);\n \n+\t/* clean up the EAL */\n+\trte_eal_cleanup();\n+\n \treturn 0;\n }\n", "prefixes": [ "v2" ] }{ "id": 91514, "url": "