From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gmobb.jp (smtpbb012.gmobb.jp [157.7.156.159]) by dpdk.org (Postfix) with ESMTP id B882537A6 for ; Tue, 19 Jun 2018 13:37:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by smtp.gmobb.jp (Postfix) with ESMTP id B3A6B7E970; Tue, 19 Jun 2018 20:37:32 +0900 (JST) X-Virus-Scanned: amavisd-new at gmoserver.jp Received: from smtp.gmobb.jp ([127.0.0.1]) by localhost (smtp.gmoserver.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8zeicZNya19d; Tue, 19 Jun 2018 20:37:32 +0900 (JST) Received: from localhost.localdomain (unknown [192.47.164.146]) by smtp.gmobb.jp (Postfix) with ESMTPA id 905B47E96A; Tue, 19 Jun 2018 20:37:32 +0900 (JST) From: Kenta Shinohara To: spp@dpdk.org, ferruh.yigit@intel.com Cc: Kenta Shinohara Date: Tue, 19 Jun 2018 20:37:15 +0900 Message-Id: <20180619113720.8336-3-shinohara.kenta@lab.ntt.co.jp> X-Mailer: git-send-email 2.15.1 (Apple Git-101) In-Reply-To: <20180619113720.8336-1-shinohara.kenta@lab.ntt.co.jp> References: <20180619113720.8336-1-shinohara.kenta@lab.ntt.co.jp> Subject: [spp] [PATCH 2/7] spp_primary: fix deprecated use of rte_eth_dev_count X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2018 11:37:35 -0000 This patch is same as previous one. Signed-off-by: Kenta Shinohara --- src/primary/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/primary/init.c b/src/primary/init.c index 2630783..5c9f15c 100644 --- a/src/primary/init.c +++ b/src/primary/init.c @@ -145,7 +145,7 @@ init(int argc, char *argv[]) argv += retval; /* get total number of ports */ - total_ports = rte_eth_dev_count(); + total_ports = rte_eth_dev_count_avail(); /* set up array for port data */ if (rte_eal_process_type() == RTE_PROC_SECONDARY) { -- 2.15.1 (Apple Git-101)