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 92e08bc..2ad7d24 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)