From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) by dpdk.org (Postfix) with ESMTP id 7C7387D77 for ; Fri, 25 Aug 2017 18:08:27 +0200 (CEST) Received: by mail-wr0-f177.google.com with SMTP id z91so765106wrc.1 for ; Fri, 25 Aug 2017 09:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=nvNE9PkBUL3RRsDrQlcUIC01hMqBTKBI4qV4whdNreI=; b=ICNiP5u2am4LjNJx9t+3jCWdzW/V0mow4cSZqW/K0xSin/Uu9LNVMxVotvd3yhTqpb Z+HX6QqKVPq2aS73zRqx3/GvJ1HqQ9y0dl7R70wEIh4VH2tyfj33sEpb8yRPDT6UdBPh 2iXsFhu+5/y/Bc6aED7vbhvYIia9S9vqAxuo/8ufOoAUW97MxuDh3GXMJE9pZ0eDzhcv z88FFQ1uicr4x04YeMEKg+xwrvE9xwSpg+pX97DKFcDRhKB3aQZhMq5ihd64tFkxGv7T IWyDBB1Vn6qJSuxuv3+6n3elU3vRgDidZuYJ+4F+eQd1lpFQ1+aBNvQQd0f6a+yzDT93 lMpQ== 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:in-reply-to:references; bh=nvNE9PkBUL3RRsDrQlcUIC01hMqBTKBI4qV4whdNreI=; b=lPlhdy3DzkQ5jl+p8cY+AGcwOU7GD3fgdmWvmvqIWuKzan+j2FKo5QqTXuxVY82aas HpV8bhoHVaJq9DozDr1jVVAXGLPY/X+edRa4STGzM9fUf4GXro/fyCcLFIYeEVNYPfIn WRIa9jLk1m2QSIkt1Tf/CmDIcwb3zBkabCeZ9xpJr57GalzWNdRRyZNd1D+vKa21vnKL jUcPI4lGp9BEcwz9zh8TmPEfQE88erd91evtbNkByoLh6hS1qCxGziZWZG+HXhnzn1DY 8UOrTN+0kso54jkvvFGBCj9DpPbYo5Sx8sR5g6Aft6YDVNuGbuAYcPLjrMcOA5p+A0RO 1GOA== X-Gm-Message-State: AHYfb5hoSNS5CwKWT2brMobvqcYC9DYxOQgD3S0mgZiHBA5dM9r4phWZ tInrnUcCGtzuDYDwRTU= X-Received: by 10.223.161.215 with SMTP id v23mr6169542wrv.191.1503677306887; Fri, 25 Aug 2017 09:08:26 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id h190sm1351661wmd.4.2017.08.25.09.08.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Aug 2017 09:08:26 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Fri, 25 Aug 2017 18:07:24 +0200 Message-Id: <41e9c872c9dc3a8d912f2fa7fff6435ad56fdb2b.1503676587.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 4/6] bus/pci: do not reference devargs_list 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: Fri, 25 Aug 2017 16:08:28 -0000 This list should not be used by drivers. Use the public API instead. Signed-off-by: Gaetan Rivet --- drivers/bus/pci/rte_pci_common.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/bus/pci/rte_pci_common.c b/drivers/bus/pci/rte_pci_common.c index 459ae42..c4a2131 100644 --- a/drivers/bus/pci/rte_pci_common.c +++ b/drivers/bus/pci/rte_pci_common.c @@ -75,12 +75,8 @@ static struct rte_devargs *pci_devargs_lookup(struct rte_pci_device *dev) { struct rte_devargs *devargs; struct rte_pci_addr addr; - struct rte_bus *pbus; - pbus = rte_bus_find_by_name("pci"); - TAILQ_FOREACH(devargs, &devargs_list, next) { - if (devargs->bus != pbus) - continue; + RTE_EAL_DEVARGS_FOREACH("pci", devargs) { devargs->bus->parse(devargs->name, &addr); if (!rte_eal_compare_pci_addr(&dev->addr, &addr)) return devargs; -- 2.1.4