From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 754F728F3 for ; Tue, 10 Jan 2017 13:08:31 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id l2so29313317wml.2 for ; Tue, 10 Jan 2017 04:08:31 -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=Q6jpkGk4CSXHqqXaFzUUC7bd3soAkWbkhSiM9QjFDGw=; b=FXoQCMCrj6nlhTh+SrLFkPcJWVktIhqJLn6sMxYVUUECld9xG66LVZFUPPmB32chj3 McpsGAWsmxnlCs31c1nQ8+I1/nHNOdoV6uFOM1Nw1f1SsCvrh5GAVSm6JL/+2kh6gEfD 2U5zUw5sI6CNL3hVc/EHeP2yR/121Htbb5NE5asKiUo91FRblrEwhO8m0nve44Q3VeR7 u+tGMkqwcXiHCjN+ud8bjYYxzZ80mFFGDgcdmNxybqOr5fB2utHJOXpPf2Fib/DiK7IT Fphf9X8wbTqKwgdH11gCl2IyEIo/TluSvBtrGS2XaQgpsHeklWjs6VmlbUOQwzDw55wh BbEA== 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=Q6jpkGk4CSXHqqXaFzUUC7bd3soAkWbkhSiM9QjFDGw=; b=FS7zsxhXyvuz8Cjvzh7XF4JmdYUfFjbOns5HmZKXPl7wS2TZm7WzZh6ORUHBbZgJf0 JODl3GITQx3YBckOh2Hy04PFaHYB5scG94/8sVktfvCbWtAhyC6P4Et4FN6xM4ZeKDDw KDSM8ugXLgnhrQCjbQjkGEsWqFBBJb4qi0A9bJUGzTQQ1OszeREVMMd/CSLVvsQMWBk0 7ywWqLFYlxEMqOYJ4P+j+wV25eVPx2lc2B29a7zSiCcnrxgl4KRuPVrfRWLiqyVFL43X bkPpCxcUW+ajcHgSilMSH8+EVd5Emt+kX36xkgRlE4e8Yuh7VrWqFEDb8Jh0CqYQFzUb F93Q== X-Gm-Message-State: AIkVDXJoG8cfl/rui3V9Z3rs2J2QZfrHv554MvNxG77GOx78SVqqZFqSbxwOp8SSS1cN5HESDMxQn2IlqhF0TQ== X-Received: by 10.28.66.194 with SMTP id k63mr7850466wmi.140.1484050111175; Tue, 10 Jan 2017 04:08:31 -0800 (PST) MIME-Version: 1.0 Sender: jblunck@gmail.com Received: by 10.28.63.83 with HTTP; Tue, 10 Jan 2017 04:08:30 -0800 (PST) In-Reply-To: <20170107181756.1944-3-sthemmin@microsoft.com> References: <20170107181756.1944-1-sthemmin@microsoft.com> <20170107181756.1944-3-sthemmin@microsoft.com> From: Jan Blunck Date: Tue, 10 Jan 2017 13:08:30 +0100 X-Google-Sender-Auth: h7Mc34H2zYFJ4D38IU9mm_zGMqw Message-ID: To: Stephen Hemminger Cc: dev@dpdk.org, Stephen Hemminger Content-Type: text/plain; charset=UTF-8 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 12:08:31 -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 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'. > I40E_FDIR_MZ_NAME, > eth_dev->data->port_id); > mz = i40e_memzone_reserve(z_name, I40E_FDIR_PKT_LEN, SOCKET_ID_ANY); > -- > 2.11.0 >