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

* [dpdk-dev] [PATCH] app/testpmd: add warning message when user sets rxq greater than txq
  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
  2 siblings, 0 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

* Re: [dpdk-dev] [PATCH] app/testpmd: add warning message when user sets rxq greater than txq
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Iremonger, Bernard @ 2019-06-07 13:25 UTC (permalink / raw)
  To: Lipiec, Herakliusz, Lu, Wenzhuo, Wu, Jingjing
  Cc: dev, Xiao, QimaiX, Wang, Ying A

Hi Herakliusz,

> -----Original Message-----
> From: Lipiec, Herakliusz
> Sent: Thursday, May 2, 2019 4:45 PM
> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing
> <jingjing.wu@intel.com>; Iremonger, Bernard <bernard.iremonger@intel.com>
> Cc: dev@dpdk.org; Xiao, QimaiX <qimaix.xiao@intel.com>; Wang, Ying A
> <ying.a.wang@intel.com>; Lipiec, Herakliusz <herakliusz.lipiec@intel.com>
> Subject: [PATCH] app/testpmd: add warning message when user sets rxq greater
> than txq
> 
> 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>

./dpdk/devtools/check-git-log.sh -1
Headline too long:
        app/testpmd: add warning message when user sets rxq greater than txq

Commit message needs to be fixed, otherwise
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com> 

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

* Re: [dpdk-dev] [PATCH] app/testpmd: add warning message when user sets rxq greater than txq
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Ferruh Yigit @ 2019-06-27 15:25 UTC (permalink / raw)
  To: Herakliusz Lipiec, Wenzhuo Lu, Jingjing Wu, Bernard Iremonger
  Cc: dev, qimaix.xiao, ying.a.wang

On 5/2/2019 4:44 PM, Herakliusz Lipiec wrote:
> 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>


Hi Hero,

Can you please give some context that why we need this check? What is broken
without this check?

Thanks,
ferruh

> ---
>  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")) {
> 


^ 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).