From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 4C15528F3 for ; Tue, 10 Jan 2017 13:13:53 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id c85so29074505wmi.1 for ; Tue, 10 Jan 2017 04:13:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=nYhT2WYe8ZDtGGlTjFDNqt9cF28TTFQK03saV7zMync=; b=Alok/DZpIUtfH+jHBh3ygNwRl2HfvGBP1vn+ti3wD4MedjFrVlr0nLVzb+jVIbOIz8 R4fIdvOaGZtigE3AA4YUBipl/dvyOZXE7yJyY+zeHwi8TNdnrij/my1Qls+1xwY0s1z9 0eOe/EFI1C1TWV8oatW+QgyYKcJlB1aY01qUqqNkJYVr8lxgYX9FMViUBk6XxAXxKeai yp2SzpNqZ6H7KEPFfLwjVHh5E4jY7fneQFlK8Z6gXAGyZAwQAzpbzJLM8bP+H72Hhg7R s+yZOIJec7+kb0rZb8Z0rqL7YGMGUNRbbgItvt/wjNe8U7zl2HIUvd6lNIFt3cTQvnMD oiuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=nYhT2WYe8ZDtGGlTjFDNqt9cF28TTFQK03saV7zMync=; b=UWCk9C8294l4rqSC7gNu/WRy6gQ6fQDHNzuh1n0ol2llHjEAWagjvcxbOjbfSkajXs Lk11A7p9W6HrT7KDx31AsPLqfqaAYA6qH52ko1syYeND49eXU9ZWC1rFHGoFmTqP/1xO N4fJID+/B2FdIRU+GEe6caP3qMPkq/W10YzNwQx16gaH6WsPqF78mbguznHnVeepxh1O o+FGv8xVOAQ5BuYpCihE8k6VgV4XehZJcvnwbMXaZ/JyL3wuUUZ2P+hdiv/fJuKmuhwz lqacwH34LB/wQPXQ4ONDyKWXkaLjQ5D+1hpHPPJqKLYvqKhu0Qe0fOitRZX5WdDiWuSg YTWw== X-Gm-Message-State: AIkVDXL93O+JSRoM5+Jb3w1VDLHb5RUecXVbknQxjDytNqq5POgVrf10kh1jnt2Fi9Jcg6K/RKzw+DIPEsol4Q== X-Received: by 10.223.140.145 with SMTP id a17mr2075689wrb.1.1484050432853; Tue, 10 Jan 2017 04:13:52 -0800 (PST) MIME-Version: 1.0 Sender: jblunck@gmail.com Received: by 10.28.63.83 with HTTP; Tue, 10 Jan 2017 04:13:52 -0800 (PST) In-Reply-To: <20170107181756.1944-6-sthemmin@microsoft.com> References: <20170107181756.1944-1-sthemmin@microsoft.com> <20170107181756.1944-6-sthemmin@microsoft.com> From: Jan Blunck Date: Tue, 10 Jan 2017 13:13:52 +0100 X-Google-Sender-Auth: gfLS2fMNYY4gNfs91KFfPnyI88o Message-ID: To: Stephen Hemminger Cc: dev@dpdk.org, Stephen Hemminger Content-Type: text/plain; charset=UTF-8 Subject: Re: [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: Tue, 10 Jan 2017 12:13:53 -0000 On Sat, Jan 7, 2017 at 7:17 PM, Stephen Hemminger wrote: > 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); > The driver is called 'net_nfp'. > 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 >