Soft Patch Panel
 help / color / mirror / Atom feed
From: Itsuro Oda <oda@valinux.co.jp>
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH v2 3/5] spp_nfv: ignore pipe PMD
Date: Wed, 26 Feb 2020 16:06:08 +0900	[thread overview]
Message-ID: <20200226070610.3496-4-oda@valinux.co.jp> (raw)
In-Reply-To: <20200226070610.3496-1-oda@valinux.co.jp>

Because spp_nfv does not handle pipe PMDs, spp_nfv ignores them.

Signed-off-by: Itsuro Oda <oda@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


  parent reply	other threads:[~2020-02-26  7:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-26  1:37 [spp] [PATCH 0/5] REST API and CLI support for " Itsuro Oda
2020-02-26  1:37 ` [spp] [PATCH 1/5] shared: add PIPE port type Itsuro Oda
2020-02-26  1:37 ` [spp] [PATCH 2/5] primary: suport pipe PMD Itsuro Oda
2020-02-26  6:29   ` Yasufumi Ogawa
2020-02-26  1:37 ` [spp] [PATCH 3/5] spp_nfv: ignore " Itsuro Oda
2020-02-26  1:37 ` [spp] [PATCH 4/5] spp-ctl: enable add pipe port to the primary Itsuro Oda
2020-02-26  1:37 ` [spp] [PATCH 5/5] cli: support pipe PMD Itsuro Oda
2020-02-26  7:06 ` [spp] [PATCH v2 0/5] REST API and CLI support for " Itsuro Oda
2020-02-26  7:06   ` [spp] [PATCH v2 1/5] shared: add PIPE port type Itsuro Oda
2020-02-26  7:06   ` [spp] [PATCH v2 2/5] primary: suport pipe PMD Itsuro Oda
2020-02-26  7:06   ` Itsuro Oda [this message]
2020-02-26  7:06   ` [spp] [PATCH v2 4/5] spp-ctl: enable add pipe port to the primary Itsuro Oda
2020-02-26  7:06   ` [spp] [PATCH v2 5/5] cli: support pipe PMD Itsuro Oda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200226070610.3496-4-oda@valinux.co.jp \
    --to=oda@valinux.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    --cc=yasufum.o@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).