[PATCH 24.03 v2 9/9] event/sw: add schedule-type capability flags
Bruce Richardson
bruce.richardson at intel.com
Tue Nov 21 12:54:37 CET 2023
Document explicitly the scheduling types supported by this driver, both
via info_get() function, and via table in the documentation.
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
doc/guides/eventdevs/features/sw.ini | 3 +++
drivers/event/sw/sw_evdev.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/doc/guides/eventdevs/features/sw.ini b/doc/guides/eventdevs/features/sw.ini
index 8c89d3b8d2..f4d46d79b8 100644
--- a/doc/guides/eventdevs/features/sw.ini
+++ b/doc/guides/eventdevs/features/sw.ini
@@ -4,6 +4,9 @@
; Refer to default.ini for the full list of available PMD features.
;
[Scheduling Features]
+atomic_scheduling = Y
+ordered_scheduling = Y
+parallel_scheduling = Y
queue_qos = Y
event_qos = Y
burst_mode = Y
diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c
index 55e7735cb0..1c01b069fe 100644
--- a/drivers/event/sw/sw_evdev.c
+++ b/drivers/event/sw/sw_evdev.c
@@ -600,6 +600,9 @@ sw_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *info)
.max_event_port_enqueue_depth = MAX_SW_PROD_Q_DEPTH,
.max_num_events = SW_INFLIGHT_EVENTS_TOTAL,
.event_dev_cap = (
+ RTE_EVENT_DEV_CAP_ATOMIC |
+ RTE_EVENT_DEV_CAP_ORDERED |
+ RTE_EVENT_DEV_CAP_PARALLEL |
RTE_EVENT_DEV_CAP_QUEUE_QOS |
RTE_EVENT_DEV_CAP_BURST_MODE |
RTE_EVENT_DEV_CAP_EVENT_QOS |
--
2.39.2
More information about the dev
mailing list