From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f50.google.com (mail-pg0-f50.google.com [74.125.83.50]) by dpdk.org (Postfix) with ESMTP id 0FFD829CF for ; Sat, 7 Jan 2017 19:18:11 +0100 (CET) Received: by mail-pg0-f50.google.com with SMTP id 14so17183557pgg.1 for ; Sat, 07 Jan 2017 10:18:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FQY3xHuHbvrXgiB+k9mBn1maf4O18UbQASWbKC0eDo4=; b=SpVjGmN549kHDfo4S5jBpafhalolhiKKd/0ypBaK8r9GmHWh3x6FAGeIbu6S2Fu69h RqPPXAo+ukOIBscS9cz0w9ZcKRYB/Uu75lydRmMzsiiohWynXB9+XBxmBfOkoVfSbtfa lRu6wzpJmqMD1xhChkQ6caEkjdyQazGh4xLhPGCtQyTbmid6VMHxyWa87OTrLjYrxPaE idVlDuSTMAwU9MtY8olNYPU0u8L2iwt8qUh1JTG4jT+mt52dWfdyGzsdy+/OWBv83I36 QuXMCTuLKLkeluwlmil46sAMXz8ExcaA4DoB9Sa2my/ohGhroAG1yHKBO+SEh7cdxRYX skLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FQY3xHuHbvrXgiB+k9mBn1maf4O18UbQASWbKC0eDo4=; b=XIrP49CTZpWw7fWi7xh+OvH5iEkXVYGX3Zxiw8TEurx2Ho9wMexVJkNh1vzIMfJhBJ qyi9SG9O9Fn4ZwftaA4VCIxB9VVPZtEqilUvlkoXSf0Iaws64NJ4K/ah2GdUijpctlxt AzcRKFQhMdr+GlNba+lEBIZJCQLtBn6SjyoZlQCLl6NXIPmOdw+5pv6dG9SjTHdtrEr7 EqMh3aODirMvJC9hkKjpN/Ws5MUSSiKsGHtCLXRU6bhUn/zddFbmoK98gQIsCVx5zO9y W6qATdipvrB5Gw1hI4KkQFAbOkDygbMijFQ4sg9vE/AVwKFOs/NciMPxyqlhMrUhBq54 x17Q== X-Gm-Message-State: AIkVDXIJLanC9RtuP4n+p4tX/yNJEqXWln+XRDOwhWzmBd6C0CuA6bAkyfdZZ2gAf1ISYw== X-Received: by 10.99.149.1 with SMTP id p1mr152580830pgd.21.1483813090173; Sat, 07 Jan 2017 10:18:10 -0800 (PST) Received: from xeon-e3.wavecable.com (204-195-18-65.wavecable.com. [204.195.18.65]) by smtp.gmail.com with ESMTPSA id q190sm127565181pfb.51.2017.01.07.10.18.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jan 2017 10:18:09 -0800 (PST) From: Stephen Hemminger X-Google-Original-From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Sat, 7 Jan 2017 10:17:54 -0800 Message-Id: <20170107181756.1944-7-sthemmin@microsoft.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170107181756.1944-1-sthemmin@microsoft.com> References: <20170107181756.1944-1-sthemmin@microsoft.com> Subject: [dpdk-dev] [PATCH 6/8] qat: don't refer to eth_dev->pci_dev X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jan 2017 18:18:11 -0000 Later patches remove pci_dev from the ethernet device structure. Fix the quick assist code to just use it's own name when forming zone name. Signed-off-by: Stephen Hemminger --- drivers/crypto/qat/qat_qp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/qat/qat_qp.c b/drivers/crypto/qat/qat_qp.c index 2e7188bd..fe76e04a 100644 --- a/drivers/crypto/qat/qat_qp.c +++ b/drivers/crypto/qat/qat_qp.c @@ -299,9 +299,9 @@ 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.driver.name, "qp_mem", dev->data->dev_id, - queue->hw_bundle_number, queue->hw_queue_number); + snprintf(queue->memz_name, sizeof(queue->memz_name), + "qat_qp_mem_%d_%u_%u", dev->data->dev_id, + queue->hw_bundle_number, queue->hw_queue_number); qp_mz = queue_dma_zone_reserve(queue->memz_name, queue_size_bytes, socket_id); if (qp_mz == NULL) { -- 2.11.0