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 0E06FA055E for ; Wed, 26 Feb 2020 02:37:50 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7896E1BFAC; Wed, 26 Feb 2020 02:37:49 +0100 (CET) Received: from valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by dpdk.org (Postfix) with ESMTP id C20D31BFAC for ; Wed, 26 Feb 2020 02:37:47 +0100 (CET) Received: by valinux.co.jp (Postfix, from userid 1000) id E743E24087F; Wed, 26 Feb 2020 10:37:46 +0900 (JST) From: Itsuro Oda To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com Date: Wed, 26 Feb 2020 10:37:44 +0900 Message-Id: <20200226013746.2875-4-oda@valinux.co.jp> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200226013746.2875-1-oda@valinux.co.jp> References: <20200226013746.2875-1-oda@valinux.co.jp> Subject: [spp] [PATCH 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 | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nfv/main.c b/src/nfv/main.c index f2c6bfc..f0ad17d 100644 --- a/src/nfv/main.c +++ b/src/nfv/main.c @@ -211,7 +211,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 3947a84..33fecd4 100644 --- a/src/nfv/nfv_status.c +++ b/src/nfv/nfv_status.c @@ -119,6 +119,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 undefined ? */ sprintf(str + strlen(str), "\"udf\","); @@ -211,6 +213,8 @@ append_patch_info_json(char *str, "\"memif:%u\",", port_map[i].id); break; + case PIPE: + break; case UNDEF: RTE_LOG(INFO, SHARED, "Type: UDF\n"); /* TODO(yasufum) Need to remove print for undefined ? */ @@ -273,6 +277,8 @@ append_patch_info_json(char *str, "\"memif:%u\"", port_map[j].id); break; + case PIPE: + break; case UNDEF: RTE_LOG(INFO, SHARED, "Type: UDF\n"); /* -- 2.17.1