MCPcopy Create free account
hub / github.com/F-Stack/f-stack / init

Function init

dpdk/drivers/event/sw/sw_evdev_selftest.c:154–176  ·  view source on GitHub ↗

initialization and config */

Source from the content-addressed store, hash-verified

152
153/* initialization and config */
154static inline int
155init(struct test *t, int nb_queues, int nb_ports)
156{
157 struct rte_event_dev_config config = {
158 .nb_event_queues = nb_queues,
159 .nb_event_ports = nb_ports,
160 .nb_event_queue_flows = 1024,
161 .nb_events_limit = 4096,
162 .nb_event_port_dequeue_depth = DEQUEUE_DEPTH,
163 .nb_event_port_enqueue_depth = 128,
164 };
165 int ret;
166
167 void *temp = t->mbuf_pool; /* save and restore mbuf pool */
168
169 memset(t, 0, sizeof(*t));
170 t->mbuf_pool = temp;
171
172 ret = rte_event_dev_configure(evdev, &config);
173 if (ret < 0)
174 printf("%d: Error configuring device\n", __LINE__);
175 return ret;
176};
177
178static inline int
179create_ports(struct test *t, int num_ports)

Callers 15

test_priority_directedFunction · 0.70
test_priority_atomicFunction · 0.70
test_priority_orderedFunction · 0.70
test_priority_unorderedFunction · 0.70
burst_packetsFunction · 0.70
abuse_inflightsFunction · 0.70
xstats_testsFunction · 0.70
xstats_id_abuse_testsFunction · 0.70
port_reconfig_creditsFunction · 0.70
port_single_lb_reconfigFunction · 0.70

Calls 3

memsetFunction · 0.85
rte_event_dev_configureFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected