DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: add warning message when user sets rxq greater than txq
@ 2019-05-02 15:44 Herakliusz Lipiec
  2019-05-02 15:44 ` Herakliusz Lipiec
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Herakliusz Lipiec @ 2019-05-02 15:44 UTC (permalink / raw)
  To: Wenzhuo Lu, Jingjing Wu, Bernard Iremonger
  Cc: dev, qimaix.xiao, ying.a.wang, Herakliusz Lipiec

add a warning message when user sets port config all rxq value larger
than txq in interactive mode.

Signed-off-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
---
 app/test-pmd/cmdline.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 5a10c5f38..94be3c6f8 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -1741,6 +1741,10 @@ cmd_config_rx_tx_parsed(void *parsed_result,
 		}
 		if (check_nb_rxq(res->value) != 0)
 			return;
+		if (res->value > nb_txq) {
+			printf("Warning: rxq should not be larger than txq\n");
+			return;
+		}
 		nb_rxq = res->value;
 	}
 	else if (!strcmp(res->name, "txq")) {
@@ -1750,6 +1754,10 @@ cmd_config_rx_tx_parsed(void *parsed_result,
 		}
 		if (check_nb_txq(res->value) != 0)
 			return;
+		if (res->value < nb_rxq) {
+			printf("Warning: rxq should not be larger than txq\n");
+			return;
+		}
 		nb_txq = res->value;
 	}
 	else if (!strcmp(res->name, "rxd")) {
-- 
2.17.2

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

end of thread, other threads:[~2019-06-27 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-02 15:44 [dpdk-dev] [PATCH] app/testpmd: add warning message when user sets rxq greater than txq Herakliusz Lipiec
2019-05-02 15:44 ` Herakliusz Lipiec
2019-06-07 13:25 ` Iremonger, Bernard
2019-06-27 15:25 ` 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).