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

Function rte_event_dev_stop

dpdk/lib/eventdev/rte_eventdev.c:1516–1538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1514}
1515
1516void
1517rte_event_dev_stop(uint8_t dev_id)
1518{
1519 struct rte_eventdev *dev;
1520
1521 RTE_EDEV_LOG_DEBUG("Stop dev_id=%" PRIu8, dev_id);
1522
1523 RTE_EVENTDEV_VALID_DEVID_OR_RET(dev_id);
1524 dev = &rte_eventdevs[dev_id];
1525 if (*dev->dev_ops->dev_stop == NULL)
1526 return;
1527
1528 if (dev->data->dev_started == 0) {
1529 RTE_EDEV_LOG_ERR("Device with dev_id=%" PRIu8 "already stopped",
1530 dev_id);
1531 return;
1532 }
1533
1534 dev->data->dev_started = 0;
1535 (*dev->dev_ops->dev_stop)(dev);
1536 rte_eventdev_trace_stop(dev_id);
1537 event_dev_fp_ops_reset(rte_event_fp_ops + dev_id);
1538}
1539
1540int
1541rte_event_dev_close(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_closeFunction · 0.85
octeontx_removeFunction · 0.85
cleanupFunction · 0.85
cleanupFunction · 0.85
cleanupFunction · 0.85
port_reconfig_creditsFunction · 0.85

Calls 1

event_dev_fp_ops_resetFunction · 0.85

Tested by 15

cleanupFunction · 0.68
cleanupFunction · 0.68
cleanupFunction · 0.68
port_reconfig_creditsFunction · 0.68
eventdev_teardownFunction · 0.68
test_dev_stop_flushFunction · 0.68
eventdev_teardownFunction · 0.68
test_dev_stop_flushFunction · 0.68
eventdev_teardownFunction · 0.68
test_dev_stop_flushFunction · 0.68
test_dma_adapter_stopFunction · 0.68