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

Function sw_queue_setup

dpdk/drivers/event/sw/sw_evdev.c:325–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325static int
326sw_queue_setup(struct rte_eventdev *dev, uint8_t queue_id,
327 const struct rte_event_queue_conf *conf)
328{
329 int type;
330
331 type = conf->schedule_type;
332
333 if (RTE_EVENT_QUEUE_CFG_SINGLE_LINK & conf->event_queue_cfg) {
334 type = SW_SCHED_TYPE_DIRECT;
335 } else if (RTE_EVENT_QUEUE_CFG_ALL_TYPES
336 & conf->event_queue_cfg) {
337 SW_LOG_ERR("QUEUE_CFG_ALL_TYPES not supported");
338 return -ENOTSUP;
339 }
340
341 struct sw_evdev *sw = sw_pmd_priv(dev);
342
343 if (sw->qids[queue_id].initialized)
344 sw_queue_release(dev, queue_id);
345
346 return qid_init(sw, queue_id, type, conf);
347}
348
349static void
350sw_init_qid_iqs(struct sw_evdev *sw)

Callers

nothing calls this directly

Calls 3

sw_pmd_privFunction · 0.85
sw_queue_releaseFunction · 0.85
qid_initFunction · 0.85

Tested by

no test coverage detected