From: Gagandeep Singh Date: Thu, 15 Oct 2020 09:47:03 +0000 (+0800) Subject: raw/dpaa2_qdma: reduce memset in enqueue multi X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=56b284a0e29fc77d1419febb6c7f644cd373505b;p=dpdk.git raw/dpaa2_qdma: reduce memset in enqueue multi performance improvement: memset should be done only for required memory. Signed-off-by: Gagandeep Singh --- diff --git a/drivers/raw/dpaa2_qdma/dpaa2_qdma.c b/drivers/raw/dpaa2_qdma/dpaa2_qdma.c index 530ee156d2..09e295fe84 100644 --- a/drivers/raw/dpaa2_qdma/dpaa2_qdma.c +++ b/drivers/raw/dpaa2_qdma/dpaa2_qdma.c @@ -692,7 +692,7 @@ dpdmai_dev_enqueue_multi(struct dpaa2_dpdmai_dev *dpdmai_dev, qbman_eq_desc_set_no_orp(&eqdesc, 0); qbman_eq_desc_set_response(&eqdesc, 0, 0); - memset(fd, 0, RTE_QDMA_BURST_NB_MAX * sizeof(struct qbman_fd)); + memset(fd, 0, nb_jobs * sizeof(struct qbman_fd)); while (nb_jobs > 0) { uint32_t loop;