DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/2] testpmd load cmdline commands from file
@ 2017-03-31 19:13 Allain Legacy
  2017-03-31 19:13 ` [dpdk-dev] [PATCH 1/2] app/testpmd: load cmdline commands from file at startup Allain Legacy
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Allain Legacy @ 2017-03-31 19:13 UTC (permalink / raw)
  To: jingjing.wu; +Cc: dev

Enhancing test-pmd to be able to load CLI commands from file both at
runtime and at startup.  Usually the number of commands to run is small
enough that a simple cut-n-paste does the trick, but while testing the flow
API it was necessary to load several hundred commands and cut-n-paste could
not keep up.

I started with adding support to load the commands at startup
(--cmdline-file=/home/ubuntu/somefile.txt), but then realized that I needed
to remove/re-add commands at runtime so I added CLI commands to take care
of that aspect as well ("testpmd> load /home/ubuntu/somefile.txt")

I thought of removing the startup command support since the same could be
accomplished by using the new "load" command once the process starts up,
but then I realized that it may be useful for someone using non-interactive
mode.

I am open to the idea of squashing both commits together if necessary.


Allain Legacy (2):
  app/testpmd: load cmdline commands on startup
  app/testpmd: load cmdline commands at runtime

 app/test-pmd/cmdline.c    | 56 +++++++++++++++++++++++++++++++++++++++++++++++
 app/test-pmd/parameters.c | 10 +++++++++
 app/test-pmd/testpmd.c    |  4 ++++
 app/test-pmd/testpmd.h    |  2 ++
 4 files changed, 72 insertions(+)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-01 14:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-31 19:13 [dpdk-dev] [PATCH 0/2] testpmd load cmdline commands from file Allain Legacy
2017-03-31 19:13 ` [dpdk-dev] [PATCH 1/2] app/testpmd: load cmdline commands from file at startup Allain Legacy
2017-04-25  9:43   ` Wu, Jingjing
2017-03-31 19:13 ` [dpdk-dev] [PATCH 2/2] app/testpmd: load cmdline commands from file at runtime Allain Legacy
2017-04-25  9:47   ` Wu, Jingjing
2017-05-01 14:08 ` [dpdk-dev] [PATCH 0/2] testpmd load cmdline commands from file Thomas Monjalon

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).