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

Function rte_event_dev_start

dpdk/lib/eventdev/rte_eventdev.c:1465–1494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1463}
1464
1465int
1466rte_event_dev_start(uint8_t dev_id)
1467{
1468 struct rte_eventdev *dev;
1469 int diag;
1470
1471 RTE_EDEV_LOG_DEBUG("Start dev_id=%" PRIu8, dev_id);
1472
1473 RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);
1474 dev = &rte_eventdevs[dev_id];
1475 if (*dev->dev_ops->dev_start == NULL)
1476 return -ENOTSUP;
1477
1478 if (dev->data->dev_started != 0) {
1479 RTE_EDEV_LOG_ERR("Device with dev_id=%" PRIu8 "already started",
1480 dev_id);
1481 return 0;
1482 }
1483
1484 diag = (*dev->dev_ops->dev_start)(dev);
1485 rte_eventdev_trace_start(dev_id, diag);
1486 if (diag == 0)
1487 dev->data->dev_started = 1;
1488 else
1489 return diag;
1490
1491 event_dev_fp_ops_set(rte_event_fp_ops + dev_id, dev);
1492
1493 return 0;
1494}
1495
1496int
1497rte_event_dev_stop_flush_callback_register(uint8_t dev_id,

Callers 15

rxa_default_conf_cbFunction · 0.85
edma_default_config_cbFunction · 0.85
eca_default_config_cbFunction · 0.85
default_port_conf_cbFunction · 0.85
txa_service_conf_cbFunction · 0.85
octeontx_dev_startFunction · 0.85
test_stop_flushFunction · 0.85
test_directed_trafficFunction · 0.85
test_deferred_schedFunction · 0.85
test_delayed_popFunction · 0.85

Calls 1

event_dev_fp_ops_setFunction · 0.85

Tested by 15

test_stop_flushFunction · 0.68
test_directed_trafficFunction · 0.68
test_deferred_schedFunction · 0.68
test_delayed_popFunction · 0.68
ordered_basicFunction · 0.68
atomic_basicFunction · 0.68
single_link_w_statsFunction · 0.68
single_linkFunction · 0.68
qid_basicFunction · 0.68