app/testpmd: add port reset command
authorWei Dai <wei.dai@intel.com>
Sun, 23 Jul 2017 09:15:12 +0000 (17:15 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 13 Sep 2017 21:08:11 +0000 (23:08 +0200)
commit97f1e196799f5664a2f677f789fbe06e1d5ab87a
treea61b6d57ab7d6e2537382aee851303d979d1d3cd
parentc162832a09a12c974b8d0cbef723bd5930dfd393
app/testpmd: add port reset command

When PF is reset, a message will show it and all its
VF need to be reset.
User can run the command "port reset port_id"
to reset the VF port and to keep same port id without
any configuration. Then user can run "port stop port_id"
and "port start port_id" to reconfigure its forwarding
mode and parameters as previous ones.
To avoid crash, current forwarding should be stopped
before running "port reset port_id".

Signed-off-by: Wei Dai <wei.dai@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
app/test-pmd/cmdline.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h