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

Function compdev_isal_remove_dev

dpdk/drivers/compress/isal/isal_compress_pmd.c:705–720  ·  view source on GitHub ↗

Remove compression device */

Source from the content-addressed store, hash-verified

703
704/** Remove compression device */
705static int
706compdev_isal_remove_dev(struct rte_vdev_device *vdev)
707{
708 struct rte_compressdev *compdev;
709 const char *name;
710
711 name = rte_vdev_device_name(vdev);
712 if (name == NULL)
713 return -EINVAL;
714
715 compdev = rte_compressdev_pmd_get_named_dev(name);
716 if (compdev == NULL)
717 return -ENODEV;
718
719 return rte_compressdev_pmd_destroy(compdev);
720}
721
722/** Initialise ISA-L compression device */
723static int

Callers

nothing calls this directly

Calls 3

rte_vdev_device_nameFunction · 0.85

Tested by

no test coverage detected