From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by dpdk.org (Postfix) with ESMTP id 1CF86532D for ; Tue, 10 Jan 2017 18:58:04 +0100 (CET) Received: by mail-pf0-f179.google.com with SMTP id 127so50562011pfg.1 for ; Tue, 10 Jan 2017 09:58:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Rzsrp5LEkp6HyVCroQAZEorpdP1+vTwsR85Rf48UBeY=; b=DnOjMZENg5MSI4KbhIuwUJV88UZVpflA+KJnGI8W/pX8xjFGYQfIzeOq5wmVEPHhl8 g2DjbP25DMU3+OTA5Oe4UyyVDCl8DF/pvr4BwtQtSYw6mYd5wuOpBTmoXfBQKlYKCedB a70pReBnuZtKI7ZbG036c0oLJZszhIS57g292xvt5oiO9MC4bkXkC+Z/bLAWlaKkMTPX /inCsBAneFLbxj6WKZvs7mPvd1V7ZDAp6EcUmfqyr7aBLa7BFcxLWcx6G5vrmb1L2mup DWMbsGCrG1qz/euW4LoDIOUpMMbh0a5GULcL7J/lvwOomhnZZZYxpivm1LMuq0f4feFg 9ACw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Rzsrp5LEkp6HyVCroQAZEorpdP1+vTwsR85Rf48UBeY=; b=GSHfkQX2ojtXn19rySEQjYxyV5tiJLWnEcxqrZ486ImIZgsBoJpEcGQUhFEndxjr3e yXkR9t7Qn/EiPXtgvlK9h7SB2usYlH0e15p6GPbjDnEbjxAFB2nW4ku6uBDVplv9a0Ji pA2GgM4c4IZCczqNawuPyQ8kipxpThmZpEQFgBFyRSAY97sWQecZIFAhuXeUSdX/SnMa Isco/Z74ht4wi73pOoiU5uG2IwPZWqAxFZ43uE8VLFGBhezaLmmLr2rbjLi3Pz/1L6gq erXViSqTE8tsGQOZlfEOj6HCtGcNBXucH50qQDjK6HDprpJQCjwn+VVDxH2tnJ9Iardr hhPg== X-Gm-Message-State: AIkVDXKCafJvMWePp+BwvVfiExSScN0eWRyWCwgnTz0uce918rjzpisqPQv6JwtD2ycLJg== X-Received: by 10.99.99.68 with SMTP id x65mr5500818pgb.126.1484071083389; Tue, 10 Jan 2017 09:58:03 -0800 (PST) Received: from xeon-e3 (204-195-18-65.wavecable.com. [204.195.18.65]) by smtp.gmail.com with ESMTPSA id i10sm7351682pgd.37.2017.01.10.09.58.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jan 2017 09:58:03 -0800 (PST) Date: Tue, 10 Jan 2017 09:57:49 -0800 From: Stephen Hemminger To: Jan Blunck Cc: dev@dpdk.org, Stephen Hemminger Message-ID: <20170110095749.3cb00cab@xeon-e3> In-Reply-To: References: <20170107181756.1944-1-sthemmin@microsoft.com> <20170107181756.1944-3-sthemmin@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 2/8] i40e: 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 17:58:04 -0000 On Tue, 10 Jan 2017 13:08:30 +0100 Jan Blunck wrote: > On Sat, Jan 7, 2017 at 7:17 PM, Stephen Hemminger > wrote: > > Later patches remove pci_dev from the ethernet device structure. > > Fix the i40e code to just use it's own name when forming zone name. > > > > Signed-off-by: Stephen Hemminger > > --- > > drivers/net/i40e/i40e_fdir.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c > > index 335bf15c..68a2523c 100644 > > --- a/drivers/net/i40e/i40e_fdir.c > > +++ b/drivers/net/i40e/i40e_fdir.c > > @@ -250,8 +250,7 @@ i40e_fdir_setup(struct i40e_pf *pf) > > } > > > > /* reserve memory for the fdir programming packet */ > > - snprintf(z_name, sizeof(z_name), "%s_%s_%d", > > - eth_dev->driver->pci_drv.driver.name, > > + snprintf(z_name, sizeof(z_name), "i40e_%s_%d", > > The driver is called 'net_i40e'. It really doesn't matter. The memory name is just so that primary and secondary find the same resources. Having net_ on the front doesn't change or help.