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

Function rte_compressdev_stop

dpdk/lib/compressdev/rte_compressdev.c:484–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484void
485rte_compressdev_stop(uint8_t dev_id)
486{
487 struct rte_compressdev *dev;
488
489 if (!rte_compressdev_is_valid_dev(dev_id)) {
490 COMPRESSDEV_LOG(ERR, "Invalid dev_id=%" PRIu8, dev_id);
491 return;
492 }
493
494 dev = &rte_comp_devices[dev_id];
495
496 if (*dev->dev_ops->dev_stop == NULL)
497 return;
498
499 if (dev->data->dev_started == 0) {
500 COMPRESSDEV_LOG(ERR,
501 "Device with dev_id=%" PRIu8 " already stopped", dev_id);
502 return;
503 }
504
505 (*dev->dev_ops->dev_stop)(dev);
506 dev->data->dev_started = 0;
507}
508
509int
510rte_compressdev_close(uint8_t dev_id)

Callers 2

mainFunction · 0.85
generic_ut_teardownFunction · 0.85

Calls 1

Tested by 1

generic_ut_teardownFunction · 0.68