All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] testpmd: Fix port validation code of "port stop all" command
@ 2015-03-05  7:30 Tetsuya Mukawa
  2015-03-05 13:33 ` Qiu, Michael
       [not found] ` <1425540606-12554-1-git-send-email-mukawa-AlSX/UN32fvPDbFq/vQRIQ@public.gmane.org>
  0 siblings, 2 replies; 9+ messages in thread
From: Tetsuya Mukawa @ 2015-03-05  7:30 UTC (permalink / raw)
  To: dev-VfR2kkLFssw

When "port stop all" is executed, the command doesn't work as it should
because of wrong port validation. The patch fixes this issue.

Reported-by: Pablo de Lara <pablo.de.lara.guarch-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Signed-off-by: Tetsuya Mukawa <mukawa-AlSX/UN32fvPDbFq/vQRIQ@public.gmane.org>
---
 app/test-pmd/testpmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 61291be..bb65342 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -1484,7 +1484,7 @@ stop_port(portid_t pid)
 	printf("Stopping ports...\n");
 
 	FOREACH_PORT(pi, ports) {
-		if (!port_id_is_invalid(pid, DISABLED_WARN) && pid != pi)
+		if (pid != pi && pid != (portid_t)RTE_PORT_ALL)
 			continue;
 
 		port = &ports[pi];
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-03-09  6:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-05  7:30 [PATCH] testpmd: Fix port validation code of "port stop all" command Tetsuya Mukawa
2015-03-05 13:33 ` Qiu, Michael
2015-03-05 13:38   ` Qiu, Michael
     [not found]   ` <533710CFB86FA344BFBF2D6802E60286CEEEC5-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-03-06 13:53     ` De Lara Guarch, Pablo
     [not found]       ` <E115CCD9D858EF4F90C690B0DCB4D89727267732-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-03-09  2:22         ` Tetsuya Mukawa
2015-03-09  3:49           ` Qiu, Michael
     [not found]             ` <533710CFB86FA344BFBF2D6802E60286CF051C-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-03-09  5:21               ` Tetsuya Mukawa
2015-03-09  6:01                 ` Qiu, Michael
     [not found] ` <1425540606-12554-1-git-send-email-mukawa-AlSX/UN32fvPDbFq/vQRIQ@public.gmane.org>
2015-03-06 13:44   ` De Lara Guarch, Pablo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.