[dpdk-stable] patch 'examples/ip_pipeline: fix port and table stats read' has been queued to stable release 18.08.1

Kevin Traynor ktraynor at redhat.com
Fri Nov 23 11:26:25 CET 2018


Hi,

FYI, your patch has been queued to stable release 18.08.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/29/18. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the patch applied
to the branch. If the code is different (ie: not only metadata diffs), due for example to
a change in context or macro names, please double check it.

Thanks.

Kevin Traynor

---
>From 9f42c99f9fa195ce4afa24072d6453a53ee99802 Mon Sep 17 00:00:00 2001
From: Cristian Dumitrescu <cristian.dumitrescu at intel.com>
Date: Tue, 30 Oct 2018 18:44:09 +0000
Subject: [PATCH] examples/ip_pipeline: fix port and table stats read

[ upstream commit c4160d303026ed11707e4a3a7a2e12b9be863d5a ]

Fix the pipeline port and table stats read operation.

Fixes: 50e73d051806 ("examples/ip_pipeline: add stats read commands")

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>
Signed-off-by: Jasvinder Singh <jasvinder.singh at intel.com>
Signed-off-by: Hongjun Ni <hongjun.ni at intel.com>
---
 examples/ip_pipeline/thread.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/ip_pipeline/thread.c b/examples/ip_pipeline/thread.c
index b00ea0653..a6d665984 100644
--- a/examples/ip_pipeline/thread.c
+++ b/examples/ip_pipeline/thread.c
@@ -813,5 +813,5 @@ pipeline_port_in_stats_read(const char *pipeline_name,
 	/* Read response */
 	status = rsp->status;
-	if (status)
+	if (status == 0)
 		memcpy(stats, &rsp->port_in_stats_read.stats, sizeof(*stats));
 
@@ -961,5 +961,5 @@ pipeline_port_out_stats_read(const char *pipeline_name,
 	/* Read response */
 	status = rsp->status;
-	if (status)
+	if (status == 0)
 		memcpy(stats, &rsp->port_out_stats_read.stats, sizeof(*stats));
 
@@ -1017,5 +1017,5 @@ pipeline_table_stats_read(const char *pipeline_name,
 	/* Read response */
 	status = rsp->status;
-	if (status)
+	if (status == 0)
 		memcpy(stats, &rsp->table_stats_read.stats, sizeof(*stats));
 
-- 
2.19.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2018-11-23 10:22:54.801790701 +0000
+++ 0021-examples-ip_pipeline-fix-port-and-table-stats-read.patch	2018-11-23 10:22:54.000000000 +0000
@@ -1,12 +1,13 @@
-From c4160d303026ed11707e4a3a7a2e12b9be863d5a Mon Sep 17 00:00:00 2001
+From 9f42c99f9fa195ce4afa24072d6453a53ee99802 Mon Sep 17 00:00:00 2001
 From: Cristian Dumitrescu <cristian.dumitrescu at intel.com>
 Date: Tue, 30 Oct 2018 18:44:09 +0000
 Subject: [PATCH] examples/ip_pipeline: fix port and table stats read
 
+[ upstream commit c4160d303026ed11707e4a3a7a2e12b9be863d5a ]
+
 Fix the pipeline port and table stats read operation.
 
 Fixes: 50e73d051806 ("examples/ip_pipeline: add stats read commands")
-Cc: stable at dpdk.org
 
 Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>
 Signed-off-by: Jasvinder Singh <jasvinder.singh at intel.com>
@@ -16,24 +17,24 @@
  1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/examples/ip_pipeline/thread.c b/examples/ip_pipeline/thread.c
-index e1b6fb684..272fbbeed 100644
+index b00ea0653..a6d665984 100644
 --- a/examples/ip_pipeline/thread.c
 +++ b/examples/ip_pipeline/thread.c
-@@ -821,5 +821,5 @@ pipeline_port_in_stats_read(const char *pipeline_name,
+@@ -813,5 +813,5 @@ pipeline_port_in_stats_read(const char *pipeline_name,
  	/* Read response */
  	status = rsp->status;
 -	if (status)
 +	if (status == 0)
  		memcpy(stats, &rsp->port_in_stats_read.stats, sizeof(*stats));
  
-@@ -969,5 +969,5 @@ pipeline_port_out_stats_read(const char *pipeline_name,
+@@ -961,5 +961,5 @@ pipeline_port_out_stats_read(const char *pipeline_name,
  	/* Read response */
  	status = rsp->status;
 -	if (status)
 +	if (status == 0)
  		memcpy(stats, &rsp->port_out_stats_read.stats, sizeof(*stats));
  
-@@ -1025,5 +1025,5 @@ pipeline_table_stats_read(const char *pipeline_name,
+@@ -1017,5 +1017,5 @@ pipeline_table_stats_read(const char *pipeline_name,
  	/* Read response */
  	status = rsp->status;
 -	if (status)


More information about the stable mailing list