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 5/8] tools/sppc: update app launcer for custom SPP repo
Date: Mon,  1 Oct 2018 14:01:45 +0900	[thread overview]
Message-ID: <20181001050148.77373-6-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <20181001050148.77373-1-ogawa.yasufumi@lab.ntt.co.jp>

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

To launch executable in custom repo, change the path from absolute
path to just filename. Path of the file is defined as PATH in each
of Dockerfiles and no need to use absolute path by previous change.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 tools/sppc/app/spp-nfv.py     | 5 +----
 tools/sppc/app/spp-primary.py | 5 +----
 tools/sppc/app/spp-vm.py      | 5 +----
 3 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/tools/sppc/app/spp-nfv.py b/tools/sppc/app/spp-nfv.py
index cdb61a8..6506fed 100755
--- a/tools/sppc/app/spp-nfv.py
+++ b/tools/sppc/app/spp-nfv.py
@@ -79,10 +79,7 @@ def main():
         docker_run_opt = '-it'
 
     # Setup spp_nfv command.
-    cmd_path = '%s/../spp/src/nfv/%s/spp_nfv' % (
-        env.RTE_SDK, env.RTE_TARGET)
-
-    spp_cmd = [cmd_path, '\\']
+    spp_cmd = ['spp_nfv', '\\']
 
     # Do not use 'app_helper.setup_eal_opts()' because spp_nfv does
     # not use virtio.
diff --git a/tools/sppc/app/spp-primary.py b/tools/sppc/app/spp-primary.py
index a3fc9f8..6a004f6 100755
--- a/tools/sppc/app/spp-primary.py
+++ b/tools/sppc/app/spp-primary.py
@@ -106,10 +106,7 @@ def main():
         container_image, '\\']
 
     # Setup spp primary command.
-    cmd_path = '%s/../spp/src/primary/%s/spp_primary' % (
-        env.RTE_SDK, env.RTE_TARGET)
-
-    spp_cmd = [cmd_path, '\\']
+    spp_cmd = ['spp_primary', '\\']
 
     # Do not use 'app_helper.setup_eal_opts()' because spp_primary does
     # not use virtio vdev but TAP or vhost, which should be added manually.
diff --git a/tools/sppc/app/spp-vm.py b/tools/sppc/app/spp-vm.py
index 864ec61..d590253 100755
--- a/tools/sppc/app/spp-vm.py
+++ b/tools/sppc/app/spp-vm.py
@@ -75,10 +75,7 @@ def main():
         common.error_exit('SPP_CTRL_IP')
 
     # Setup spp_vm command.
-    cmd_path = '%s/../spp/src/vm/%s/spp_vm' % (
-        env.RTE_SDK, env.RTE_TARGET)
-
-    spp_cmd = [cmd_path, '\\']
+    spp_cmd = ['spp_vm', '\\']
 
     file_prefix = 'spp-l2fwd-container%d' % dev_ids_list[0]
     eal_opts = app_helper.setup_eal_opts(args, file_prefix)
-- 
2.7.4

  parent reply	other threads:[~2018-10-01  5:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-01  5:01 [spp] [PATCH 0/8] Build image with custom repo name ogawa.yasufumi
2018-10-01  5:01 ` [spp] [PATCH 1/8] tools/sppc: build image with custom git repo ogawa.yasufumi
2018-10-01  5:01 ` [spp] [PATCH 2/8] tools/sppc: dockerfile for custom SPP repo ogawa.yasufumi
2018-10-01  5:01 ` [spp] [PATCH 3/8] tools/sppc: dockerfile for custom Pktgen repo ogawa.yasufumi
2018-10-01  5:01 ` [spp] [PATCH 4/8] tools/sppc: add paths to Dockerfiles of SPP ogawa.yasufumi
2018-10-01  5:01 ` ogawa.yasufumi [this message]
2018-10-01  5:01 ` [spp] [PATCH 6/8] tools/sppc: add workdir docker option ogawa.yasufumi
2018-10-01  5:01 ` [spp] [PATCH 7/8] tools/sppc: add paths to Dockerfiles of pktgen ogawa.yasufumi
2018-10-01  5:01 ` [spp] [PATCH 8/8] tools/sppc: update launcer for custom pktgen repo 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=20181001050148.77373-6-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).