From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail04.ics.ntt-tx.co.jp (mail05.ics.ntt-tx.co.jp [210.232.35.69]) by dpdk.org (Postfix) with ESMTP id CFFDC5F2D for ; Thu, 20 Sep 2018 10:47:09 +0200 (CEST) Received: from gwchk03.silk.ntt-tx.co.jp (gwchk03.silk.ntt-tx.co.jp [10.107.0.111]) by mail04.ics.ntt-tx.co.jp (unknown) with ESMTP id w8K8l7jo016890 for unknown; Thu, 20 Sep 2018 17:47:07 +0900 Received: (from root@localhost) by gwchk03.silk.ntt-tx.co.jp (unknown) id w8K8l71P014737 for unknown; Thu, 20 Sep 2018 17:47:07 +0900 Received: from gwchk.silk.ntt-tx.co.jp [10.107.0.110] by gwchk03.silk.ntt-tx.co.jp with ESMTP id TAA14736; Thu, 20 Sep 2018 17:47:07 +0900 Received: from imss06.silk.ntt-tx.co.jp (localhost [127.0.0.1]) by ccmail04.silk.ntt-tx.co.jp (unknown) with ESMTP id w8K8l73g031133 for unknown; Thu, 20 Sep 2018 17:47:07 +0900 Received: from imss06.silk.ntt-tx.co.jp (localhost [127.0.0.1]) by imss06.silk.ntt-tx.co.jp (unknown) with ESMTP id w8K8l7IX028523 for unknown; Thu, 20 Sep 2018 17:47:07 +0900 Received: from ccmail04 (smtp03.silk.ntt-tx.co.jp [10.107.0.135]) by imss06.silk.ntt-tx.co.jp (unknown) with SMTP id w8K8l7Vw028520 for unknown; Thu, 20 Sep 2018 17:47:07 +0900 Date: Thu, 20 Sep 2018 17:46:37 +0900 From: Hideyuki Yamashita MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Mailer: Becky! ver. 2.74 [ja] X-CCMail7: CC-Mail-V7.0.2-Client-Relayed Message-Id: <201809200846.w8K8kbJW030890@ccmail04.silk.ntt-tx.co.jp> X-TM-AS-MML: No X-CC-Mail-RelayStamp: CC-Mail-V5.14-Server To: dev@dpdk.org Subject: [dpdk-dev] How to replace rte_eth_dev_attach with rte_eal_hotplug_add 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, 20 Sep 2018 08:47:10 -0000 Hello, =46rom dpdk 18.08 release rte_eth_dev_attach and=20 rte_eth_dev_detach becom deprecated API and=20 it is recommended to replace with rte_eal_hotplug_add and rte_eal_hotplug_remove. My program uses above mentioned deprecated APIs and have to replace those. Note that my program uses attach to attach vhost, pcap pmd. My question is whether it is correct to replace those as following: find rte_eth_dev_attach function in rte_ethdev.c and migrate those content into my program. e.g.=20 lib/librte_ethdev/rte_ethdev.c line 643-686 for attach lib/librte_ethdev/rte_ethdev.c line 690-720 for detach Your advice/guidance are much appreciated. Thanks! BR, Hideyuki Yamashita ----------------------------------------- Hideyuki Yamashita NTT TechnoCross -----------------------------------------