diff mbox series

[2/3] examples/eventdev_pipeline: follow proper teardown sequence

Message ID 20190301071617.6570-2-pbhagavatula@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Jerin Jacob
Headers show
Series [1/3] examples/eventdev_pipeline: configure max events based on dev info | expand

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Pavan Nikhilesh Bhagavatula March 1, 2019, 7:16 a.m. UTC
From: Pavan Nikhilesh <pbhagavatula@marvell.com>

Stop eventdev before closing it.

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

Comments

Van Haaren, Harry March 11, 2019, 9:57 a.m. UTC | #1
> -----Original Message-----
> From: Pavan Nikhilesh Bhagavatula [mailto:pbhagavatula@marvell.com]
> Sent: Friday, March 1, 2019 7:17 AM
> To: Jerin Jacob Kollanukkaran <jerinj@marvell.com>; Van Haaren, Harry
> <harry.van.haaren@intel.com>
> Cc: dev@dpdk.org; Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com>
> Subject: [dpdk-dev] [PATCH 2/3] examples/eventdev_pipeline: follow proper
> teardown sequence
> 
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
> 
> Stop eventdev before closing it.
> 
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>

Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
diff mbox series

Patch

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)