git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: use stride index in Rx completion entry
[dpdk.git]
/
drivers
/
compress
/
isal
/
isal_compress_pmd_ops.c
diff --git
a/drivers/compress/isal/isal_compress_pmd_ops.c
b/drivers/compress/isal/isal_compress_pmd_ops.c
index
77d5d4b
..
970a041
100644
(file)
--- a/
drivers/compress/isal/isal_compress_pmd_ops.c
+++ b/
drivers/compress/isal/isal_compress_pmd_ops.c
@@
-162,6
+162,9
@@
isal_comp_pmd_qp_release(struct rte_compressdev *dev, uint16_t qp_id)
if (qp->stream->level_buf != NULL)
rte_free(qp->stream->level_buf);
if (qp->stream->level_buf != NULL)
rte_free(qp->stream->level_buf);
+ if (qp->state != NULL)
+ rte_free(qp->state);
+
if (dev->data->queue_pairs[qp_id] != NULL)
rte_free(dev->data->queue_pairs[qp_id]);
if (dev->data->queue_pairs[qp_id] != NULL)
rte_free(dev->data->queue_pairs[qp_id]);
@@
-240,6
+243,11
@@
isal_comp_pmd_qp_setup(struct rte_compressdev *dev, uint16_t qp_id,
ISAL_DEF_LVL3_DEFAULT, RTE_CACHE_LINE_SIZE,
socket_id);
ISAL_DEF_LVL3_DEFAULT, RTE_CACHE_LINE_SIZE,
socket_id);
+ /* Initialize memory for decompression state structure */
+ qp->state = rte_zmalloc_socket("Isa-l decompression state",
+ sizeof(struct inflate_state), RTE_CACHE_LINE_SIZE,
+ socket_id);
+
qp->id = qp_id;
dev->data->queue_pairs[qp_id] = qp;
qp->id = qp_id;
dev->data->queue_pairs[qp_id] = qp;