event/sw: simplify credit scheme
authorGage Eads <gage.eads@intel.com>
Mon, 11 Dec 2017 17:56:32 +0000 (11:56 -0600)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 19 Jan 2018 15:09:56 +0000 (16:09 +0100)
commitdecdc1cdca9213c0c30c999338c2643469fa77b7
tree8ffcb130fd6a03955bf1d5275cbb129152698dcb
parentec36d881f56de787b59ec545372c351ecee6179a
event/sw: simplify credit scheme

This commit modifies the sw PMD credit scheme such that credits are
consumed when enqueueing a NEW event and released when an event is
released -- typically, the beginning and end of a pipeline. Workers that
simply forward events do not interact with the credit pool.

Signed-off-by: Gage Eads <gage.eads@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
drivers/event/sw/sw_evdev_worker.c