* [dpdk-dev] [PATCH] ip_pipeline: add check on nic's rxq and txq
@ 2015-09-07 12:53 Jasvinder Singh
2015-09-07 13:29 ` Dumitrescu, Cristian
2015-12-01 12:23 ` [dpdk-dev] [PATCH v2] " Jasvinder Singh
0 siblings, 2 replies; 4+ messages in thread
From: Jasvinder Singh @ 2015-09-07 12:53 UTC (permalink / raw)
To: dev
This patch checks that rx queue and tx queue of each link
specified in ip pipeline configuration file are used.
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
---
examples/ip_pipeline/config_check.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/examples/ip_pipeline/config_check.c b/examples/ip_pipeline/config_check.c
index 07f4c8b..b843926 100644
--- a/examples/ip_pipeline/config_check.c
+++ b/examples/ip_pipeline/config_check.c
@@ -95,6 +95,8 @@ check_links(struct app_params *app)
"%s RXQs are not contiguous (A)\n", link->name);
n_rxq = app_link_get_n_rxq(app, link);
+
+ APP_CHECK((n_rxq), "%s does not have any RXQ \n", link->name);
APP_CHECK((n_rxq == rxq_max + 1),
"%s RXQs are not contiguous (B)\n", link->name);
@@ -112,7 +114,9 @@ check_links(struct app_params *app)
/* Check that link RXQs are contiguous */
n_txq = app_link_get_n_txq(app, link);
-
+
+ APP_CHECK((n_txq), "%s does not have any TXQ \n", link->name);
+
for (i = 0; i < n_txq; i++) {
char name[APP_PARAM_NAME_SIZE];
int pos;
--
2.1.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH] ip_pipeline: add check on nic's rxq and txq
2015-09-07 12:53 [dpdk-dev] [PATCH] ip_pipeline: add check on nic's rxq and txq Jasvinder Singh
@ 2015-09-07 13:29 ` Dumitrescu, Cristian
2015-12-01 12:23 ` [dpdk-dev] [PATCH v2] " Jasvinder Singh
1 sibling, 0 replies; 4+ messages in thread
From: Dumitrescu, Cristian @ 2015-09-07 13:29 UTC (permalink / raw)
To: Singh, Jasvinder, dev
> -----Original Message-----
> From: Singh, Jasvinder
> Sent: Monday, September 7, 2015 3:54 PM
> To: dev@dpdk.org
> Cc: Dumitrescu, Cristian
> Subject: [PATCH] ip_pipeline: add check on nic's rxq and txq
>
> This patch checks that rx queue and tx queue of each link
> specified in ip pipeline configuration file are used.
>
> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
> ---
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-dev] [PATCH v2] ip_pipeline: add check on nic's rxq and txq
2015-09-07 12:53 [dpdk-dev] [PATCH] ip_pipeline: add check on nic's rxq and txq Jasvinder Singh
2015-09-07 13:29 ` Dumitrescu, Cristian
@ 2015-12-01 12:23 ` Jasvinder Singh
2015-12-07 0:34 ` Thomas Monjalon
1 sibling, 1 reply; 4+ messages in thread
From: Jasvinder Singh @ 2015-12-01 12:23 UTC (permalink / raw)
To: dev
This patch checks that rx queue and tx queue of each
link specified in ip pipeline configuration file are
used.
*v2
- fix checkpatch warnings
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
examples/ip_pipeline/config_check.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/examples/ip_pipeline/config_check.c b/examples/ip_pipeline/config_check.c
index 8052bc4..1ff5763 100644
--- a/examples/ip_pipeline/config_check.c
+++ b/examples/ip_pipeline/config_check.c
@@ -98,6 +98,8 @@ check_links(struct app_params *app)
n_rxq = app_link_get_n_rxq(app, link);
+ APP_CHECK((n_rxq), "%s does not have any RXQ\n", link->name);
+
APP_CHECK((n_rxq == rxq_max + 1),
"%s RXQs are not contiguous (B)\n", link->name);
@@ -115,6 +117,8 @@ check_links(struct app_params *app)
/* Check that link RXQs are contiguous */
n_txq = app_link_get_n_txq(app, link);
+ APP_CHECK((n_txq), "%s does not have any TXQ\n", link->name);
+
for (i = 0; i < n_txq; i++) {
char name[APP_PARAM_NAME_SIZE];
int pos;
--
2.5.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH v2] ip_pipeline: add check on nic's rxq and txq
2015-12-01 12:23 ` [dpdk-dev] [PATCH v2] " Jasvinder Singh
@ 2015-12-07 0:34 ` Thomas Monjalon
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2015-12-07 0:34 UTC (permalink / raw)
To: Jasvinder Singh; +Cc: dev
2015-12-01 12:23, Jasvinder Singh:
> This patch checks that rx queue and tx queue of each
> link specified in ip pipeline configuration file are
> used.
>
> *v2
> - fix checkpatch warnings
>
> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-12-07 0:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-07 12:53 [dpdk-dev] [PATCH] ip_pipeline: add check on nic's rxq and txq Jasvinder Singh
2015-09-07 13:29 ` Dumitrescu, Cristian
2015-12-01 12:23 ` [dpdk-dev] [PATCH v2] " Jasvinder Singh
2015-12-07 0:34 ` Thomas Monjalon
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).