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 0983E29CF for ; Sat, 7 Jan 2017 19:18:10 +0100 (CET) Received: by mail-pg0-f50.google.com with SMTP id 14so17183482pgg.1 for ; Sat, 07 Jan 2017 10:18:09 -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=0CNmxLI19hP3MkTsFAVZUTqO9+VV00XdK1M88v+v+y4=; b=jzZQ9obQKCw8KeltyoQoLev2GLJ/4mJQmMEXm8NKZra+whfllgOg5Bj7pluV4Yv3QA 7PhYMDgAqbFIBnB0g+iK0FEtniCI9FO8kI+lt2OzfHQwF+qDdszId6LSfOY/OHK4XAoJ hlvXwNue/YBfkMzTncaym3Vd2SzPSnlIe9EDNDgwAKEOfWFwStLCC7Vb9tBJ5PhmKuJ1 h7Ibkg9akyT8BIkyRngsEpaEGqF6SRs9zhx1D06u+M6QriV1ZaK7MTV6of3tLFR34hQJ u8NKlCrNOpbTwx3D6GlcZQKByOpM3gSNb1AfYblTTyFNzA4rDu3Zimfl9jnupx8dQ2Dp XJ/Q== 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=0CNmxLI19hP3MkTsFAVZUTqO9+VV00XdK1M88v+v+y4=; b=B7Y98jCt9ujF7rq4PgAAYGAsfb9SA8ywqBhvFlzRzSzvPQevm1altpWbnBvAjQI09O sBOzK63NlZpK7fs482F2DYouxzmmpEgLIxPt4QhL9cNc17+BsFoPX0KT7BnTiqC85E1B eAJfgA9wMHgNxVCX/ex+EWbGPiUeb04fURI9c5Ac55BJs7ToTQsLYGN7aeuLq3nKHJYA tqAFvIAO5EuxO0Q/VGZNqfwkI5XIca0R5aTPwaa/JI7Tsx2KlIo2vDy1zUUTOMWmu+tN tjled8Kvgmbnzcd7jDwgOqFgoOPZaC4sPsSbKriA/sf9JOpcFJ5uB6EPMPbucA+81hvf vsSg== X-Gm-Message-State: AIkVDXKklFGfqL65j8mjOzCT8muET6qFIdpmmMaetXNcRcQRTpQqHDjDhL+5m8p9VL0n1w== X-Received: by 10.99.199.69 with SMTP id v5mr17223630pgg.90.1483813089379; Sat, 07 Jan 2017 10:18:09 -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.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jan 2017 10:18:08 -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:53 -0800 Message-Id: <20170107181756.1944-6-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 5/8] nfp: 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:10 -0000 Later patches remove pci_dev from the ethernet device structure. Fix the nfp code to just use it's own name when forming zone name. Signed-off-by: Stephen Hemminger --- drivers/net/nfp/nfp_net.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index e85315f1..970b5c84 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -213,8 +213,7 @@ 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, + snprintf(z_name, sizeof(z_name), "nfp_%s_%u_%u", ring_name, dev->data->port_id, queue_id); mz = rte_memzone_lookup(z_name); @@ -1009,7 +1008,6 @@ nfp_net_infos_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) hw = NFP_NET_DEV_PRIVATE_TO_HW(dev->data->dev_private); dev_info->pci_dev = RTE_DEV_TO_PCI(dev->device); - dev_info->driver_name = dev->driver->pci_drv.driver.name; dev_info->max_rx_queues = (uint16_t)hw->max_rx_queues; dev_info->max_tx_queues = (uint16_t)hw->max_tx_queues; dev_info->min_rx_bufsize = ETHER_MIN_MTU; -- 2.11.0