DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: fix display issue in flow query
@ 2020-07-13  6:28 Chenxu Di
  2020-07-13  8:16 ` David Marchand
  2020-07-14  1:37 ` [dpdk-dev] [PATCH v2] app/testpmd: fix incorrect output format " Chenxu Di
  0 siblings, 2 replies; 6+ messages in thread
From: Chenxu Di @ 2020-07-13  6:28 UTC (permalink / raw)
  To: dev; +Cc: beilei.xing, wenzhuo.lu, Chenxu Di

This patch fix the error line break in the display info of flow query

Fixes: bdb1d61690f7 ("app/testpmd: support RSS config in flow query")

Signed-off-by: Chenxu Di <chenxux.di@intel.com>
---
 app/test-pmd/config.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index fcbe6b6f7..7b254e484 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -1425,7 +1425,10 @@ rss_config_display(struct rte_flow_action_rss *rss_conf)
 	if (rss_conf->queue_num == 0)
 		printf("none\n");
 	for (i = 0; i < rss_conf->queue_num; i++)
-		printf("%d\n", rss_conf->queue[i]);
+		if (i == rss_conf->queue_num - 1)
+			printf("%d\n", rss_conf->queue[i]);
+		else
+			printf("%d ", rss_conf->queue[i]);
 
 	printf(" function: ");
 	switch (rss_conf->func) {
-- 
2.17.1


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

end of thread, other threads:[~2020-07-14 11:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13  6:28 [dpdk-dev] [PATCH] app/testpmd: fix display issue in flow query Chenxu Di
2020-07-13  8:16 ` David Marchand
2020-07-13  8:23   ` Di, ChenxuX
2020-07-14  1:37 ` [dpdk-dev] [PATCH v2] app/testpmd: fix incorrect output format " Chenxu Di
2020-07-14 10:06   ` Phil Yang
2020-07-14 11:38     ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).