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 A68B11B49C for ; Tue, 9 Oct 2018 12:54:08 +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 w99As78e017853; Tue, 9 Oct 2018 19:54:07 +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 52819125; Tue, 9 Oct 2018 19:54:07 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id 3C850119; Tue, 9 Oct 2018 19:54:07 +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:53:54 +0900 Message-Id: <20181009105400.42817-1-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 X-TM-AS-MML: disable Subject: [spp] [PATCH 0/6] Fix bug of assigning ports 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:54:09 -0000 From: Yasufumi Ogawa This series of patches is to fix the error for adding, deleting and patching incorrect ports which is cannot craete or does not exist. To fix the bug, correct determining the existing port with parse_resource_uid(). One of the reasons for the bug is that is imcomplete to catch up with changing to uint16_t for port_id and Some of checking port_id are incorrect. This update is to correct the bug of managing ports, and also refactor log messages for add, del and patch commands. Yasufumi Ogawa (6): spp_nfv: fix bug of do_del if port does not exist spp_nfv: refactor log of patch command spp_vm: fix bug of do_del if port does not exist spp_vm: fix to use uint16_t port_id in do_add spp_vm: correct error handling if patch cmd failed spp_vm: refactor log of patch command src/nfv/nfv.c | 98 ++++++++++++++++++++++++++++++++++++++++---------------- src/vm/main.c | 101 ++++++++++++++++++++++++++++++++++++++++++---------------- 2 files changed, 144 insertions(+), 55 deletions(-) -- 2.7.4