app/testpmd: fix duplicate exit
PATCH 1/1 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".
--- app/test-pmd/cmdline.c | 1 - 1 file changed, 1 deletion(-)
app/test-pmd/cmdline.c +0 -1
@@ -7573,7 +7573,6 @@ static void cmd_quit_parsed(__attribute__((unused)) void *parsed_result,struct cmdline *cl, __attribute__((unused)) void *data) { -pmd_test_exit ();cmdline_quit (cl ); }
Signature · 1 line
2.9.5
Quoted 15 lines
-----Original Message-----
From: Archbold, Brian
Sent: Wednesday, August 22, 2018 7:05 AM
To: Lu, Wenzhuo <[email protected]>; Wu, Jingjing <[email protected]>; Iremonger, Bernard <[email protected]>
Cc: [email protected]; Archbold, Brian <[email protected]>; [email protected]
Subject: [PATCH] app/testpmd: fix duplicate exitIn 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.
Quoted 8 lines
Steps to reproduce:
- Run testpmd in interactive mode.
- type "quit".Fixes af75078fece3 ("first public release")Signed-off-by Brian Archbold <[email protected]>
Ferruh Yigit
AppliedQuoted 19 lines · Bernard
Quoted 19 lines
-----Original Message-----
From: Archbold, Brian
Sent: Wednesday, August 22, 2018 7:05 AM
To: Lu, Wenzhuo <[email protected]>; Wu, Jingjing <[email protected]>; Iremonger, Bernard <[email protected]>
Cc: [email protected]; Archbold, Brian <[email protected]>; [email protected]
Subject: [PATCH] app/testpmd: fix duplicate exitIn 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".
Quoted 6 lines
Quoted 4 lines
Fixes af75078fece3 ("first public release")Signed-off-by Brian Archbold <[email protected]>
Applied to dpdk-next-net/master, thanks.