]> git.droids-corp.org - dpdk.git/commitdiff
examples/eventdev: follow proper teardown sequence
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Fri, 1 Mar 2019 07:16:45 +0000 (07:16 +0000)
committerJerin Jacob <jerinj@marvell.com>
Fri, 15 Mar 2019 05:46:50 +0000 (06:46 +0100)
Stop eventdev before closing it.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
examples/eventdev_pipeline/main.c

index 92e08bc0c81b1a7bca42c6a5f8ad2f5b8761114e..2ad7d24e25553a2cb73b17041a23ad3355a6f3ce 100644 (file)
@@ -421,6 +421,7 @@ signal_handler(int signum)
                        rte_eth_dev_close(portid);
                }
 
+               rte_event_dev_stop(0);
                rte_event_dev_close(0);
        }
        if (signum == SIGTSTP)