From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by dpdk.org (Postfix) with ESMTP id AA30F29CF for ; Sat, 7 Jan 2017 19:18:07 +0100 (CET) Received: by mail-pf0-f177.google.com with SMTP id 189so8024737pfu.3 for ; Sat, 07 Jan 2017 10:18:07 -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=kkcSDhN4pk5rXcI9KT7xYXt2wVEeZ3nPoL62vfQj8RI=; b=X6t4Lo0iUTny6MLkBN053ZbbrRRFa8qlHGT+vqTptO/L6cj9Qg2vcyMt3maiEEQehQ Tx5tWGE8QFFFQ6oxneG2KBqQh3jgRO+HQZIwTy2+5tjRotszp/Ik0AdWXF8GZBEo11Tu /t12ebFTGBpVr3NnEzsUJrcc/keKXWvmJYPa1lvBgDJE8a2uBAv+fchqP8GbWX9i5gFH oONg/O3Bn8/ygCOs4hpJ1xxrSVLY3ZOIKpiEYN3YyMMJt2qGgQBFxZJzcXdAx1leKGrw OajPqX5Ja+9NPCQad0qQws6fG6a7Cw5OyRRYOmuYqJAOeuTxNIntIJKHtP2J8NKEyktd I8OQ== 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=kkcSDhN4pk5rXcI9KT7xYXt2wVEeZ3nPoL62vfQj8RI=; b=oIRk9BO+to/8OmJP5WGIY13ykDDjqr6BuE6RLyNYxz/WvK8ZblYdRjBD8awagp5nuf nM0cmGI8rhZw6AvRNkOqHELY0hGevlaC3XDiQuhVLo27zu3Ejhlni+xCyj3UyBwPFdU6 4msCGSbEdFNKR6D+OCT2J/u1pegeDfEoJwrloUeYdJR1VhJcvpty29EI1U24zyYPKZuv 3gadf9SIiXhf4Kw53JpJV7Sj3XRffz45cBdJsJObkwlQDYyLShFDd08rasNwU8RiJ4yz JMsShEZ3Vw2O/GJgWTz0/UzaPbJWBWuAo8VKAI1cXh8eODkvqeEM32axOb9JR9+DDWm3 0M5A== X-Gm-Message-State: AIkVDXJSjFMx7sKynth8Ne87xfSuOogtI4ULAtkHis7WZU51Pfi7+lERy7AaBAfETlhqxA== X-Received: by 10.98.48.134 with SMTP id w128mr76179313pfw.133.1483813086504; Sat, 07 Jan 2017 10:18:06 -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.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jan 2017 10:18:05 -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:50 -0800 Message-Id: <20170107181756.1944-3-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 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: Sat, 07 Jan 2017 18:18:08 -0000 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", 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