app/testpmd: fix crash on port reset
authorShougang Wang <shougangx.wang@intel.com>
Tue, 24 Sep 2019 04:49:03 +0000 (04:49 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:56 +0000 (15:00 +0200)
commit1cde1b9a9b4dbf31cb5e5ccdfc5da3cb079f43a2
tree1647286d262f0f0ebb994e148b1e3ad3b525d697
parent82a8f1385994d67e8c4181ad95651d1b39273d5b
app/testpmd: fix crash on port reset

port reset cause crash when ports are not stopped. Fixed by refusing the
reset when port is not stopped.

Fixes: 97f1e196799f ("app/testpmd: add port reset command")
Cc: stable@dpdk.org
Signed-off-by: Shougang Wang <shougangx.wang@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/cmdline.c
app/test-pmd/testpmd.c
doc/guides/testpmd_app_ug/testpmd_funcs.rst