DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Min Hu (Connor)" <humin29@huawei.com>
To: <dev@dpdk.org>
Cc: <ferruh.yigit@intel.com>, <bruce.richardson@intel.com>,
	<david.marchand@redhat.com>, <thomas@monjalon.net>
Subject: [dpdk-dev] [PATCH 11/45] examples/ip_fragmentation: add eal cleanup
Date: Wed, 14 Apr 2021 10:10:36 +0800	[thread overview]
Message-ID: <1618366270-1862-12-git-send-email-humin29@huawei.com> (raw)
In-Reply-To: <1618366270-1862-1-git-send-email-humin29@huawei.com>

From: Chengchang Tang <tangchengchang@huawei.com>

According to the programming guide, the rte_eal_init should be used pairs
with rte_eal_cleanup.

This patch add rte_eal_cleanup to this example to encourage new users of
DPDK to use it.

Fixes: aec9c13c5257 ("eal: add function to release internal resources")
Cc: stable@dpdk.org

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
---
 examples/ip_fragmentation/main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c
index 5a96841..77a6a18 100644
--- a/examples/ip_fragmentation/main.c
+++ b/examples/ip_fragmentation/main.c
@@ -1075,5 +1075,8 @@ main(int argc, char **argv)
 			return -1;
 	}
 
+	/* clean up the EAL */
+	rte_eal_cleanup();
+
 	return 0;
 }
-- 
2.7.4


  parent reply	other threads:[~2021-04-14  2:12 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14  2:10 [dpdk-dev] [PATCH 00/45] add eal clean up to the example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 01/45] examples/bddev_app: add eal cleanup to bbdev app Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 02/45] examples/bond: add eal cleanup to bond example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 03/45] examples/cmdline: add eal cleanup to cmdline app Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 04/45] examples/distributor: add eal cleanup to distributor app Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 05/45] examples/ethtool: add eal cleanup to ethtool Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 06/45] examples/fips_validation: add eal cleanup to FIPS example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 07/45] examples/flow_classify: add eal cleanup to flow classify app Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 08/45] examples/flow_filtering: add eal cleanup to flow filter app Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 09/45] examples/helloworld: add eal cleanup to helloworld example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 10/45] examples/ioat: add eal cleanup to ioat examples Min Hu (Connor)
2021-04-14  2:10 ` Min Hu (Connor) [this message]
2021-04-14  2:10 ` [dpdk-dev] [PATCH 12/45] examples/ip_reassembly: add eal cleanup to ip reassembly app Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 13/45] examples/ipsec-secgw: add eal cleanup to IPsec sample Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 14/45] examples/ipv4_multicast: add eal cleanup to multicast sample Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 15/45] examples/kni: add eal cleanup to kni example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 16/45] examples/l2fwd: add eal cleanup to L2 fwd example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 17/45] examples/l2fwd-cat: add eal cleanup to L2 fwd CAT example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 18/45] examples/l2fwd-crypto: add eal cleanup to L2 fwd crypto app Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 19/45] examples/l2fwd-event: add eal cleanup to L2 fwd event app Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 20/45] examples/l2fwd-jobstats: add eal cleanup Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 21/45] examples/l2fwd-keepalive: add eal cleanup to example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 22/45] examples/l3fwd: add eal cleanup to L3 fwd app Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 23/45] examples/l3fwd-keepalive: add eal cleanup Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 24/45] examples/l3fwd-graph: add eal cleanup to graph based L3 FWD Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 25/45] examples/link_status_interrupt: add eal cleanup Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 26/45] examples/multi_process: " Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 27/45] examples/ntb: add eal cleanup to NTB FWD sample Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 28/45] examples/packet_ordering: add eal cleanup Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 29/45] examples/performance-thread: " Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 30/45] examples/pipeline: add eal cleanup to pipeline example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 31/45] examples/ptpclient: add eal cleanup to ptpclient example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 32/45] examples/qos_meter: add eal cleanup to QOS meter example Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 33/45] examples/qos_sched: add eal cleanup Min Hu (Connor)
2021-04-14  2:10 ` [dpdk-dev] [PATCH 34/45] examples/rxtx_callbacks: " Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 35/45] examples/server_node_efd: " Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 36/45] examples/service_cores: " Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 37/45] examples/skeleton: " Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 38/45] examples/timer: add eal cleanup to timer example Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 39/45] examples/vdpa: add eal cleanup to vDPA example Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 40/45] examples/vhost: add eal cleanup to vhost example Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 41/45] examples/vhost_blk: add eal cleanup Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 42/45] examples/vhost_crypto: " Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 43/45] examples/vmdq: " Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 44/45] examples/vmdq_dcb: " Min Hu (Connor)
2021-04-14  2:11 ` [dpdk-dev] [PATCH 45/45] examples/vm_power_manager: " Min Hu (Connor)
2021-04-14  8:23 ` [dpdk-dev] [PATCH 00/45] add eal clean up to the example Thomas Monjalon
2021-04-15  2:27   ` Min Hu (Connor)
2021-04-15  2:26 ` [dpdk-dev] [PATCH v2] examples: add eal cleanup to examples Min Hu (Connor)
2021-04-21 18:24   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1618366270-1862-12-git-send-email-humin29@huawei.com \
    --to=humin29@huawei.com \
    --cc=bruce.richardson@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).