Lines Matching refs:dev_conf
96 devconf_set_default_sane_values(struct rte_event_dev_config *dev_conf, in devconf_set_default_sane_values() argument
99 memset(dev_conf, 0, sizeof(struct rte_event_dev_config)); in devconf_set_default_sane_values()
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()
104 dev_conf->nb_event_port_dequeue_depth = in devconf_set_default_sane_values()
106 dev_conf->nb_event_port_enqueue_depth = in devconf_set_default_sane_values()
108 dev_conf->nb_event_port_enqueue_depth = in devconf_set_default_sane_values()
110 dev_conf->nb_events_limit = in devconf_set_default_sane_values()
115 test_ethdev_config_run(struct rte_event_dev_config *dev_conf, in test_ethdev_config_run() argument
117 void (*fn)(struct rte_event_dev_config *dev_conf, in test_ethdev_config_run() argument
120 devconf_set_default_sane_values(dev_conf, info); in test_ethdev_config_run()
121 fn(dev_conf, info); in test_ethdev_config_run()
122 return rte_event_dev_configure(TEST_DEV_ID, dev_conf); in test_ethdev_config_run()
126 max_dequeue_limit(struct rte_event_dev_config *dev_conf, in max_dequeue_limit() argument
129 dev_conf->dequeue_timeout_ns = info->max_dequeue_timeout_ns + 1; in max_dequeue_limit()
133 max_events_limit(struct rte_event_dev_config *dev_conf, in max_events_limit() argument
136 dev_conf->nb_events_limit = info->max_num_events + 1; in max_events_limit()
140 max_event_ports(struct rte_event_dev_config *dev_conf, in max_event_ports() argument
143 dev_conf->nb_event_ports = info->max_event_ports + 1; in max_event_ports()
147 max_event_queues(struct rte_event_dev_config *dev_conf, in max_event_queues() argument
150 dev_conf->nb_event_queues = info->max_event_queues + 1; in max_event_queues()
154 max_event_queue_flows(struct rte_event_dev_config *dev_conf, in max_event_queue_flows() argument
157 dev_conf->nb_event_queue_flows = info->max_event_queue_flows + 1; in max_event_queue_flows()
161 max_event_port_dequeue_depth(struct rte_event_dev_config *dev_conf, in max_event_port_dequeue_depth() argument
164 dev_conf->nb_event_port_dequeue_depth = in max_event_port_dequeue_depth()
169 max_event_port_enqueue_depth(struct rte_event_dev_config *dev_conf, in max_event_port_enqueue_depth() argument
172 dev_conf->nb_event_port_enqueue_depth = in max_event_port_enqueue_depth()
181 struct rte_event_dev_config dev_conf; in test_eventdev_configure() local
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()
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()
219 ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf); 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()
226 ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf); in test_eventdev_configure()
230 devconf_set_default_sane_values(&dev_conf, &info); in test_eventdev_configure()
231 ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf); in test_eventdev_configure()
242 struct rte_event_dev_config dev_conf; in eventdev_configure_setup() local
247 devconf_set_default_sane_values(&dev_conf, &info); in eventdev_configure_setup()
248 ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf); in eventdev_configure_setup()