Skip to contentSkip to conversation

examples: fix ip_pipeline to load PMD driver correctly

PATCH Superseded Gowrishankar 3 participants 6 messages Sep 21, 2016 – Oct 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples: fix ip_pipeline to load PMD driver correctly

From: Gowrishankar Muthukrishnan <[email protected]>

There is typo in init.c of ip_pipeline example due to which, invalid file path is added to -d option of EAL i.e path starting with =.

---
 examples/ip_pipeline/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ip_pipeline/init.c +1 -1
index cd167f6..27b0aa7 100644
@@ -236,7 +236,7 @@ app_init_eal(struct app_params *app)
 	}
 
 	if (p->add_driver) {
-		snprintf(buffer, sizeof(buffer), "-d=%s", p->add_driver);
+		snprintf(buffer, sizeof(buffer), "-d %s", p->add_driver);
 		app->eal_argv[n_args++] = strdup(buffer);
 	}
 
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 17 lines

-----Original Message-----
From: Gowrishankar [mailto:[email protected]]
Sent: Wednesday, September 21, 2016 9:39 AM
To: [email protected]
Cc: Chao Zhu <[email protected]>; Dumitrescu, Cristian <[email protected]>; Pradeep <[email protected]>; Gowrishankar Muthukrishnan <[email protected]>
Subject: [PATCH] examples: fix ip_pipeline to load PMD driver correctly

From: Gowrishankar Muthukrishnan <[email protected]>

There is typo in init.c of ip_pipeline example due to which, invalid file path is added to -d option of EAL i.e path starting with =.

Quoted 6 lines

Signed-off-by: Gowrishankar Muthukrishnan
<[email protected]>

---
 examples/ip_pipeline/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, Gowrishankar!

#2 lore raw

PATCH v2 1/1 examples: fix ip_pipeline to load PMD driver correctly

In reply to Gowrishankar

From: Gowrishankar Muthukrishnan <[email protected]>

v2: minor correction in patch to avoid space between -d option and driver path

Gowrishankar Muthukrishnan (1):
examples: fix ip_pipeline to load PMD driver correctly

 examples/ip_pipeline/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.9.1
#3 lore raw

PATCH v2 1/1 examples: fix ip_pipeline to load PMD driver correctly

From: Gowrishankar Muthukrishnan <[email protected]>

There is typo in init.c of ip_pipeline example due to which, invalid file path is added to -d option of EAL i.e path starting with =.

---
 examples/ip_pipeline/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ip_pipeline/init.c +1 -1
index 0dbc332..d580ddf 100644
@@ -236,7 +236,7 @@ app_init_eal(struct app_params *app)
 	}
 
 	if (p->add_driver) {
-		snprintf(buffer, sizeof(buffer), "-d=%s", p->add_driver);
+		snprintf(buffer, sizeof(buffer), "-d%s", p->add_driver);
 		app->eal_argv[n_args++] = strdup(buffer);
 	}
 
Signature · 1 line
1.9.1
Acked-by on v2 1/1
#4 lore raw
In reply to Gowrishankar
Quoted 13 lines

-----Original Message-----
From: Gowrishankar [mailto:[email protected]]
Sent: Tuesday, October 4, 2016 1:43 PM
To: [email protected]
Cc: Chao Zhu <[email protected]>; Thomas Monjalon <[email protected]>; Dumitrescu, Cristian <[email protected]>; Christian Ehrhardt <[email protected]>; Pradeep <[email protected]>; Gowrishankar Muthukrishnan <[email protected]>
Subject: [PATCH v2] examples: fix ip_pipeline to load PMD driver correctly

Quoted 5 lines

From: Gowrishankar Muthukrishnan <[email protected]>

v2: minor correction in patch to avoid space between -d option and driver path