Lines Matching refs:dev_conf

85 devconf_set_default_sane_values(struct rte_event_dev_config *dev_conf,  in devconf_set_default_sane_values()  argument
88 memset(dev_conf, 0, sizeof(struct rte_event_dev_config)); in devconf_set_default_sane_values()
89 dev_conf->dequeue_timeout_ns = info->min_dequeue_timeout_ns; in devconf_set_default_sane_values()
90 dev_conf->nb_event_ports = info->max_event_ports; in devconf_set_default_sane_values()
91 dev_conf->nb_event_queues = info->max_event_queues; in devconf_set_default_sane_values()
92 dev_conf->nb_event_queue_flows = info->max_event_queue_flows; in devconf_set_default_sane_values()
93 dev_conf->nb_event_port_dequeue_depth = in devconf_set_default_sane_values()
95 dev_conf->nb_event_port_enqueue_depth = in devconf_set_default_sane_values()
97 dev_conf->nb_event_port_enqueue_depth = in devconf_set_default_sane_values()
99 dev_conf->nb_events_limit = in devconf_set_default_sane_values()
104 test_ethdev_config_run(struct rte_event_dev_config *dev_conf, in test_ethdev_config_run() argument
106 void (*fn)(struct rte_event_dev_config *dev_conf, in test_ethdev_config_run() argument
109 devconf_set_default_sane_values(dev_conf, info); in test_ethdev_config_run()
110 fn(dev_conf, info); in test_ethdev_config_run()
111 return rte_event_dev_configure(TEST_DEV_ID, dev_conf); in test_ethdev_config_run()
115 max_dequeue_limit(struct rte_event_dev_config *dev_conf, in max_dequeue_limit() argument
118 dev_conf->dequeue_timeout_ns = info->max_dequeue_timeout_ns + 1; in max_dequeue_limit()
122 max_events_limit(struct rte_event_dev_config *dev_conf, in max_events_limit() argument
125 dev_conf->nb_events_limit = info->max_num_events + 1; in max_events_limit()
129 max_event_ports(struct rte_event_dev_config *dev_conf, in max_event_ports() argument
132 dev_conf->nb_event_ports = info->max_event_ports + 1; in max_event_ports()
136 max_event_queues(struct rte_event_dev_config *dev_conf, in max_event_queues() argument
139 dev_conf->nb_event_queues = info->max_event_queues + 1; in max_event_queues()
143 max_event_queue_flows(struct rte_event_dev_config *dev_conf, in max_event_queue_flows() argument
146 dev_conf->nb_event_queue_flows = info->max_event_queue_flows + 1; in max_event_queue_flows()
150 max_event_port_dequeue_depth(struct rte_event_dev_config *dev_conf, in max_event_port_dequeue_depth() argument
153 dev_conf->nb_event_port_dequeue_depth = in max_event_port_dequeue_depth()
158 max_event_port_enqueue_depth(struct rte_event_dev_config *dev_conf, in max_event_port_enqueue_depth() argument
161 dev_conf->nb_event_port_enqueue_depth = in max_event_port_enqueue_depth()
170 struct rte_event_dev_config dev_conf; in test_eventdev_configure() local
180 test_ethdev_config_run(&dev_conf, &info, max_dequeue_limit), in test_eventdev_configure()
183 test_ethdev_config_run(&dev_conf, &info, max_events_limit), in test_eventdev_configure()
186 test_ethdev_config_run(&dev_conf, &info, max_event_ports), in test_eventdev_configure()
189 test_ethdev_config_run(&dev_conf, &info, max_event_queues), in test_eventdev_configure()
192 test_ethdev_config_run(&dev_conf, &info, max_event_queue_flows), in test_eventdev_configure()
197 test_ethdev_config_run(&dev_conf, &info, in test_eventdev_configure()
201 test_ethdev_config_run(&dev_conf, &info, in test_eventdev_configure()
207 devconf_set_default_sane_values(&dev_conf, &info); in test_eventdev_configure()
208 ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf); in test_eventdev_configure()
212 devconf_set_default_sane_values(&dev_conf, &info); in test_eventdev_configure()
213 dev_conf.nb_event_ports = RTE_MAX(info.max_event_ports/2, 1); in test_eventdev_configure()
214 dev_conf.nb_event_queues = RTE_MAX(info.max_event_queues/2, 1); in test_eventdev_configure()
215 ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf); in test_eventdev_configure()
219 devconf_set_default_sane_values(&dev_conf, &info); in test_eventdev_configure()
220 ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf); in test_eventdev_configure()
231 struct rte_event_dev_config dev_conf; in eventdev_configure_setup() local
236 devconf_set_default_sane_values(&dev_conf, &info); in eventdev_configure_setup()
237 ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf); in eventdev_configure_setup()