[24.03,2/8] event/cnxk: add schedule-type capability flags

Message ID 20231120172606.505579-3-bruce.richardson@intel.com (mailing list archive)
State Changes Requested, archived
Delegated to: Jerin Jacob
Headers
Series document scheduling types for eventdev drivers |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson Nov. 20, 2023, 5:26 p.m. UTC
  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@intel.com>
---
 doc/guides/eventdevs/features/cnxk.ini | 3 +++
 drivers/event/cnxk/cnxk_eventdev.c     | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

--
2.39.2
  

Patch

diff --git a/doc/guides/eventdevs/features/cnxk.ini b/doc/guides/eventdevs/features/cnxk.ini
index 5d353e3670..d1516372fa 100644
--- a/doc/guides/eventdevs/features/cnxk.ini
+++ b/doc/guides/eventdevs/features/cnxk.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
 distributed_sched          = Y
 queue_all_types            = Y
diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c
index 0c61f4c20e..e266ee2789 100644
--- a/drivers/event/cnxk/cnxk_eventdev.c
+++ b/drivers/event/cnxk/cnxk_eventdev.c
@@ -22,7 +22,10 @@  cnxk_sso_info_get(struct cnxk_sso_evdev *dev,
 	dev_info->max_event_port_dequeue_depth = 1;
 	dev_info->max_event_port_enqueue_depth = 1;
 	dev_info->max_num_events = dev->max_num_events;
-	dev_info->event_dev_cap = RTE_EVENT_DEV_CAP_QUEUE_QOS |
+	dev_info->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_DISTRIBUTED_SCHED |
 				  RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES |
 				  RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK |