DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 2/2] pipeline: fix jump instruction parsing
@ 2020-10-16 13:57 Cristian Dumitrescu
  2020-10-16 14:17 ` P, Venkata Suresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Dumitrescu @ 2020-10-16 13:57 UTC (permalink / raw)
  To: dev; +Cc: venkata.suresh.kumar.p, Churchill Khangar, cristian.dumitrescu

From: Churchill Khangar <churchill.khangar@intel.com>

This patch fixes the jump if not valid header
instruction parsing

Fixes: b3947e25bed4 ("pipeline: introduce SWX jump and return instructions")
Cc: cristian.dumitrescu@intel.com

Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
 lib/librte_pipeline/rte_swx_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_pipeline/rte_swx_pipeline.c b/lib/librte_pipeline/rte_swx_pipeline.c
index 2c9fbf4..9d64611 100644
--- a/lib/librte_pipeline/rte_swx_pipeline.c
+++ b/lib/librte_pipeline/rte_swx_pipeline.c
@@ -4658,7 +4658,7 @@ struct_field_parse(struct rte_swx_pipeline *p,
 {
 	struct header *h;
 
-	CHECK(n_tokens == 2, EINVAL);
+	CHECK(n_tokens == 3, EINVAL);
 
 	strcpy(data->jmp_label, tokens[1]);
 
-- 
1.8.3.1


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

* Re: [dpdk-dev] [PATCH 2/2] pipeline: fix jump instruction parsing
  2020-10-16 13:57 [dpdk-dev] [PATCH 2/2] pipeline: fix jump instruction parsing Cristian Dumitrescu
@ 2020-10-16 14:17 ` P, Venkata Suresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: P, Venkata Suresh Kumar @ 2020-10-16 14:17 UTC (permalink / raw)
  To: dev

Thanks a lot Cristian for sending the patches for review.

Thanks & Regards,
Suresh.

-----Original Message-----
From: Dumitrescu, Cristian <cristian.dumitrescu@intel.com> 
Sent: Friday, October 16, 2020 7:28 PM
To: dev@dpdk.org
Cc: P, Venkata Suresh Kumar <venkata.suresh.kumar.p@intel.com>; Khangar, Churchill <churchill.khangar@intel.com>; Dumitrescu, Cristian <cristian.dumitrescu@intel.com>
Subject: [PATCH 2/2] pipeline: fix jump instruction parsing

From: Churchill Khangar <churchill.khangar@intel.com>

This patch fixes the jump if not valid header instruction parsing

Fixes: b3947e25bed4 ("pipeline: introduce SWX jump and return instructions")
Cc: cristian.dumitrescu@intel.com

Signed-off-by: Churchill Khangar <churchill.khangar@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
 lib/librte_pipeline/rte_swx_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_pipeline/rte_swx_pipeline.c b/lib/librte_pipeline/rte_swx_pipeline.c
index 2c9fbf4..9d64611 100644
--- a/lib/librte_pipeline/rte_swx_pipeline.c
+++ b/lib/librte_pipeline/rte_swx_pipeline.c
@@ -4658,7 +4658,7 @@ struct_field_parse(struct rte_swx_pipeline *p,  {
 	struct header *h;
 
-	CHECK(n_tokens == 2, EINVAL);
+	CHECK(n_tokens == 3, EINVAL);
 
 	strcpy(data->jmp_label, tokens[1]);
 
--
1.8.3.1


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

end of thread, other threads:[~2020-10-16 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16 13:57 [dpdk-dev] [PATCH 2/2] pipeline: fix jump instruction parsing Cristian Dumitrescu
2020-10-16 14:17 ` P, Venkata Suresh Kumar

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