app/testpmd: force user to stop forwarding when changing port/core list
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 10 Feb 2015 14:53:17 +0000 (14:53 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 14 Feb 2015 10:35:25 +0000 (11:35 +0100)
commite20511e4b2f676bbcc38432edcbb5dbf47eb6a16
treef889415c909d8d1276ed6d28dd32f0cff6c02102
parent57af3415b25d1eabece8e9392fd390ca09b2a2fd
app/testpmd: force user to stop forwarding when changing port/core list

Testpmd has the capability of changing the forwarding cores and ports in runtime.
If these are changed when forwarding, two issues may be encountered:

- If "show config fwd" is used, changes made in the core list are applied.
  Therefore, trying to stop forwarding may hang testpmd,
  since it could be waiting for cores to stop that are not actually running anything

- If the port list is changed, when stopping forwarding,
  it may miss the stats of some of the ports that were actually being used.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
app/test-pmd/cmdline.c