app/testpmd: stop forwarding when quitting
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 27 Feb 2015 11:18:39 +0000 (11:18 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 10 Mar 2015 15:22:44 +0000 (16:22 +0100)
commit8210ec2572ae887f76a3dff1e44f2c253d8e5616
tree606859a1b2fbb35ab79d5ddbb50f0957ca32f1fc
parenta4a61f79e5c7d120ca7a77eaa13ad863b205a1e9
app/testpmd: stop forwarding when quitting

When user quits testpmd, and there is traffic being forwarded,
that may produce a segmentation fault, due to ports being closed,
while they are still transmitting packets.

This patch prevents the issue from happening,
by stopping packet forwarding before closing the ports.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/testpmd.c