From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BB884A055E for ; Wed, 26 Feb 2020 08:06:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 522D11BFB2; Wed, 26 Feb 2020 08:06:13 +0100 (CET) Received: from valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by dpdk.org (Postfix) with ESMTP id B289B1BFB2 for ; Wed, 26 Feb 2020 08:06:11 +0100 (CET) Received: by valinux.co.jp (Postfix, from userid 1000) id E01F424087F; Wed, 26 Feb 2020 16:06:10 +0900 (JST) From: Itsuro Oda To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com Date: Wed, 26 Feb 2020 16:06:08 +0900 Message-Id: <20200226070610.3496-4-oda@valinux.co.jp> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200226070610.3496-1-oda@valinux.co.jp> References: <20200226013746.2875-1-oda@valinux.co.jp> <20200226070610.3496-1-oda@valinux.co.jp> Subject: [spp] [PATCH v2 3/5] spp_nfv: ignore pipe PMD 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: , Errors-To: spp-bounces@dpdk.org Sender: "spp" Because spp_nfv does not handle pipe PMDs, spp_nfv ignores them. Signed-off-by: Itsuro Oda --- src/nfv/main.c | 2 +- src/nfv/nfv_status.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/nfv/main.c b/src/nfv/main.c index 32f1074..2b76672 100644 --- a/src/nfv/main.c +++ b/src/nfv/main.c @@ -212,7 +212,7 @@ main(int argc, char *argv[]) if (port_type == PHY) { port_id = nof_phy_port; nof_phy_port++; - } else if (port_type == VHOST) + } else if (port_type == VHOST || port_type == PIPE) continue; /* NOTE: vhost may be used another process. even if no * process uses, it is necessary to "add vhost" explicitly. diff --git a/src/nfv/nfv_status.c b/src/nfv/nfv_status.c index d5d7f44..134fb3f 100644 --- a/src/nfv/nfv_status.c +++ b/src/nfv/nfv_status.c @@ -125,6 +125,8 @@ append_port_info_json(char *str) sprintf(str + strlen(str), "\"memif:%u\",", port_map[i].id); break; + case PIPE: + break; case UNDEF: /* * TODO(yasufum) Need to remove print for @@ -189,6 +191,9 @@ append_port_string(char *str, enum port_type port_type, sprintf(str, "\"memif:%u\"", port_id); break; + case PIPE: + break; + case UNDEF: RTE_LOG(INFO, SHARED, "Type: UDF\n"); /* TODO(yasufum) Need to remove print for undefined ? */ -- 2.17.1