[spp] [PATCH 3/5] spp_nfv: ignore pipe PMD

Itsuro Oda oda at valinux.co.jp
Wed Feb 26 02:37:44 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 | 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



More information about the spp mailing list