event/sw: implement unlinks in progress function
authorHarry van Haaren <harry.van.haaren@intel.com>
Mon, 24 Sep 2018 08:23:32 +0000 (09:23 +0100)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 1 Oct 2018 14:48:57 +0000 (16:48 +0200)
commitbd5ac24fea88a2825e437c505a6f05b102010dda
tree90291803af4501f908a6f26131ee8ca74e04e5ce
parente279bbe4b2b831972ae53d95c37a17fdff13a700
event/sw: implement unlinks in progress function

This commit adds a counter to each port, which counts the
number of unlinks that have been performed. When the scheduler
thread starts its scheduling routine, it "acks" all unlinks that
have been requested, and the application is gauranteed that no
more events will be scheduled to the port from the unlinked queue.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
drivers/event/sw/sw_evdev.c
drivers/event/sw/sw_evdev.h
drivers/event/sw/sw_evdev_scheduler.c