crypto/mlx5: add keytag configuration
[dpdk.git] / drivers / raw / ioat / ioat_common.c
index d01c1ee..60de411 100644 (file)
@@ -147,6 +147,7 @@ idxd_dev_configure(const struct rte_rawdev *dev,
        /* in case we are reconfiguring a device, free any existing memory */
        rte_free(rte_idxd->desc_ring);
        rte_free(rte_idxd->hdl_ring);
+       rte_free(rte_idxd->hdl_ring_flags);
 
        /* allocate the descriptor ring at 2x size as batches can't wrap */
        rte_idxd->desc_ring = rte_zmalloc(NULL,
@@ -173,6 +174,7 @@ idxd_dev_configure(const struct rte_rawdev *dev,
        }
        rte_idxd->hdls_read = rte_idxd->batch_start = 0;
        rte_idxd->batch_size = 0;
+       rte_idxd->hdls_avail = 0;
 
        return 0;
 }