Soft Patch Panel
 help / color / mirror / Atom feed
From: ogawa.yasufumi@lab.ntt.co.jp
To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH 2/6] spp-ctl: update spp_pcap opts for validation
Date: Thu, 14 Feb 2019 11:47:22 +0900	[thread overview]
Message-ID: <20190214024726.40861-3-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <20190214024726.40861-1-ogawa.yasufumi@lab.ntt.co.jp>

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

This patch is to update `APP_OPTS` used for validation for modified
options.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 src/spp-ctl/spp_proc.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/spp-ctl/spp_proc.py b/src/spp-ctl/spp_proc.py
index a2d2adf..cdd7b49 100644
--- a/src/spp-ctl/spp_proc.py
+++ b/src/spp-ctl/spp_proc.py
@@ -82,10 +82,10 @@ APP_OPTS = {
         'spp_pcap':
         [
             '--client-id',  # sec ID
-            '-s',  # address nd port
-            '-i',
-            '--output',
-            '--limit_file_size'
+            '-s',  # address and port
+            '-c',  # captured port
+            '--out-dir',  # captured file dir
+            '--fsize'  # max size of captured file
             ]}
 
 
@@ -332,8 +332,9 @@ class PrimaryProc(SppProc):
                     if (val is not None) and (val != ''):
                         app_opts.append(str(val))
 
-        query = "launch {} {} {} -- {}".format(
-                sec_id, proc_name, ' '.join(eal_opts), ' '.join(app_opts))
+        query = "launch {sid} {pname} {eal} -- {app}".format(
+                sid=sec_id, pname=proc_name, eal=' '.join(eal_opts),
+                app=' '.join(app_opts))
 
         LOG.info("Query: {}".format(query))
 
-- 
2.17.1

  parent reply	other threads:[~2019-02-14  2:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-14  2:47 [spp] [PATCH 0/6] Update for spp_pcap ogawa.yasufumi
2019-02-14  2:47 ` [spp] [PATCH 1/6] spp_pcap: refactor app options ogawa.yasufumi
2019-02-14  2:47 ` ogawa.yasufumi [this message]
2019-02-14  2:47 ` [spp] [PATCH 3/6] controller: remove local default config ogawa.yasufumi
2019-02-14  2:47 ` [spp] [PATCH 4/6] controller: add pcap support for pri completion ogawa.yasufumi
2019-02-14  2:47 ` [spp] [PATCH 5/6] spp_pcap: refactor name of funcs and vars ogawa.yasufumi
2019-02-14  2:47 ` [spp] [PATCH 6/6] makefile: update dist-clean task ogawa.yasufumi

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=20190214024726.40861-3-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).