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 BB90737B0 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 ED0337E982; 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 OdPCCvlaTR3G; 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 CC6947E97C; 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:17 +0900 Message-Id: <20180619113720.8336-5-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 4/7] spp_vf: 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/vf/spp_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vf/spp_vf.c b/src/vf/spp_vf.c index fb45b83..32f25fd 100644 --- a/src/vf/spp_vf.c +++ b/src/vf/spp_vf.c @@ -774,7 +774,7 @@ set_nic_interface(void) int nic_cnt = 0; /* NIC Setting */ - g_iface_info.num_nic = rte_eth_dev_count(); + g_iface_info.num_nic = rte_eth_dev_count_avail(); if (g_iface_info.num_nic > RTE_MAX_ETHPORTS) g_iface_info.num_nic = RTE_MAX_ETHPORTS; -- 2.15.1 (Apple Git-101)