Imported Upstream version 16.07.2
[deb_dpdk.git] / debian / patches / dpdk-dev-examples-ip_pipeline-fix-pmd-driver-parameter.patch
1 From: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
2 Date: Wed, 21 Sep 2016 13:56:31 +0530
3 Subject: [PATCH] examples: fix ip_pipeline to load PMD driver correctly
4
5 There is typo in init.c of ip_pipeline example due to which,
6 invalid file path is added to -d option of EAL i.e path starting
7 with =.
8
9 *Update*
10 There was an issue identified in http://dpdk.org/dev/patchwork/patch/16363/
11 which is folded in here to stay at just one patch.
12
13 Signed-off-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
14 Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
15
16 Origin: Upstream, http://dpdk.org/dev/patchwork/patch/15995/
17 Author: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
18 Last-update: 2016-10-04
19
20 ---
21  examples/ip_pipeline/init.c | 2 +-
22  1 file changed, 1 insertion(+), 1 deletion(-)
23
24 diff --git a/examples/ip_pipeline/init.c b/examples/ip_pipeline/init.c
25 index cd167f6..27b0aa7 100644
26 --- a/examples/ip_pipeline/init.c
27 +++ b/examples/ip_pipeline/init.c
28 @@ -236,7 +236,7 @@ app_init_eal(struct app_params *app)
29         }
30  
31         if (p->add_driver) {
32 -               snprintf(buffer, sizeof(buffer), "-d=%s", p->add_driver);
33 +               snprintf(buffer, sizeof(buffer), "-d%s", p->add_driver);
34                 app->eal_argv[n_args++] = strdup(buffer);
35         }
36  
37 -- 
38 1.9.1
39