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 BDA3837B4 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 D05437E97E; 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 s1kibsIGK34W; 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 AF82C7E96E; 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:16 +0900 Message-Id: <20180619113720.8336-4-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 3/7] spp_vm: 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/vm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/init.c b/src/vm/init.c index fb9b7ec..7714b56 100644 --- a/src/vm/init.c +++ b/src/vm/init.c @@ -102,7 +102,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 */ mz = rte_memzone_lookup(MZ_PORT_INFO); -- 2.15.1 (Apple Git-101)