Skip to contentSkip to conversation

app/testpmd: fix duplicate exit

PATCH Applied Brian Archbold 3 participants 3 messages Aug 22, 2018 – Oct 11, 2018

lore
Share & tools
lore
#0 lore raw

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".

Fixes af75078fece3 ("first public release")
---
 app/test-pmd/cmdline.c | 1 -
 1 file changed, 1 deletion(-)
app/test-pmd/cmdline.c +0 -1
index 589121d..76b7cc1 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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 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.

Quoted 8 lines

Steps to reproduce:
- Run testpmd in interactive mode.
- type "quit".

Fixes af75078fece3 ("first public release")
Applied
#2 lore raw
Quoted 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 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".

Quoted 6 lines
Quoted 4 lines
Fixes af75078fece3 ("first public release")

Applied to dpdk-next-net/master, thanks.