From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 777EE1BA73 for ; Thu, 26 Oct 2017 00:39:30 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id l8so1422039wre.12 for ; Wed, 25 Oct 2017 15:39:30 -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=LQ1r/uFe+zOm4t/QfG5j+nVGP108QvhoUKPOYF7VCUA=; b=UtPFkgjrP7zXT/7IbyW66ud60PveYRnDnKYMIIKqn15c5ttns4LesZzoHlDhS8IfQp eGzeinwc8mJbGFFxN366FguXsmgPoC+qqkyMGSCkgO+KC0mqpMwtAs+3cqsGWq6tsq+U bPVOXFLMu8h2nxYwBUSrFYNjV6VsTZwVUNV/6mGfwC+z8G+TbJvnCxzzRkhUMotB5kKo yCZsN50503Xsq25NhAXsfqkorlOmyLQ34EbfXUrgmqu0VfsIOp6qgd57z2AsLnHb1OKY LmEQfMOBFFyqzvlAS/qbt3v5T1XuTmN5U7+m4Q4OBVZNVOrY6auhKA+Gi1HzoQCM0YWA +jSA== 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=LQ1r/uFe+zOm4t/QfG5j+nVGP108QvhoUKPOYF7VCUA=; b=S4vrZyESEsP+Ojwkogwuyki+RaXh2ryvKe9vL0hL2Hp/Hymz5Tm6Wbz3CGYGOrGEmI Yum6e+dOaXuy/NNLbgA3BYnxUZ+ngQotgoN/i07b/ZWy2arjK7DjUJ0+nizrQWZInWP2 zRgm+czkd2h2qAHs2qpW4squvE+8FjY5E5R2WGXu4mbY4q2XOnxgk4e6Nw666gCptwMU gyW3FX1SW8pUy5Rj6Mc1p4L+536o+0XMnIxbTgxrpIn/BD3bXz9lWKMeMogTKv1hxlo4 RyPzmUKc9Aun7P/5rESf6auASUV4ep2w4aQNmD5KERewyXrqSrdv+Vz5G1lHIDtbWICu rlOw== X-Gm-Message-State: AMCzsaUe/pR3hZSJ0x99N5bPP8fN61fFFFZv4c11LQr+tZYmemob/3mZ qqOyISPQXfIWZzCf4Ozzj1In1XUD X-Google-Smtp-Source: ABhQp+QYOKDRZIEtUXTEdAAM3yKs1DgKKZNd49zQzEyWf9VaTxvFlL9gnAayx2B0EKlel2nLpVEhBw== X-Received: by 10.223.147.39 with SMTP id 36mr3377615wro.175.1508971169746; Wed, 25 Oct 2017 15:39:29 -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 r63sm4466124wmg.13.2017.10.25.15.39.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Oct 2017 15:39:28 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 26 Oct 2017 00:38:39 +0200 Message-Id: <2dca84904f8fba8470883c42220c4f853ccd9c48.1508970254.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 v7 17/25] pci: use new PCI addr parsing function 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: Wed, 25 Oct 2017 22:39:30 -0000 Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_common_pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c index bf8a96c..0a51dd8 100644 --- a/lib/librte_eal/common/eal_common_pci.c +++ b/lib/librte_eal/common/eal_common_pci.c @@ -595,8 +595,7 @@ pci_parse(const char *name, void *addr) struct rte_pci_addr pci_addr; bool parse; - parse = (eal_parse_pci_BDF(name, &pci_addr) == 0 || - eal_parse_pci_DomBDF(name, &pci_addr) == 0); + parse = (rte_pci_addr_parse(name, &pci_addr) == 0); if (parse && addr != NULL) *out = pci_addr; return parse == false; -- 2.1.4