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

Function rte_compressdev_stream_free

dpdk/lib/compressdev/rte_compressdev.c:743–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741
742
743int
744rte_compressdev_stream_free(uint8_t dev_id, void *stream)
745{
746 struct rte_compressdev *dev;
747 int ret;
748
749 dev = rte_compressdev_get_dev(dev_id);
750
751 if (dev == NULL || stream == NULL)
752 return -EINVAL;
753
754 if (*dev->dev_ops->stream_free == NULL)
755 return -ENOTSUP;
756 ret = dev->dev_ops->stream_free(dev, stream);
757 if (ret < 0) {
758 COMPRESSDEV_LOG(ERR,
759 "dev_id %d failed to free stream: err=%d",
760 dev_id, ret);
761 return ret;
762 };
763
764 return 0;
765}
766
767const char *
768rte_compressdev_name_get(uint8_t dev_id)

Callers 1

test_deflate_comp_decompFunction · 0.85

Calls 1

rte_compressdev_get_devFunction · 0.85

Tested by 1

test_deflate_comp_decompFunction · 0.68