app/testpmd: load commands from file at startup
authorAllain Legacy <allain.legacy@windriver.com>
Fri, 31 Mar 2017 19:13:19 +0000 (15:13 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 May 2017 14:00:37 +0000 (16:00 +0200)
commit81ef862b51dc416217ca4ac1d0bf894a0baec9cc
tree4acffa5e08bab87266b271f4a3ac4a9ed6e59a9b
parente25e6c70fb56aebc114f32ef4563163b43d168b1
app/testpmd: load commands from file at startup

Adds support to testpmd to load a set of cmdline CLI commands at startup.
This can be helpful when needing to cut-n-paste many commands each time
testpmd is restarted.  This option will work in both interactive and
non-interactive modes.

   ./testpmd -n4 -c3 ... -- --cmdline-file=/home/ubuntu/somefile.txt

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
app/test-pmd/cmdline.c
app/test-pmd/parameters.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
doc/guides/testpmd_app_ug/testpmd_funcs.rst