Skip to contentSkip to conversation

ip_pipeline: fix parsing error in TM port section

PATCH In review Jasvinder Singh 3 participants 4 messages Jun 16, 2016 – Jun 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip_pipeline: fix parsing error in TM port section

Replace APP_PARAM_ADD_LINK_FOR_TXQ with APP_PARAM_ADD_LINK_FOR_TM macro in TM (Traffic Manager) port section parsing function. This macro adds nic ports entry specified in TM port section of the application configuration file to the application parameters structure.

Fixes e5a1cd8a4847 ("examples/ip_pipeline: clean up configuration parser")
---
 examples/ip_pipeline/config_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ip_pipeline/config_parse.c +1 -1
index 504018e..5e70d78 100644
@@ -1816,7 +1816,7 @@ parse_tm(struct app_params *app,
 	param = &app->tm_params[param_idx];
 	PARSE_CHECK_DUPLICATE_SECTION(param);
 
-	APP_PARAM_ADD_LINK_FOR_TXQ(app, section_name);
+	APP_PARAM_ADD_LINK_FOR_TM(app, section_name);
 
 	for (i = 0; i < n_entries; i++) {
 		struct rte_cfgfile_entry *ent = &entries[i];
Signature · 1 line
2.5.5
#1 lore raw

2016-06-16 10:04, Jasvinder Singh:

Quoted 9 lines

Replace APP_PARAM_ADD_LINK_FOR_TXQ with APP_PARAM_ADD_LINK_FOR_TM macro in TM (Traffic Manager) port section parsing function. This macro adds nic ports entry specified in TM port section of the application configuration file to the application parameters structure.

Fixes e5a1cd8a4847 ("examples/ip_pipeline: clean up configuration parser")

Already fixed in 81d084dd2aa8 ("examples/ip_pipeline: support KNI")

Cristian, you should not ack a patch which do more than announced in the title. This pipeline KNI patch do a lot of things without any explanation for the fixes.
1 explanation = 1 patch

#2 lore raw
Quoted 23 lines

-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Tuesday, June 21, 2016 9:49 PM
To: Dumitrescu, Cristian <[email protected]>
Cc: [email protected]; Singh, Jasvinder <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] ip_pipeline: fix parsing error in TM port section

2016-06-16 10:04, Jasvinder Singh:

Quoted 1 line

Replace APP_PARAM_ADD_LINK_FOR_TXQ with

APP_PARAM_ADD_LINK_FOR_TM macro

Quoted 5 lines

in TM (Traffic Manager) port section parsing function. This macro adds nic ports entry specified in TM port section of the application configuration file to the application parameters structure.

Fixes e5a1cd8a4847 ("examples/ip_pipeline: clean up configuration

parser")

Quoted 3 lines
Quoted 6 lines

Already fixed in 81d084dd2aa8 ("examples/ip_pipeline: support KNI")

Cristian, you should not ack a patch which do more than announced in the title. This pipeline KNI patch do a lot of things without any explanation for the fixes.
1 explanation = 1 patch

Yeah, there were several small issues to fix and several people spotted them at the same time. I agree we should do a better job at separating different fixes into different patches. Sorry about this.

#3 lore raw
In reply to Jasvinder Singh

examples/ip_pipeline/config_parse.c

Quoted 26 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Jasvinder Singh
Sent: Thursday, June 16, 2016 10:05 AM
To: [email protected]
Cc: Dumitrescu, Cristian <[email protected]>
Subject: [dpdk-dev] [PATCH] ip_pipeline: fix parsing error in TM port section

Replace APP_PARAM_ADD_LINK_FOR_TXQ with
APP_PARAM_ADD_LINK_FOR_TM macro in TM (Traffic Manager) port section parsing function. This macro adds nic ports entry specified in TM port section of the application configuration file to the application parameters structure.

Fixes e5a1cd8a4847 ("examples/ip_pipeline: clean up configuration parser")
---
 examples/ip_pipeline/config_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ip_pipeline/config_parse.c +0 -0
index 504018e..5e70d78 100644

Self-NACK ; fix applied by another patch.