[spp] [PATCH v2 3/5] spp_nfv: ignore pipe PMD
Itsuro Oda
oda at valinux.co.jp
Wed Feb 26 08:06:08 CET 2020
Because spp_nfv does not handle pipe PMDs, spp_nfv ignores them.
Signed-off-by: Itsuro Oda <oda at valinux.co.jp>
---
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
More information about the spp
mailing list