From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH] crypto/qat: fix memzone creation to use a fixed size string Date: Mon, 5 Sep 2016 11:23:56 +0800 Message-ID: <20160905032356.GH30752@yliu-dev.sh.intel.com> References: <1472725298-8455-1-git-send-email-john.griffin@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, eoin.breen@intel.com, pablo.de.lara.guarch@intel.com To: John Griffin Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id B1E38298F for ; Mon, 5 Sep 2016 05:12:06 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1472725298-8455-1-git-send-email-john.griffin@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Sep 01, 2016 at 11:21:38AM +0100, John Griffin wrote: > Remove the dependency on dev->driver->pci_drv.name when > creating the memzone for the qat hardware queues. > The pci_drv.name may grow too large for RTE_MEMZONE_NAMESIZE. Will the "may grow too large" cause any issues? If so, state it here. If not, marking this patch as a "fix" patch doesn't make sense to me then. > > Fixes: 1703e94ac5ce ("qat: add driver for QuickAssist devices") > > Signed-off-by: John Griffin > --- > drivers/crypto/qat/qat_qp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/crypto/qat/qat_qp.c b/drivers/crypto/qat/qat_qp.c > index 5de47e3..a29ed66 100644 > --- a/drivers/crypto/qat/qat_qp.c > +++ b/drivers/crypto/qat/qat_qp.c > @@ -300,7 +300,7 @@ qat_queue_create(struct rte_cryptodev *dev, struct qat_queue *queue, > * Allocate a memzone for the queue - create a unique name. > */ > snprintf(queue->memz_name, sizeof(queue->memz_name), "%s_%s_%d_%d_%d", > - dev->driver->pci_drv.name, "qp_mem", dev->data->dev_id, > + "qat_pmd", "qp_mem", dev->data->dev_id, Besides that, why not putting "qat_pmd" and "qp_mem" inside the format string? --yliu