X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fraw%2Fioat%2Fioat_common.c;h=60de41152ac39851944bfa8d272edda15898b099;hb=e8db4413cba512680e16717a2e6eb89c429ea2c8;hp=d01c1ee3670d119fadb36990ebd7ab5f799fa282;hpb=245efe544d8e322f1cd87403cb4361f9d64e75df;p=dpdk.git diff --git a/drivers/raw/ioat/ioat_common.c b/drivers/raw/ioat/ioat_common.c index d01c1ee367..60de41152a 100644 --- a/drivers/raw/ioat/ioat_common.c +++ b/drivers/raw/ioat/ioat_common.c @@ -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; }