examples: add eal cleanup to examples
authorChengchang Tang <tangchengchang@huawei.com>
Thu, 15 Apr 2021 02:26:03 +0000 (10:26 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 21 Apr 2021 18:21:25 +0000 (20:21 +0200)
commit10aa375704c148d9e90b5e984066d719f7465357
tree72b4012b26203a0251d749f9f77b52f36be1a7ca
parent027c931be8ab98db070edf48501f5c6226c92008
examples: add eal cleanup to examples

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

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

Fixes: aec9c13c5257 ("eal: add function to release internal resources")
Fixes: 3d0fad56b74a ("examples/fips_validation: add crypto FIPS application")
Fixes: c8e6ceecebc1 ("examples/ioat: add new sample app for ioat driver")
Fixes: 4ff457986f76 ("examples/l2fwd-event: add default poll mode routines")
Fixes: 08bd1a174461 ("examples/l3fwd-graph: add graph-based l3fwd skeleton")
Fixes: c5eebf85badc ("examples/ntb: add example for NTB")
Fixes: b77f66002812 ("examples/pipeline: add new example application")
Fixes: edbed86d1cc3 ("examples/vdpa: introduce a new sample for vDPA")
Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample")
Fixes: f5188211c721 ("examples/vhost_crypto: add sample application")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
51 files changed:
examples/bbdev_app/main.c
examples/bond/main.c
examples/cmdline/main.c
examples/distributor/main.c
examples/ethtool/ethtool-app/main.c
examples/fips_validation/main.c
examples/flow_classify/flow_classify.c
examples/flow_filtering/main.c
examples/helloworld/main.c
examples/ioat/ioatfwd.c
examples/ip_fragmentation/main.c
examples/ip_reassembly/main.c
examples/ipsec-secgw/ipsec-secgw.c
examples/ipv4_multicast/main.c
examples/kni/main.c
examples/l2fwd-cat/l2fwd-cat.c
examples/l2fwd-crypto/main.c
examples/l2fwd-event/main.c
examples/l2fwd-jobstats/main.c
examples/l2fwd-keepalive/main.c
examples/l2fwd/main.c
examples/l3fwd-acl/main.c
examples/l3fwd-graph/main.c
examples/l3fwd/main.c
examples/link_status_interrupt/main.c
examples/multi_process/client_server_mp/mp_client/client.c
examples/multi_process/client_server_mp/mp_server/main.c
examples/multi_process/simple_mp/main.c
examples/multi_process/symmetric_mp/main.c
examples/ntb/ntb_fwd.c
examples/packet_ordering/main.c
examples/performance-thread/l3fwd-thread/main.c
examples/performance-thread/pthread_shim/main.c
examples/pipeline/main.c
examples/ptpclient/ptpclient.c
examples/qos_meter/main.c
examples/qos_sched/main.c
examples/rxtx_callbacks/main.c
examples/server_node_efd/node/node.c
examples/server_node_efd/server/main.c
examples/service_cores/main.c
examples/skeleton/basicfwd.c
examples/timer/main.c
examples/vdpa/main.c
examples/vhost/main.c
examples/vhost_blk/vhost_blk.c
examples/vhost_crypto/main.c
examples/vm_power_manager/guest_cli/main.c
examples/vm_power_manager/main.c
examples/vmdq/main.c
examples/vmdq_dcb/main.c