From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id E0F7B1B224 for ; Thu, 12 Oct 2017 12:46:21 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id q132so12123405wmd.2 for ; Thu, 12 Oct 2017 03:46:21 -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=Xlr/WmQaZ2Xp6u1UZMw0vUwSED/tqn0FiZpi/3Iy/So=; b=WVwdw+m0gl2bgPwuniBGAOif0PRH4/Q1OZeB1Q6TXnp0ctaPUaHECgauL+Ag9nSQbN CRIj+KyOCLwRbyAl7wBNraTUFhV6NJ6XkFMqHTzdFtYaTMMaSR1S1ka3TTHgYKxbK998 /RJ/qd6xTHtxGv6foxtL2FeLLP33lalOYipP6ijsHO8IBT4TkzR6UbqhR9TWuYEffR82 8Lp82LUqaRYZCotr9+8diqAYj+iCUp6YaGxx11eLSL7YAgHLAW5SWkDZ/Jq+kklkIMBc ODs62G2tQTY19yt9pKxYENZgAps75yQTm4g771QkYRHEhBeAEW97b2sbRfDEblGjF9Ui GCOA== 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=Xlr/WmQaZ2Xp6u1UZMw0vUwSED/tqn0FiZpi/3Iy/So=; b=Z7qwmDVQcaMNj/7A8L8VdV6FZYhlVpNiBl4PGKsrYxV+QtIVSrwVQqd0QXhrgZxf6i xwILl0z2K5Quo9kLxlWNeD0eRk0WOvhLU+2teVWD0Mu5G9sY+7Au+tWktJqM8hCOogbK Wu0lok6lF4a3wOqbV4LN2k++NwSOv7y2/P2QouzsdHAU9DrUgKL4s9XkDpyvJ4qkAev9 kuwAXM/gL6KCyTqDOCmIrcgv8JKbLhS6pHSciDBnY7t7D5V/50+W92V4TP8Hhy23nCUz 89S6k2iRLE2rRECZxy1hy1yGu3YOBeEYiykPKZYzYT/brNznf4DYm8wzSoO2+ezVfLck 0s0w== X-Gm-Message-State: AMCzsaUBIIq2AH0r3nWV3NTCGWCRvHGVEQtp0K4eu8gP9D8V7LjyDxbj uYcYhVoBvAJvHPJ41cqvTqRSH5qa X-Google-Smtp-Source: AOwi7QA5XtlFpqSTZa9YK8uDoIT/rf8bzXvvUHcoERtYNjJCRi0Ao0WhuPpILdfckGSMqSRESybAvg== X-Received: by 10.28.133.12 with SMTP id h12mr1792173wmd.148.1507805181260; Thu, 12 Oct 2017 03:46:21 -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 z192sm16481146wmz.28.2017.10.12.03.46.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Oct 2017 03:46:20 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 12 Oct 2017 12:45:42 +0200 Message-Id: <5918da7315102dbd85ba3aa408a88ad24df51cd9.1507804944.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 v5 15/20] bus/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: Thu, 12 Oct 2017 10:46:22 -0000 Signed-off-by: Gaetan Rivet --- drivers/bus/pci/pci_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c index cd95d1a..d7a1c05 100644 --- a/drivers/bus/pci/pci_common.c +++ b/drivers/bus/pci/pci_common.c @@ -437,8 +437,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 = (pci_addr_parse(name, &pci_addr) == 0); if (parse && addr != NULL) *out = pci_addr; return parse == false; -- 2.1.4