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 13FF85699 for ; Wed, 21 Nov 2018 08:01:21 +0100 (CET) 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 wAL71Kf4012570; Wed, 21 Nov 2018 16:01:20 +0900 Received: (from root@localhost) by gwchk03.silk.ntt-tx.co.jp (unknown) id wAL71KRW031850; Wed, 21 Nov 2018 16:01:20 +0900 Received: from gwchk.silk.ntt-tx.co.jp [10.107.0.110] by gwchk03.silk.ntt-tx.co.jp with ESMTP id RAA28648; Wed, 21 Nov 2018 15:52:20 +0900 Received: from imss04.silk.ntt-tx.co.jp (localhost [127.0.0.1]) by imss04.silk.ntt-tx.co.jp (unknown) with ESMTP id wAL6qKjO011049; Wed, 21 Nov 2018 15:52:20 +0900 Received: from mgate01.silk.ntt-tx.co.jp (smtp02.silk.ntt-tx.co.jp [10.107.0.37]) by imss04.silk.ntt-tx.co.jp (unknown) with ESMTP id wAL6qKRn011045; Wed, 21 Nov 2018 15:52:20 +0900 Message-Id: <201811210652.wAL6qKRn011045@imss04.silk.ntt-tx.co.jp> Received: from localhost by mgate01.silk.ntt-tx.co.jp (unknown) id wAL6qJ5N008934 ; Wed, 21 Nov 2018 15:52:19 +0900 From: x-fn-spp@sl.ntt-tx.co.jp To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Cc: spp@dpdk.org Date: Wed, 21 Nov 2018 15:52:13 +0900 X-Mailer: git-send-email 2.18.0 In-Reply-To: <201811070507.wA757WWo008866@imss03.silk.ntt-tx.co.jp> References: <201811070507.wA757WWo008866@imss03.silk.ntt-tx.co.jp> X-TM-AS-MML: No Subject: [spp] [PATCH v2 0/6] Replace deprecated APIs 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: Wed, 21 Nov 2018 07:01:22 -0000 From: Hideyuki Yamashita >>From DPDK 18.08, following APIs become deprecated and will be deleted in 18.11. - rte_eth_dev_attach() - rte_eth_dev_detach() It is recommended to use followings. - rte_eth_dev_attach() should be replaced by rte_eal_hotplug_add(). - rte_eth_dev_detach() should be replaced by rte_eal_hotplug_remove(). This series of patches is to update for the changes. - Add dev_attach_by_devargs() as replacement of rte_eth_dev_attach(). This function calls rte_eal_hotplug_add() to hotplug device for given name "devargs",and returns newly allocated dpdk port_id. - Add dev_detach_by_port_id() as replacement of rte_eth_dev_detach(). This function calls rte_eal_hotplug_remove() to detach device for given port_id. - Replace rte_eth_dev_attach() in spp_nfv and spp_vf with dev_attach_by_devargs(). - Replace rte_eth_dev_attach() in spp_nfv and spp_vf with dev_detach_by_port_id(). Hideyuki Yamashita (6): shared: add dev_attach_by_devargs spp_nfv: replace deprecated rte_eth_dev_attach spp_vf: replace deprecated rte_eth_dev_attach shared: add dev_detach_by_port_id spp_nfv: replace deprecated rte_eth_dev_detach spp_vm: replace deprecated rte_eth_dev_detach src/nfv/nfv.c | 18 +++++-------- src/shared/common.c | 64 +++++++++++++++++++++++++++++++++++++++++++++ src/shared/common.h | 29 ++++++++++++++++++++ src/vf/spp_vf.c | 4 +-- src/vm/main.c | 4 +-- 5 files changed, 102 insertions(+), 17 deletions(-) -- 2.18.0