From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mogw0516.ocn.ad.jp (mogw0516.ocn.ad.jp [118.23.178.158]) by dpdk.org (Postfix) with ESMTP id 14C6B2BE5 for ; Mon, 12 Mar 2018 06:35:33 +0100 (CET) Received: from mf-smf-ucb026c1 (mf-smf-ucb026c1.ocn.ad.jp [153.153.66.166]) by mogw0516.ocn.ad.jp (Postfix) with ESMTP id 76228482D5; Mon, 12 Mar 2018 14:35:31 +0900 (JST) Received: from ntt.pod01.mv-mta-ucb026 ([153.149.142.100]) by mf-smf-ucb026c1 with ESMTP id vG7NelTPZPEygvG7PeSc1L; Mon, 12 Mar 2018 14:35:31 +0900 Received: from smtp.ocn.ne.jp ([153.149.227.165]) by ntt.pod01.mv-mta-ucb026 with id LtbX1x0093akymp01tbX8u; Mon, 12 Mar 2018 05:35:31 +0000 Received: from linaloe.flets-east.jp (sp1-66-103-93.msc.spmode.ne.jp [1.66.103.93]) by smtp.ocn.ne.jp (Postfix) with ESMTPA; Mon, 12 Mar 2018 14:35:31 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com Cc: Yasufumi Ogawa Date: Mon, 12 Mar 2018 14:35:15 +0900 Message-Id: <1520832924-28387-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 In-Reply-To: <8b08be87-6b64-8a4a-53e0-29269011d81c@lab.ntt.co.jp> References: <8b08be87-6b64-8a4a-53e0-29269011d81c@lab.ntt.co.jp> Subject: [spp] [PATCH 0/9] Update port management 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: Mon, 12 Mar 2018 05:35:33 -0000 From: Yasufumi Ogawa To fix the problem of unexpected port ID, change assigning ports with from port ID to resource ID as described below. spp > sec 1;patch phy:0 ring:0 Secondary's status message is changed from spp > sec 1;status port_id:0,on,PHY,outport:none port_id:1,on,PHY,outport:none port_id:2,on,RING(0),outport:none to be more simplified YAML like style. spp > sec 1;status status: idling ports: - 'phy:0 -> ring:0' - 'phy:1' - 'ring:0 -> phy:1' topo and topo_subgraph commands are also updated for this changes. controller: change displaying status shared: update print_active_ports spp_nfv: change format displaying status spp_vm: change format displaying status controller: add delimiter for topo command controller: update Shell for topo_subgraph controller: update generating graph controller: update topo command shared: fix bug for print port status src/controller/conn_thread.py | 4 +- src/controller/shell.py | 61 +++++++++-- src/controller/spp_common.py | 3 + src/controller/topo.py | 246 ++++++++++++++++++++++-------------------- src/nfv/nfv.c | 6 +- src/shared/common.c | 84 +++++++++++---- src/shared/common.h | 2 +- src/vm/main.c | 7 +- 8 files changed, 260 insertions(+), 153 deletions(-) -- 2.7.4