app/testpmd: check stopping port is not forwarding
authorBernard Iremonger <bernard.iremonger@intel.com>
Tue, 14 Jun 2016 15:35:36 +0000 (16:35 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jun 2016 08:10:06 +0000 (10:10 +0200)
commita8ef3e3a980e585fac81992764e42df4343528e4
treebab032a1b90759e2108769e0a15e0924e1e8e58f
parentebf5e9b715cb62e8e0a890ec027302ab5f595f5d
app/testpmd: check stopping port is not forwarding

Add calls to port_is_forwarding function in stop_port and
close_port functions to check that port is not forwarding.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/config.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h