* [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error @ 2017-11-07 15:18 Alessio Silvestro 2017-11-07 16:25 ` Wiles, Keith 0 siblings, 1 reply; 7+ messages in thread From: Alessio Silvestro @ 2017-11-07 15:18 UTC (permalink / raw) To: users [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset="gb2312", Size: 1880 bytes --] Dear all, I have debian (4.13.0-0.bpo.1-amd64) and dpdk 17.11-rc2. I am trying to install pktgen (3.4.2), but when I do make I got the following error: CC cli-functions.o In file included from /usr/local/pktgen-3.4.2/app/pktgen.h:112:0, from /usr/local/pktgen-3.4.2/app/cli-functions.c:57: /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h: In function ¡®pktgen_dump_dev_info¡¯: /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:327:28: error: dereferencing pointer to incomplete type ¡®struct rte_pci_device¡¯ di->pci_dev ? di->pci_dev->max_vfs : 0, ^~ /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:25: warning: format ¡®%d¡¯ expects argument of type ¡®int¡¯, but argument 3 has type ¡®uint64_t {aka long unsigned int}¡¯ [-Wformat=] " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", ^ /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:49: warning: format ¡®%d¡¯ expects argument of type ¡®int¡¯, but argument 4 has type ¡®uint64_t {aka long unsigned int}¡¯ [-Wformat=] " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", Do you have any hint or patch to suggest? Thanks, Alessio =============================================== Alessio Silvestro ¥¢¥ì¥Ã¥·¥ª¡¡¥·¥ë¥Ù¥¹¥È¥í Early Stage Researcher Phone: +49 (0) 6221 4342 ¨C 134 e-mail: Alessio.Silvestro@neclab.eu<mailto:Alessio.Silvestro@neclab.eu> Data Science and System Platform Research Division NEC Europe Ltd. Nec Laboratories Europe Kurf¨¹rsten-Anlage 36, 69115 Heidelberg, Germany =============================================== NEC Europe Ltd | Registered Office: Athene, Odyssey Business Park, West End Road, London, HA4 6QE, GB | Registered in England 2832014 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error 2017-11-07 15:18 [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error Alessio Silvestro @ 2017-11-07 16:25 ` Wiles, Keith 2017-11-07 16:26 ` Wiles, Keith 0 siblings, 1 reply; 7+ messages in thread From: Wiles, Keith @ 2017-11-07 16:25 UTC (permalink / raw) To: Alessio Silvestro; +Cc: users > On Nov 7, 2017, at 9:18 AM, Alessio Silvestro <alessio.silvestro@neclab.eu> wrote: > > Dear all, > > I have debian (4.13.0-0.bpo.1-amd64) and dpdk 17.11-rc2. > > I am trying to install pktgen (3.4.2), but when I do make I got the following error: > > > CC cli-functions.o > In file included from /usr/local/pktgen-3.4.2/app/pktgen.h:112:0, > from /usr/local/pktgen-3.4.2/app/cli-functions.c:57: > /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h: In function ”®pktgen_dump_dev_info”Æ: > /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:327:28: error: dereferencing pointer to incomplete type ”®struct rte_pci_device”Æ > di->pci_dev ? di->pci_dev->max_vfs : 0, The problem is that we have changed the PCI code, I have fix for this, but it needs to be cleaned up and pushed but I am having some bandwidth problems. In the pktgen-port-cfg.h file at line 327 you need to add a #if around the first fprintf(). #if RTE_VERSION < RTE_VERSION_NUM(17, 5, 0, 0) fprintf( … ); #endif Maybe other ones in the code too. I will try to find some time to push that patch. > ^~ > /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:25: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 3 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] > " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", > ^ > /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:49: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 4 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] > " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", > > Do you have any hint or patch to suggest? > > Thanks, > Alessio > > > =============================================== > Alessio Silvestro „¢„ģ„Ć„·„Ŗ””„·„ė„Ł„¹„Č„ķ > Early Stage Researcher > > Phone: +49 (0) 6221 4342 ØC 134 > e-mail: Alessio.Silvestro@neclab.eu<mailto:Alessio.Silvestro@neclab.eu> > > Data Science and System Platform Research Division NEC Europe Ltd. > Nec Laboratories Europe > Kurfعrsten-Anlage 36, 69115 Heidelberg, Germany > =============================================== > NEC Europe Ltd | Registered Office: Athene, Odyssey Business Park, West End Road, London, HA4 6QE, GB | Registered in England 2832014 > > Regards, Keith ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error 2017-11-07 16:25 ` Wiles, Keith @ 2017-11-07 16:26 ` Wiles, Keith 2017-11-07 17:13 ` Alessio Silvestro 0 siblings, 1 reply; 7+ messages in thread From: Wiles, Keith @ 2017-11-07 16:26 UTC (permalink / raw) To: Alessio Silvestro; +Cc: users Sorry, around the second fprintf() in the function. > On Nov 7, 2017, at 10:25 AM, Wiles, Keith <keith.wiles@intel.com> wrote: > > > >> On Nov 7, 2017, at 9:18 AM, Alessio Silvestro <alessio.silvestro@neclab.eu> wrote: >> >> Dear all, >> >> I have debian (4.13.0-0.bpo.1-amd64) and dpdk 17.11-rc2. >> >> I am trying to install pktgen (3.4.2), but when I do make I got the following error: >> >> >> CC cli-functions.o >> In file included from /usr/local/pktgen-3.4.2/app/pktgen.h:112:0, >> from /usr/local/pktgen-3.4.2/app/cli-functions.c:57: >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h: In function ”®pktgen_dump_dev_info”Æ: >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:327:28: error: dereferencing pointer to incomplete type ”®struct rte_pci_device”Æ >> di->pci_dev ? di->pci_dev->max_vfs : 0, > > > The problem is that we have changed the PCI code, I have fix for this, but it needs to be cleaned up and pushed but I am having some bandwidth problems. > > In the pktgen-port-cfg.h file at line 327 you need to add a #if around the first fprintf(). > > #if RTE_VERSION < RTE_VERSION_NUM(17, 5, 0, 0) > fprintf( … > ); > #endif > > Maybe other ones in the code too. I will try to find some time to push that patch. > >> ^~ >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:25: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 3 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", >> ^ >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:49: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 4 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", >> >> Do you have any hint or patch to suggest? >> >> Thanks, >> Alessio >> >> >> =============================================== >> Alessio Silvestro „¢„ģ„Ć„·„Ŗ””„·„ė„Ł„¹„Č„ķ >> Early Stage Researcher >> >> Phone: +49 (0) 6221 4342 ØC 134 >> e-mail: Alessio.Silvestro@neclab.eu<mailto:Alessio.Silvestro@neclab.eu> >> >> Data Science and System Platform Research Division NEC Europe Ltd. >> Nec Laboratories Europe >> Kurfعrsten-Anlage 36, 69115 Heidelberg, Germany >> =============================================== >> NEC Europe Ltd | Registered Office: Athene, Odyssey Business Park, West End Road, London, HA4 6QE, GB | Registered in England 2832014 >> >> > > Regards, > Keith Regards, Keith ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error 2017-11-07 16:26 ` Wiles, Keith @ 2017-11-07 17:13 ` Alessio Silvestro 2017-11-08 9:21 ` Gaëtan Rivet 0 siblings, 1 reply; 7+ messages in thread From: Alessio Silvestro @ 2017-11-07 17:13 UTC (permalink / raw) To: Wiles, Keith; +Cc: users Dear Wiles, Same error also in app/pktgen-stats.c:187 and app/pktgen-latency.c:163. Thanks for the hint. Best regards, Alessio -----Original Message----- From: Wiles, Keith [mailto:keith.wiles@intel.com] Sent: 07 November 2017 17:27 To: Alessio Silvestro Cc: users@dpdk.org Subject: Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error Sorry, around the second fprintf() in the function. > On Nov 7, 2017, at 10:25 AM, Wiles, Keith <keith.wiles@intel.com> wrote: > > > >> On Nov 7, 2017, at 9:18 AM, Alessio Silvestro <alessio.silvestro@neclab.eu> wrote: >> >> Dear all, >> >> I have debian (4.13.0-0.bpo.1-amd64) and dpdk 17.11-rc2. >> >> I am trying to install pktgen (3.4.2), but when I do make I got the following error: >> >> >> CC cli-functions.o >> In file included from /usr/local/pktgen-3.4.2/app/pktgen.h:112:0, >> from /usr/local/pktgen-3.4.2/app/cli-functions.c:57: >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h: In function ”®pktgen_dump_dev_info”Æ: >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:327:28: error: >> dereferencing pointer to incomplete type ”®struct rte_pci_device”Æ >> di->pci_dev ? di->pci_dev->max_vfs : 0, > > > The problem is that we have changed the PCI code, I have fix for this, but it needs to be cleaned up and pushed but I am having some bandwidth problems. > > In the pktgen-port-cfg.h file at line 327 you need to add a #if around the first fprintf(). > > #if RTE_VERSION < RTE_VERSION_NUM(17, 5, 0, 0) > fprintf( … > ); > #endif > > Maybe other ones in the code too. I will try to find some time to push that patch. > >> ^~ >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:25: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 3 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", >> ^ >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:49: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 4 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", >> >> Do you have any hint or patch to suggest? >> >> Thanks, >> Alessio >> >> >> =============================================== >> Alessio Silvestro „¢„ģ„Ć„·„Ŗ””„·„ė„Ł„¹„Č„ķ >> Early Stage Researcher >> >> Phone: +49 (0) 6221 4342 ØC 134 >> e-mail: >> Alessio.Silvestro@neclab.eu<mailto:Alessio.Silvestro@neclab.eu> >> >> Data Science and System Platform Research Division NEC Europe Ltd. >> Nec Laboratories Europe >> Kurfعrsten-Anlage 36, 69115 Heidelberg, Germany >> =============================================== >> NEC Europe Ltd | Registered Office: Athene, Odyssey Business Park, >> West End Road, London, HA4 6QE, GB | Registered in England 2832014 >> >> > > Regards, > Keith Regards, Keith ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error 2017-11-07 17:13 ` Alessio Silvestro @ 2017-11-08 9:21 ` Gaëtan Rivet 2017-11-08 9:51 ` Alessio Silvestro 2017-11-08 13:08 ` Wiles, Keith 0 siblings, 2 replies; 7+ messages in thread From: Gaëtan Rivet @ 2017-11-08 9:21 UTC (permalink / raw) To: Alessio Silvestro; +Cc: Wiles, Keith, users Hey Alessio, On Tue, Nov 07, 2017 at 05:13:39PM +0000, Alessio Silvestro wrote: > Dear Wiles, > > Same error also in app/pktgen-stats.c:187 and app/pktgen-latency.c:163. > I may be the cause of this compilation issue. I moved around a few PCI declarations. A new header now declares rte_pci_device elements. You should probably include <rte_bus_pci.h> in addition to <rte_pci.h>. Anything that deals with PCI devices, drivers or bus functions are now in this new header. "rte_pci.h" only contains PCI utilities. > Thanks for the hint. > > Best regards, > Alessio > > -----Original Message----- > From: Wiles, Keith [mailto:keith.wiles@intel.com] > Sent: 07 November 2017 17:27 > To: Alessio Silvestro > Cc: users@dpdk.org > Subject: Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error > > Sorry, around the second fprintf() in the function. > > > On Nov 7, 2017, at 10:25 AM, Wiles, Keith <keith.wiles@intel.com> wrote: > > > > > > > >> On Nov 7, 2017, at 9:18 AM, Alessio Silvestro <alessio.silvestro@neclab.eu> wrote: > >> > >> Dear all, > >> > >> I have debian (4.13.0-0.bpo.1-amd64) and dpdk 17.11-rc2. > >> > >> I am trying to install pktgen (3.4.2), but when I do make I got the following error: > >> > >> > >> CC cli-functions.o > >> In file included from /usr/local/pktgen-3.4.2/app/pktgen.h:112:0, > >> from /usr/local/pktgen-3.4.2/app/cli-functions.c:57: > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h: In function ”®pktgen_dump_dev_info”Æ: > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:327:28: error: > >> dereferencing pointer to incomplete type ”®struct rte_pci_device”Æ > >> di->pci_dev ? di->pci_dev->max_vfs : 0, > > > > > > The problem is that we have changed the PCI code, I have fix for this, but it needs to be cleaned up and pushed but I am having some bandwidth problems. > > > > In the pktgen-port-cfg.h file at line 327 you need to add a #if around the first fprintf(). > > > > #if RTE_VERSION < RTE_VERSION_NUM(17, 5, 0, 0) > > fprintf( … > > ); > > #endif > > > > Maybe other ones in the code too. I will try to find some time to push that patch. > > > >> ^~ > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:25: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 3 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] > >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", > >> ^ > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:49: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 4 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] > >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", > >> > >> Do you have any hint or patch to suggest? > >> > >> Thanks, > >> Alessio > >> > >> > >> =============================================== > >> Alessio Silvestro „¢„ģ„Ć„·„Ŗ””„·„ė„Ł„¹„Č„ķ > >> Early Stage Researcher > >> > >> Phone: +49 (0) 6221 4342 ØC 134 > >> e-mail: > >> Alessio.Silvestro@neclab.eu<mailto:Alessio.Silvestro@neclab.eu> > >> > >> Data Science and System Platform Research Division NEC Europe Ltd. > >> Nec Laboratories Europe > >> Kurfعrsten-Anlage 36, 69115 Heidelberg, Germany > >> =============================================== > >> NEC Europe Ltd | Registered Office: Athene, Odyssey Business Park, > >> West End Road, London, HA4 6QE, GB | Registered in England 2832014 > >> > >> > > > > Regards, > > Keith > > Regards, > Keith > -- Gaëtan Rivet 6WIND ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error 2017-11-08 9:21 ` Gaëtan Rivet @ 2017-11-08 9:51 ` Alessio Silvestro 2017-11-08 13:08 ` Wiles, Keith 1 sibling, 0 replies; 7+ messages in thread From: Alessio Silvestro @ 2017-11-08 9:51 UTC (permalink / raw) To: Gaëtan Rivet; +Cc: Wiles, Keith, users Dear Gaëtan , I did realize that the rte_pci_device definitions was in rte_bus_pci.h. If you insert that header, there are no more compilation issues. I just want to make this error public to the community in order to help :) Thanks everyone for the answers. Best regards, Alessio -----Original Message----- From: Gaëtan Rivet [mailto:gaetan.rivet@6wind.com] Sent: 08 November 2017 10:22 To: Alessio Silvestro Cc: Wiles, Keith; users@dpdk.org Subject: Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error Hey Alessio, On Tue, Nov 07, 2017 at 05:13:39PM +0000, Alessio Silvestro wrote: > Dear Wiles, > > Same error also in app/pktgen-stats.c:187 and app/pktgen-latency.c:163. > I may be the cause of this compilation issue. I moved around a few PCI declarations. A new header now declares rte_pci_device elements. You should probably include <rte_bus_pci.h> in addition to <rte_pci.h>. Anything that deals with PCI devices, drivers or bus functions are now in this new header. "rte_pci.h" only contains PCI utilities. > Thanks for the hint. > > Best regards, > Alessio > > -----Original Message----- > From: Wiles, Keith [mailto:keith.wiles@intel.com] > Sent: 07 November 2017 17:27 > To: Alessio Silvestro > Cc: users@dpdk.org > Subject: Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error > > Sorry, around the second fprintf() in the function. > > > On Nov 7, 2017, at 10:25 AM, Wiles, Keith <keith.wiles@intel.com> wrote: > > > > > > > >> On Nov 7, 2017, at 9:18 AM, Alessio Silvestro <alessio.silvestro@neclab.eu> wrote: > >> > >> Dear all, > >> > >> I have debian (4.13.0-0.bpo.1-amd64) and dpdk 17.11-rc2. > >> > >> I am trying to install pktgen (3.4.2), but when I do make I got the following error: > >> > >> > >> CC cli-functions.o > >> In file included from /usr/local/pktgen-3.4.2/app/pktgen.h:112:0, > >> from /usr/local/pktgen-3.4.2/app/cli-functions.c:57: > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h: In function ”®pktgen_dump_dev_info”Æ: > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:327:28: error: > >> dereferencing pointer to incomplete type ”®struct rte_pci_device”Æ > >> di->pci_dev ? di->pci_dev->max_vfs : 0, > > > > > > The problem is that we have changed the PCI code, I have fix for this, but it needs to be cleaned up and pushed but I am having some bandwidth problems. > > > > In the pktgen-port-cfg.h file at line 327 you need to add a #if around the first fprintf(). > > > > #if RTE_VERSION < RTE_VERSION_NUM(17, 5, 0, 0) > > fprintf( … > > ); > > #endif > > > > Maybe other ones in the code too. I will try to find some time to push that patch. > > > >> ^~ > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:25: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 3 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] > >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", > >> ^ > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:49: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 4 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] > >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", > >> > >> Do you have any hint or patch to suggest? > >> > >> Thanks, > >> Alessio > >> > >> > >> =============================================== > >> Alessio Silvestro „¢„ģ„Ć„·„Ŗ””„·„ė„Ł„¹„Č„ķ > >> Early Stage Researcher > >> > >> Phone: +49 (0) 6221 4342 ØC 134 > >> e-mail: > >> Alessio.Silvestro@neclab.eu<mailto:Alessio.Silvestro@neclab.eu> > >> > >> Data Science and System Platform Research Division NEC Europe Ltd. > >> Nec Laboratories Europe > >> Kurfعrsten-Anlage 36, 69115 Heidelberg, Germany > >> =============================================== > >> NEC Europe Ltd | Registered Office: Athene, Odyssey Business Park, > >> West End Road, London, HA4 6QE, GB | Registered in England 2832014 > >> > >> > > > > Regards, > > Keith > > Regards, > Keith > -- Gaëtan Rivet 6WIND ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error 2017-11-08 9:21 ` Gaëtan Rivet 2017-11-08 9:51 ` Alessio Silvestro @ 2017-11-08 13:08 ` Wiles, Keith 1 sibling, 0 replies; 7+ messages in thread From: Wiles, Keith @ 2017-11-08 13:08 UTC (permalink / raw) To: Gaëtan Rivet; +Cc: Alessio Silvestro, users Thanks > On Nov 8, 2017, at 3:21 AM, Gaëtan Rivet <gaetan.rivet@6wind.com> wrote: > > Hey Alessio, > > On Tue, Nov 07, 2017 at 05:13:39PM +0000, Alessio Silvestro wrote: >> Dear Wiles, >> >> Same error also in app/pktgen-stats.c:187 and app/pktgen-latency.c:163. >> > > I may be the cause of this compilation issue. > I moved around a few PCI declarations. > > A new header now declares rte_pci_device elements. > You should probably include <rte_bus_pci.h> in addition to <rte_pci.h>. > > Anything that deals with PCI devices, drivers or bus functions are now > in this new header. "rte_pci.h" only contains PCI utilities. > >> Thanks for the hint. >> >> Best regards, >> Alessio >> >> -----Original Message----- >> From: Wiles, Keith [mailto:keith.wiles@intel.com] >> Sent: 07 November 2017 17:27 >> To: Alessio Silvestro >> Cc: users@dpdk.org >> Subject: Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error >> >> Sorry, around the second fprintf() in the function. >> >>> On Nov 7, 2017, at 10:25 AM, Wiles, Keith <keith.wiles@intel.com> wrote: >>> >>> >>> >>>> On Nov 7, 2017, at 9:18 AM, Alessio Silvestro <alessio.silvestro@neclab.eu> wrote: >>>> >>>> Dear all, >>>> >>>> I have debian (4.13.0-0.bpo.1-amd64) and dpdk 17.11-rc2. >>>> >>>> I am trying to install pktgen (3.4.2), but when I do make I got the following error: >>>> >>>> >>>> CC cli-functions.o >>>> In file included from /usr/local/pktgen-3.4.2/app/pktgen.h:112:0, >>>> from /usr/local/pktgen-3.4.2/app/cli-functions.c:57: >>>> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h: In function ”®pktgen_dump_dev_info”Æ: >>>> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:327:28: error: >>>> dereferencing pointer to incomplete type ”®struct rte_pci_device”Æ >>>> di->pci_dev ? di->pci_dev->max_vfs : 0, >>> >>> >>> The problem is that we have changed the PCI code, I have fix for this, but it needs to be cleaned up and pushed but I am having some bandwidth problems. >>> >>> In the pktgen-port-cfg.h file at line 327 you need to add a #if around the first fprintf(). >>> >>> #if RTE_VERSION < RTE_VERSION_NUM(17, 5, 0, 0) >>> fprintf( … >>> ); >>> #endif >>> >>> Maybe other ones in the code too. I will try to find some time to push that patch. >>> >>>> ^~ >>>> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:25: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 3 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] >>>> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", >>>> ^ >>>> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:49: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 4 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] >>>> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", >>>> >>>> Do you have any hint or patch to suggest? >>>> >>>> Thanks, >>>> Alessio >>>> >>>> >>>> =============================================== >>>> Alessio Silvestro „¢„ģ„Ć„·„Ŗ””„·„ė„Ł„¹„Č„ķ >>>> Early Stage Researcher >>>> >>>> Phone: +49 (0) 6221 4342 ØC 134 >>>> e-mail: >>>> Alessio.Silvestro@neclab.eu<mailto:Alessio.Silvestro@neclab.eu> >>>> >>>> Data Science and System Platform Research Division NEC Europe Ltd. >>>> Nec Laboratories Europe >>>> Kurfعrsten-Anlage 36, 69115 Heidelberg, Germany >>>> =============================================== >>>> NEC Europe Ltd | Registered Office: Athene, Odyssey Business Park, >>>> West End Road, London, HA4 6QE, GB | Registered in England 2832014 >>>> >>>> >>> >>> Regards, >>> Keith >> >> Regards, >> Keith >> > > -- > Gaëtan Rivet > 6WIND Regards, Keith ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-11-08 13:08 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-11-07 15:18 [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error Alessio Silvestro 2017-11-07 16:25 ` Wiles, Keith 2017-11-07 16:26 ` Wiles, Keith 2017-11-07 17:13 ` Alessio Silvestro 2017-11-08 9:21 ` Gaëtan Rivet 2017-11-08 9:51 ` Alessio Silvestro 2017-11-08 13:08 ` Wiles, Keith
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).