Lines Matching refs:info
83 struct rte_event_dev_info info; in test_eventdev_info_get() local
86 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_info_get()
88 TEST_ASSERT(info.max_event_ports > 0, in test_eventdev_info_get()
89 "Not enough event ports %d", info.max_event_ports); in test_eventdev_info_get()
90 TEST_ASSERT(info.max_event_queues > 0, in test_eventdev_info_get()
91 "Not enough event queues %d", info.max_event_queues); in test_eventdev_info_get()
97 struct rte_event_dev_info *info) in devconf_set_default_sane_values() argument
100 dev_conf->dequeue_timeout_ns = info->min_dequeue_timeout_ns; in devconf_set_default_sane_values()
101 dev_conf->nb_event_ports = info->max_event_ports; in devconf_set_default_sane_values()
102 dev_conf->nb_event_queues = info->max_event_queues; in devconf_set_default_sane_values()
103 dev_conf->nb_event_queue_flows = info->max_event_queue_flows; in devconf_set_default_sane_values()
105 info->max_event_port_dequeue_depth; in devconf_set_default_sane_values()
107 info->max_event_port_enqueue_depth; in devconf_set_default_sane_values()
109 info->max_event_port_enqueue_depth; in devconf_set_default_sane_values()
111 info->max_num_events; in devconf_set_default_sane_values()
116 struct rte_event_dev_info *info, in test_ethdev_config_run() argument
118 struct rte_event_dev_info *info)) in test_ethdev_config_run()
120 devconf_set_default_sane_values(dev_conf, info); in test_ethdev_config_run()
121 fn(dev_conf, info); in test_ethdev_config_run()
127 struct rte_event_dev_info *info) in max_dequeue_limit() argument
129 dev_conf->dequeue_timeout_ns = info->max_dequeue_timeout_ns + 1; in max_dequeue_limit()
134 struct rte_event_dev_info *info) in max_events_limit() argument
136 dev_conf->nb_events_limit = info->max_num_events + 1; in max_events_limit()
141 struct rte_event_dev_info *info) in max_event_ports() argument
143 dev_conf->nb_event_ports = info->max_event_ports + 1; in max_event_ports()
148 struct rte_event_dev_info *info) in max_event_queues() argument
150 dev_conf->nb_event_queues = info->max_event_queues + 1; in max_event_queues()
155 struct rte_event_dev_info *info) in max_event_queue_flows() argument
157 dev_conf->nb_event_queue_flows = info->max_event_queue_flows + 1; in max_event_queue_flows()
162 struct rte_event_dev_info *info) in max_event_port_dequeue_depth() argument
165 info->max_event_port_dequeue_depth + 1; in max_event_port_dequeue_depth()
170 struct rte_event_dev_info *info) in max_event_port_enqueue_depth() argument
173 info->max_event_port_enqueue_depth + 1; in max_event_port_enqueue_depth()
182 struct rte_event_dev_info info; in test_eventdev_configure() local
186 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_configure()
191 test_ethdev_config_run(&dev_conf, &info, max_dequeue_limit), in test_eventdev_configure()
194 test_ethdev_config_run(&dev_conf, &info, max_events_limit), in test_eventdev_configure()
197 test_ethdev_config_run(&dev_conf, &info, max_event_ports), in test_eventdev_configure()
200 test_ethdev_config_run(&dev_conf, &info, max_event_queues), in test_eventdev_configure()
203 test_ethdev_config_run(&dev_conf, &info, max_event_queue_flows), in test_eventdev_configure()
206 if (info.event_dev_cap & RTE_EVENT_DEV_CAP_BURST_MODE) { in test_eventdev_configure()
208 test_ethdev_config_run(&dev_conf, &info, in test_eventdev_configure()
212 test_ethdev_config_run(&dev_conf, &info, in test_eventdev_configure()
218 devconf_set_default_sane_values(&dev_conf, &info); in test_eventdev_configure()
223 devconf_set_default_sane_values(&dev_conf, &info); in test_eventdev_configure()
224 dev_conf.nb_event_ports = RTE_MAX(info.max_event_ports/2, 1); in test_eventdev_configure()
225 dev_conf.nb_event_queues = RTE_MAX(info.max_event_queues/2, 1); in test_eventdev_configure()
230 devconf_set_default_sane_values(&dev_conf, &info); in test_eventdev_configure()
243 struct rte_event_dev_info info; in eventdev_configure_setup() local
245 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in eventdev_configure_setup()
247 devconf_set_default_sane_values(&dev_conf, &info); in eventdev_configure_setup()
281 struct rte_event_dev_info info; in test_eventdev_queue_setup() local
284 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_queue_setup()
291 qconf.nb_atomic_flows = info.max_event_queue_flows + 1; in test_eventdev_queue_setup()
295 qconf.nb_atomic_flows = info.max_event_queue_flows; in test_eventdev_queue_setup()
297 qconf.nb_atomic_order_sequences = info.max_event_queue_flows + 1; in test_eventdev_queue_setup()
301 ret = rte_event_queue_setup(TEST_DEV_ID, info.max_event_queues, in test_eventdev_queue_setup()
328 struct rte_event_dev_info info; in test_eventdev_queue_count() local
330 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_queue_count()
337 TEST_ASSERT_EQUAL(queue_count, info.max_event_queues, in test_eventdev_queue_count()
347 struct rte_event_dev_info info; in test_eventdev_queue_attr_priority() local
351 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_queue_attr_priority()
375 if (info.event_dev_cap & RTE_EVENT_DEV_CAP_QUEUE_QOS) in test_eventdev_queue_attr_priority()
394 struct rte_event_dev_info info; in test_eventdev_queue_attr_priority_runtime() local
403 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_queue_attr_priority_runtime()
406 if (!(info.event_dev_cap & RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR)) in test_eventdev_queue_attr_priority_runtime()
485 struct rte_event_dev_info info; in test_eventdev_queue_attr_weight_runtime() local
489 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_queue_attr_weight_runtime()
492 if (!(info.event_dev_cap & RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR)) in test_eventdev_queue_attr_weight_runtime()
536 struct rte_event_dev_info info; in test_eventdev_queue_attr_affinity_runtime() local
540 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_queue_attr_affinity_runtime()
543 if (!(info.event_dev_cap & RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR)) in test_eventdev_queue_attr_affinity_runtime()
587 struct rte_event_dev_info info; in test_eventdev_queue_attr_nb_atomic_flows() local
591 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_queue_attr_nb_atomic_flows()
630 struct rte_event_dev_info info; in test_eventdev_queue_attr_nb_atomic_order_sequences() local
634 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_queue_attr_nb_atomic_order_sequences()
675 struct rte_event_dev_info info; in test_eventdev_queue_attr_event_queue_cfg() local
679 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_queue_attr_event_queue_cfg()
742 struct rte_event_dev_info info; in test_eventdev_port_setup() local
745 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_port_setup()
751 pconf.new_event_threshold = info.max_num_events + 1; in test_eventdev_port_setup()
755 pconf.new_event_threshold = info.max_num_events; in test_eventdev_port_setup()
756 pconf.dequeue_depth = info.max_event_port_dequeue_depth + 1; in test_eventdev_port_setup()
760 pconf.dequeue_depth = info.max_event_port_dequeue_depth; in test_eventdev_port_setup()
761 pconf.enqueue_depth = info.max_event_port_enqueue_depth + 1; in test_eventdev_port_setup()
765 if (!(info.event_dev_cap & in test_eventdev_port_setup()
767 pconf.enqueue_depth = info.max_event_port_enqueue_depth; in test_eventdev_port_setup()
774 ret = rte_event_port_setup(TEST_DEV_ID, info.max_event_ports, in test_eventdev_port_setup()
801 struct rte_event_dev_info info; in test_eventdev_port_attr_dequeue_depth() local
804 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_port_attr_dequeue_depth()
826 struct rte_event_dev_info info; in test_eventdev_port_attr_enqueue_depth() local
829 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_port_attr_enqueue_depth()
851 struct rte_event_dev_info info; in test_eventdev_port_attr_new_event_threshold() local
854 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_port_attr_new_event_threshold()
876 struct rte_event_dev_info info; in test_eventdev_port_count() local
878 ret = rte_event_dev_info_get(TEST_DEV_ID, &info); in test_eventdev_port_count()
885 TEST_ASSERT_EQUAL(port_count, info.max_event_ports, "Wrong port count"); in test_eventdev_port_count()