]> git.droids-corp.org - dpdk.git/commit
eventdev: add weight and affinity to queue attributes
authorShijith Thotton <sthotton@marvell.com>
Mon, 16 May 2022 17:35:48 +0000 (23:05 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 17 May 2022 14:43:44 +0000 (16:43 +0200)
commit44516e6b38d9f00f445a751193f1df84de3b9929
treec459272bd7759981708a868d1c98bfd74fad8b63
parent97b914f4e715565d53d38ac6e04815b9be5e58a9
eventdev: add weight and affinity to queue attributes

Extended eventdev queue QoS attributes to support weight and affinity.
If queues are of the same priority, events from the queue with highest
weight will be scheduled first. Affinity indicates the number of times,
the subsequent schedule calls from an event port will use the same event
queue. Schedule call selects another queue if current queue goes empty
or schedule count reaches affinity count.

To avoid ABI break, weight and affinity attributes are not yet added to
queue config structure and rely on PMD for managing it. New eventdev op
queue_attr_get can be used to get it from the PMD.

Signed-off-by: Shijith Thotton <sthotton@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
doc/guides/rel_notes/release_22_07.rst
lib/eventdev/eventdev_pmd.h
lib/eventdev/rte_eventdev.c
lib/eventdev/rte_eventdev.h