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

Function rte_compressdev_pmd_destroy

dpdk/lib/compressdev/rte_compressdev_pmd.c:143–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143int
144rte_compressdev_pmd_destroy(struct rte_compressdev *compressdev)
145{
146 int retval;
147
148 COMPRESSDEV_LOG(INFO, "Closing comp device %s",
149 compressdev->device->name);
150
151 /* free comp device */
152 retval = rte_compressdev_pmd_release_device(compressdev);
153 if (retval)
154 return retval;
155
156 if (rte_eal_process_type() == RTE_PROC_PRIMARY)
157 rte_free(compressdev->data->dev_private);
158
159 compressdev->device = NULL;
160 compressdev->data = NULL;
161
162 return 0;
163}

Callers 8

qat_comp_dev_createFunction · 0.85
qat_comp_dev_destroyFunction · 0.85
zip_pci_probeFunction · 0.85
zip_pci_removeFunction · 0.85
mlx5_compress_dev_probeFunction · 0.85
mlx5_compress_dev_removeFunction · 0.85
compdev_isal_remove_devFunction · 0.85
zlib_removeFunction · 0.85

Calls 3

rte_eal_process_typeFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected