From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bcmv-tmail01.ecl.ntt.co.jp (bcmv-tmail01.ecl.ntt.co.jp [124.146.185.148]) by dpdk.org (Postfix) with ESMTP id B052A1B4C6 for ; Tue, 9 Oct 2018 12:48:58 +0200 (CEST) Received: from bcmv-ns01.ecl.ntt.co.jp (bcmv-ns01.ecl.ntt.co.jp [129.60.83.123]) by bcmv-tmail01.ecl.ntt.co.jp (8.14.4/8.14.4) with ESMTP id w99Amu9I017768; Tue, 9 Oct 2018 19:48:56 +0900 Received: from bcmv-ns01.ecl.ntt.co.jp (localhost [127.0.0.1]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id AC43C125; Tue, 9 Oct 2018 19:48:56 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id 958DC119; Tue, 9 Oct 2018 19:48:56 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Tue, 9 Oct 2018 19:48:43 +0900 Message-Id: <20181009104847.42502-1-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 X-TM-AS-MML: disable Subject: [spp] [PATCH 0/4] Port management with resource UID 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, 09 Oct 2018 10:48:59 -0000 From: Yasufumi Ogawa Resource UID (called resource ID previously) consists of port type and port ID was introduced to specify a port. For example, users can patch ports as following. spp > sec 1; patch phy:0 ring:0 # instead of 'patch 0 1' However, add and del commands are still remained using old style of resource UID. spp > sec 1; add ring 0 # should be updated to 'add ring:0' This series of patches is to update the usage of resource UID. * Add a common function parse_resource_uid() to extract port type and ID from resource UID. * Update spp_nfv and spp_vm to use parse_resource_uid(). * Update add and del command in SPP controller to use the latest style of resource UID. Yasufumi Ogawa (4): shared: add parsing resource UID spp_nfv: change to use parse_resource_uid spp_vm: change to use parse_resource_uid controller: unify accepting resource UID format src/controller/shell.py | 16 ++++-- src/nfv/nfv.c | 143 ++++++++++++++---------------------------------- src/shared/common.c | 24 ++++++++ src/shared/common.h | 1 + src/vm/main.c | 103 ++++++++++------------------------ 5 files changed, 104 insertions(+), 183 deletions(-) -- 2.7.4