[dpdk-dev,2/3] eventdev: extend queue attribute get function
Checks
Commit Message
Add schedule type queue attribute so that it can be queried along with
the queue config structure.
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
---
lib/librte_eventdev/rte_eventdev.c | 3 +++
lib/librte_eventdev/rte_eventdev.h | 4 ++++
2 files changed, 7 insertions(+)
@@ -809,6 +809,9 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id,
case RTE_EVENT_QUEUE_ATTR_EVENT_QUEUE_CFG:
*attr_value = conf->event_queue_cfg;
break;
+ case RTE_EVENT_QUEUE_ATTR_SCHEDULE_TYPE:
+ *attr_value = conf->schedule_type;
+ break;
default:
return -EINVAL;
};
@@ -632,6 +632,10 @@ rte_event_queue_setup(uint8_t dev_id, uint8_t queue_id,
* The cfg flags for the queue.
*/
#define RTE_EVENT_QUEUE_ATTR_EVENT_QUEUE_CFG 3
+/**
+ * The schedule type of the queue.
+ */
+#define RTE_EVENT_QUEUE_ATTR_SCHEDULE_TYPE 4
/**
* Get an attribute from a queue.