]> git.droids-corp.org - dpdk.git/commit
examples/l3fwd: clean up worker state before exit
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Fri, 13 May 2022 16:07:17 +0000 (21:37 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 17 May 2022 14:43:19 +0000 (16:43 +0200)
commit55b22fb3e9822efa7315a1eb8a3eccbb54ea455b
treefdcb9007f0322911f956d2903700c2424894f3c1
parentd80176a0716c36770bf3c318d37f06ca3b7de960
examples/l3fwd: 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/l3fwd/l3fwd_em.c
examples/l3fwd/l3fwd_event.c
examples/l3fwd/l3fwd_event.h
examples/l3fwd/l3fwd_fib.c
examples/l3fwd/l3fwd_lpm.c