This series adds support for setting event queue attributes at runtime
and adds two new event queue attributes weight and affinity. Eventdev
capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR is added to expose the
capability to set attributes at runtime and rte_event_queue_attr_set()
API is used to set the attributes.
Attributes weight and affinity are not yet added to rte_event_queue_conf
structure to avoid ABI break and will be added in 22.11. Till then, PMDs
using the new attributes are expected to manage them.
Test application changes and example implementation are added as last
three patches.
v2:
* Modified attr_value type from u32 to u64 for set().
* Removed RTE_EVENT_QUEUE_ATTR_MAX macro.
* Fixed return value in implementation.
Pavan Nikhilesh (1):
common/cnxk: use lock when accessing mbox of SSO
Shijith Thotton (5):
eventdev: support to set queue attributes at runtime
eventdev: add weight and affinity to queue attributes
doc: announce change in event queue conf structure
test/event: test cases to test runtime queue attribute
event/cnxk: support to set runtime queue attributes
app/test/test_eventdev.c | 149 ++++++++++++++++++
doc/guides/eventdevs/features/cnxk.ini | 1 +
doc/guides/eventdevs/features/default.ini | 1 +
doc/guides/rel_notes/deprecation.rst | 3 +
drivers/common/cnxk/roc_sso.c | 174 ++++++++++++++++------
drivers/common/cnxk/roc_sso_priv.h | 1 +
drivers/common/cnxk/roc_tim.c | 134 +++++++++++------
drivers/event/cnxk/cn10k_eventdev.c | 4 +
drivers/event/cnxk/cn9k_eventdev.c | 4 +
drivers/event/cnxk/cnxk_eventdev.c | 91 ++++++++++-
drivers/event/cnxk/cnxk_eventdev.h | 16 ++
lib/eventdev/eventdev_pmd.h | 44 ++++++
lib/eventdev/rte_eventdev.c | 38 +++++
lib/eventdev/rte_eventdev.h | 71 ++++++++-
lib/eventdev/version.map | 3 +
15 files changed, 631 insertions(+), 103 deletions(-)
--
2.25.1