examples/l2fwd-event: clean up worker state before exit
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Fri, 13 May 2022 16:07:18 +0000 (21:37 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 17 May 2022 14:43:22 +0000 (16:43 +0200)
commit622ebb6b4a7d447da846c32055330a4d648fe9a3
tree6d1a207a034c047ff388b1d13381c3b183e382c9
parent55b22fb3e9822efa7315a1eb8a3eccbb54ea455b
examples/l2fwd-event: clean up worker state before exit

Event ports are configured to implicitly release the scheduler contexts
currently held in the next call to rte_event_dequeue_burst().
A worker core might still hold a scheduling context during exit, as the
next call to rte_event_dequeue_burst() is never made.
This might lead to deadlock based on the worker exit timing and when
there are very less number of flows.

Add clean up function to release any scheduling contexts held by the
worker by using RTE_EVENT_OP_RELEASE.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
examples/l2fwd-event/l2fwd_common.c
examples/l2fwd-event/l2fwd_common.h
examples/l2fwd-event/l2fwd_event.c