eventdev: add usage hints to port configure API
authorHarry van Haaren <harry.van.haaren@intel.com>
Thu, 14 Oct 2021 14:51:38 +0000 (14:51 +0000)
committerJerin Jacob <jerinj@marvell.com>
Thu, 21 Oct 2021 08:16:00 +0000 (10:16 +0200)
commit976329581d784f843710cb9cd7720fdd25f1ad47
tree9e3a3083a0a3eb3f7ef33d9b833d8f1c0a0023ae
parent796b07e9c6b78183c93cf6292c218aff4f8521bb
eventdev: add usage hints to port configure API

This commit introduces 3 flags to the port configuration flags.
These flags allow the application to indicate what type of work
is expected to be performed by an eventdev port.

The three new flags are
- RTE_EVENT_PORT_CFG_HINT_PRODUCER (mostly RTE_EVENT_OP_NEW events)
- RTE_EVENT_PORT_CFG_HINT_CONSUMER (mostly RTE_EVENT_OP_RELEASE events)
- RTE_EVENT_PORT_CFG_HINT_WORKER   (mostly RTE_EVENT_OP_FORWARD events)

These flags are only hints, and the PMDs must operate under the
assumption that any port can enqueue an event with any type of op.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
lib/eventdev/rte_eventdev.h