From: Brian Archbold Date: Wed, 22 Aug 2018 06:05:06 +0000 (+0100) Subject: app/testpmd: fix duplicate exit X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=27c7031e0b49abbaf13ea4c4a809a07b9282422d;p=dpdk.git app/testpmd: fix duplicate exit In interactive mode, when the "quit" command is issued, pmd_test_exit() is being called twice, once through the "quit" command and the other after termination of prompt. Remove duplicated exit routine by removing call from "quit" command. Steps to reproduce: - Run testpmd in interactive mode. - type "quit". Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Signed-off-by: Brian Archbold Acked-by: Bernard Iremonger --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 1b40e3fa89..dd5616d354 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -7670,7 +7670,6 @@ static void cmd_quit_parsed(__attribute__((unused)) void *parsed_result, struct cmdline *cl, __attribute__((unused)) void *data) { - pmd_test_exit(); cmdline_quit(cl); }