From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH] spp-ctl: fix bug of adding pcap and nullpmd PMDs
Date: Thu, 15 Nov 2018 23:00:05 +0900 [thread overview]
Message-ID: <1542290405-25029-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> (raw)
From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Spp-ctl does not support to add pcap and nullpmd PMDs of spp_nfv. It
cause an error if the PMD is added to spp_nfv because spp-ctl does not
have them in the list of PMDs for checking. This update is to add pcap
and nullpmd to the list.
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Reported-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
---
src/spp-ctl/spp_webapi.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spp-ctl/spp_webapi.py b/src/spp-ctl/spp_webapi.py
index 49ef971..48cc1c4 100644
--- a/src/spp-ctl/spp_webapi.py
+++ b/src/spp-ctl/spp_webapi.py
@@ -50,7 +50,7 @@ class BaseHandler(bottle.Bottle):
def _validate_port(self, port):
try:
if_type, if_num = port.split(":")
- if if_type not in ["phy", "vhost", "ring"]:
+ if if_type not in ["phy", "vhost", "ring", "pcap", "nullpmd"]:
raise
int(if_num)
except:
--
2.7.4
reply other threads:[~2018-11-15 14:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1542290405-25029-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp \
--to=ogawa.yasufumi@lab.ntt.co.jp \
--cc=ferruh.yigit@intel.com \
--cc=spp@dpdk.org \
/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).