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

Function rte_rawdev_stop

dpdk/lib/rawdev/rte_rawdev.c:428–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428void
429rte_rawdev_stop(uint16_t dev_id)
430{
431 struct rte_rawdev *dev;
432
433 RTE_RDEV_DEBUG("Stop dev_id=%" PRIu8, dev_id);
434
435 RTE_RAWDEV_VALID_DEVID_OR_RET(dev_id);
436 dev = &rte_rawdevs[dev_id];
437
438 if (dev->started == 0) {
439 RTE_RDEV_ERR("Device with dev_id=%" PRIu8 "already stopped",
440 dev_id);
441 return;
442 }
443
444 if (dev->dev_ops->dev_stop == NULL)
445 goto mark_stopped;
446
447 (*dev->dev_ops->dev_stop)(dev);
448
449mark_stopped:
450 dev->started = 0;
451}
452
453int
454rte_rawdev_close(uint16_t dev_id)

Callers 5

cnxk_gpio_selftestFunction · 0.85
bphy_rawdev_selftestFunction · 0.85
test_rawdev_start_stopFunction · 0.85
cmd_quit_parsedFunction · 0.85

Calls

no outgoing calls

Tested by 3

cnxk_gpio_selftestFunction · 0.68
test_rawdev_start_stopFunction · 0.68