From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f181.google.com (mail-pf0-f181.google.com [209.85.192.181]) by dpdk.org (Postfix) with ESMTP id 590E729CF for ; Sat, 7 Jan 2017 19:18:08 +0100 (CET) Received: by mail-pf0-f181.google.com with SMTP id 189so8024779pfu.3 for ; Sat, 07 Jan 2017 10:18:08 -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=CgNn9KPMKbF/UVRVmon0cX66TAqszLQBvVft23KTEBE=; b=qNOlzG3RdqsdHPMbhuN29qkBvgkLO2ONT89XHDdO21/47ZTezMvrj1H8dufuWwmIVR e3BNlNBRO4kZbDpAshHbchsNMLRxJm7iMeD05nKb4MuS1MKLO0dt4IfpWMuyGLQO3oO7 UFhL+IH/V8DMHGCiITqxyB5cS01kOEezUo9ZgHMpf/02GKlmpDPuD3xA1fQsOvaPQO17 50Uts/T+vt6netkhBfAX736u9z4GdYlSArMtmWABo51KYWHizE1VIaT9qAc52v6R3UiZ kmz2G74QwBDuD5CUpxg57x80XPPJtnFhMzjT3ky0N7uW51eLqL/yxPNJH2QwBsKAizZn xWtg== 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=CgNn9KPMKbF/UVRVmon0cX66TAqszLQBvVft23KTEBE=; b=awciNYN3hzMM1kJHyQJJNc47rlXAPVA9g/hJWxbHAKKGFnr2A6I0zTShIrM1gz1t04 NQpU2sc/tA9eJ2YVhyGS76WCxLGq76MCJNwb+rE47GVPe8xHcMVvq5qisyq6idSNeT5b P3pdftylLOPSPbUsjdjBPwxT2xglmmdMV0u6pxHlO17/Y1BLPBCiocU7IdY5so/2IHt3 4QlniAE9kHu1cldB/MPzoPzLi04l19xQd7s7paGNZeketdzYjOZgDlHO4ghfKdXTlcx5 zQv/kh2zau+kmdzXryu5YXJhliBABZNJV7xWLigRPAP5S9szUAdwJFdV2Yd5riwGTiZh 66sg== X-Gm-Message-State: AIkVDXIzsiC17TwY6dsFRDWkU3dWLirjhmzodrgyb/IMT/GuE3+0nuWg0PWxY8hjCj8SjQ== X-Received: by 10.99.161.2 with SMTP id b2mr152709488pgf.2.1483813087442; Sat, 07 Jan 2017 10:18:07 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jan 2017 10:18:06 -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:51 -0800 Message-Id: <20170107181756.1944-4-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 3/8] vmxnet3: 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:08 -0000 Fix the vmxnet3 code to just use it's own name when forming zone name. Signed-off-by: Stephen Hemminger --- drivers/net/vmxnet3/vmxnet3_rxtx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3_rxtx.c b/drivers/net/vmxnet3/vmxnet3_rxtx.c index 36513693..8df4c8ea 100644 --- a/drivers/net/vmxnet3/vmxnet3_rxtx.c +++ b/drivers/net/vmxnet3/vmxnet3_rxtx.c @@ -849,9 +849,8 @@ ring_dma_zone_reserve(struct rte_eth_dev *dev, const char *ring_name, char z_name[RTE_MEMZONE_NAMESIZE]; const struct rte_memzone *mz; - snprintf(z_name, sizeof(z_name), "%s_%s_%d_%d", - dev->driver->pci_drv.driver.name, ring_name, - dev->data->port_id, queue_id); + snprintf(z_name, sizeof(z_name), "vmxnet3_%s_%d_%d", + ring_name, dev->data->port_id, queue_id); mz = rte_memzone_lookup(z_name); if (mz) -- 2.11.0