[dpdk-dev] [PATCH 2/3] examples/eventdev_pipeline: follow proper teardown sequence

Pavan Nikhilesh Bhagavatula pbhagavatula at marvell.com
Fri Mar 1 08:16:45 CET 2019


From: Pavan Nikhilesh <pbhagavatula at marvell.com>

Stop eventdev before closing it.

Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
---
 examples/eventdev_pipeline/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/eventdev_pipeline/main.c b/examples/eventdev_pipeline/main.c
index 92e08bc0c..2ad7d24e2 100644
--- a/examples/eventdev_pipeline/main.c
+++ b/examples/eventdev_pipeline/main.c
@@ -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)
-- 
2.21.0



More information about the dev mailing list