numam-dpdk/examples
Harry van Haaren 2c434431f4 examples/eventdev: fix crash on exit
This commit fixes a segfault on exit by using Ctrl^C if the master lcore
was also being used as a worker core. The root cause of the issue was
that the interrupt handler was cleaning up resources such as the ethdev
and eventdev ports, and once the interrupt handler would return, that
thread would continue working as an eventdev worker, and dereference the
memory which just had free() called on it.

Fixed by moving the cleanup code from the interrupt handler to the
cleanup stage of main(), which the master thread will execute once
it has returned from its worker() functionality.

Fixes: 085edac2ca ("examples/eventdev_pipeline: support Tx adapter")
Cc: stable@dpdk.org

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Tested-by: Jun W Zhou <junx.w.zhou@intel.com>
2020-05-11 19:20:54 +02:00
..
bbdev_app examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
bond replace unused attributes 2020-04-16 18:30:58 +02:00
bpf examples/bpf: remove from list of examples to build 2019-10-27 17:23:05 +01:00
cmdline ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
distributor ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ethtool ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
eventdev_pipeline examples/eventdev: fix crash on exit 2020-05-11 19:20:54 +02:00
fips_validation replace unused attributes 2020-04-16 18:30:58 +02:00
flow_classify replace no-return attributes 2020-04-16 18:30:58 +02:00
flow_filtering ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
helloworld ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ioat ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ip_fragmentation ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ip_pipeline replace packed attributes 2020-04-16 18:16:46 +02:00
ip_reassembly ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ipsec-secgw examples/ipsec-gw: fix gcc 10 maybe-uninitialized warning 2020-05-06 11:18:36 +02:00
ipv4_multicast ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
kni examples/kni: add SIGTERM signal handling 2020-02-13 18:27:44 +01:00
l2fwd replace unused attributes 2020-04-16 18:30:58 +02:00
l2fwd-cat ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l2fwd-crypto examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-event ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l2fwd-jobstats ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l2fwd-keepalive examples/l2fwd-keepalive: fix mbuf pool size 2020-05-11 17:18:58 +02:00
l3fwd examples/l3fwd: fix error checking 2020-05-01 19:37:17 +02:00
l3fwd-acl ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
l3fwd-graph examples/l3fwd-graph: add graph config and main loop 2020-05-05 23:46:11 +02:00
l3fwd-power eal: add telemetry as dependency 2020-05-11 00:37:16 +02:00
link_status_interrupt ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
multi_process ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ntb mempool: return 0 if area is too small on populate 2020-05-05 00:27:05 +02:00
packet_ordering ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
performance-thread ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
ptpclient ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
qos_meter ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
qos_sched ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
rxtx_callbacks replace no-return attributes 2020-04-16 18:30:58 +02:00
server_node_efd ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
service_cores ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
skeleton ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
tep_termination examples/tep_term: remove redundant info get 2020-02-21 11:14:35 +01:00
timer ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
vdpa vhost: prefix vDPA enum value for PCI address type 2020-04-21 13:57:07 +02:00
vhost examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vhost_blk examples/vhost_blk: refactor to increase readability 2020-05-05 15:54:26 +02:00
vhost_crypto examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vm_power_manager ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
vmdq examples/vmdq: fix RSS configuration 2020-04-21 13:57:06 +02:00
vmdq_dcb ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
Makefile examples/l3fwd-graph: add graph-based l3fwd skeleton 2020-05-05 23:42:26 +02:00
meson.build examples/l3fwd-graph: add graph-based l3fwd skeleton 2020-05-05 23:42:26 +02:00