DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Dpdk-pktgen]dpdk pktgen build failed on x86
@ 2018-07-11 11:47 khemendra kumar
  2018-07-11 13:04 ` Wiles, Keith
  2018-07-11 13:21 ` Wiles, Keith
  0 siblings, 2 replies; 6+ messages in thread
From: khemendra kumar @ 2018-07-11 11:47 UTC (permalink / raw)
  To: dev; +Cc: Sirshak Das, Brian Brooks

Hi All,

Kindly help to check below compile error in DPDK Pkt-gen on x86.

I am following instructions from "
http://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html"

*Below cmd I followed:*
sudo make config T=x86_64-native-linuxapp-gcc
sudo make

sudo make install
sudo make RTE_SDK=/home/root1/khem/dpdk

*Below is error log:*
  INSTALL-APP dpdk-test-eventdev
  INSTALL-MAP dpdk-test-eventdev.map
Build complete [x86_64-native-linuxapp-gcc]
root1@compute-201:~/khem/dpdk$ sudo make install
make[1]: Nothing to be done for 'pre_install'.
================== Installing /usr/local/
Installation in /usr/local/ complete
root1@compute-201:~/khem/dpdk$ cd ../pktgen-dpdk/
root1@compute-201:~/khem/pktgen-dpdk$ sudo make
RTE_SDK=/home/root1/khem/dpdk
== lib
== common
== lua
== src
== cli
== app
  CC cli-functions.o
In file included from /home/root1/khem/pktgen-dpdk/app/pktgen.h:87:0,
                 from /home/root1/khem/pktgen-dpdk/app/cli-functions.c:28:
/home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h: In function
‘rte_eth_txconf_dump’:
/home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h:289:5: error: ‘struct
rte_eth_txconf’ has no member named ‘txq_flags’
   tx->txq_flags);
     ^
/home/root1/khem/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for target
'cli-functions.o' failed
make[2]: *** [cli-functions.o] Error 1
/home/root1/khem/dpdk/mk/rte.extapp.mk:19: recipe for target 'pktgen' failed
make[1]: *** [pktgen] Error 2
/home/root1/khem/dpdk/mk/rte.extsubdir.mk:21: recipe for target 'app' failed
make: *** [app] Error 2
root1@compute-201:~/khem/pktgen-dpdk$

Thanks & Regards
khem

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [Dpdk-pktgen]dpdk pktgen build failed on x86
  2018-07-11 11:47 [dpdk-dev] [Dpdk-pktgen]dpdk pktgen build failed on x86 khemendra kumar
@ 2018-07-11 13:04 ` Wiles, Keith
  2018-07-11 13:21 ` Wiles, Keith
  1 sibling, 0 replies; 6+ messages in thread
From: Wiles, Keith @ 2018-07-11 13:04 UTC (permalink / raw)
  To: khemendra kumar; +Cc: dev, Sirshak Das, Brian Brooks

What version of Pktgen and DPDK are you using?

Most likely DPDK has changed for the given version or Pktgen. I normally only keep pktgen working on the last releases version 18.05 in this case.

I am over due pushing a updated version of pktgen, so I will try to get that done soon.

> On Jul 11, 2018, at 6:47 AM, khemendra kumar <khemendra.kumar13@gmail.com> wrote:
> 
> Hi All,
> 
> Kindly help to check below compile error in DPDK Pkt-gen on x86.
> 
> I am following instructions from "
> http://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html"
> 
> *Below cmd I followed:*
> sudo make config T=x86_64-native-linuxapp-gcc
> sudo make
> 
> sudo make install
> sudo make RTE_SDK=/home/root1/khem/dpdk
> 
> *Below is error log:*
>  INSTALL-APP dpdk-test-eventdev
>  INSTALL-MAP dpdk-test-eventdev.map
> Build complete [x86_64-native-linuxapp-gcc]
> root1@compute-201:~/khem/dpdk$ sudo make install
> make[1]: Nothing to be done for 'pre_install'.
> ================== Installing /usr/local/
> Installation in /usr/local/ complete
> root1@compute-201:~/khem/dpdk$ cd ../pktgen-dpdk/
> root1@compute-201:~/khem/pktgen-dpdk$ sudo make
> RTE_SDK=/home/root1/khem/dpdk
> == lib
> == common
> == lua
> == src
> == cli
> == app
>  CC cli-functions.o
> In file included from /home/root1/khem/pktgen-dpdk/app/pktgen.h:87:0,
>                 from /home/root1/khem/pktgen-dpdk/app/cli-functions.c:28:
> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h: In function
> ‘rte_eth_txconf_dump’:
> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h:289:5: error: ‘struct
> rte_eth_txconf’ has no member named ‘txq_flags’
>   tx->txq_flags);
>     ^
> /home/root1/khem/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for target
> 'cli-functions.o' failed
> make[2]: *** [cli-functions.o] Error 1
> /home/root1/khem/dpdk/mk/rte.extapp.mk:19: recipe for target 'pktgen' failed
> make[1]: *** [pktgen] Error 2
> /home/root1/khem/dpdk/mk/rte.extsubdir.mk:21: recipe for target 'app' failed
> make: *** [app] Error 2
> root1@compute-201:~/khem/pktgen-dpdk$
> 
> Thanks & Regards
> khem

Regards,
Keith


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [Dpdk-pktgen]dpdk pktgen build failed on x86
  2018-07-11 11:47 [dpdk-dev] [Dpdk-pktgen]dpdk pktgen build failed on x86 khemendra kumar
  2018-07-11 13:04 ` Wiles, Keith
@ 2018-07-11 13:21 ` Wiles, Keith
  2018-07-11 14:17   ` Wiles, Keith
  1 sibling, 1 reply; 6+ messages in thread
From: Wiles, Keith @ 2018-07-11 13:21 UTC (permalink / raw)
  To: khemendra kumar; +Cc: dev, Sirshak Das, Brian Brooks



> On Jul 11, 2018, at 6:47 AM, khemendra kumar <khemendra.kumar13@gmail.com> wrote:
> 
> Hi All,
> 
> Kindly help to check below compile error in DPDK Pkt-gen on x86.
> 
> I am following instructions from "
> http://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html"
> 
> *Below cmd I followed:*
> sudo make config T=x86_64-native-linuxapp-gcc
> sudo make
> 
> sudo make install
> sudo make RTE_SDK=/home/root1/khem/dpdk
> 
> *Below is error log:*
>  INSTALL-APP dpdk-test-eventdev
>  INSTALL-MAP dpdk-test-eventdev.map
> Build complete [x86_64-native-linuxapp-gcc]
> root1@compute-201:~/khem/dpdk$ sudo make install
> make[1]: Nothing to be done for 'pre_install'.
> ================== Installing /usr/local/
> Installation in /usr/local/ complete
> root1@compute-201:~/khem/dpdk$ cd ../pktgen-dpdk/
> root1@compute-201:~/khem/pktgen-dpdk$ sudo make
> RTE_SDK=/home/root1/khem/dpdk
> == lib
> == common
> == lua
> == src
> == cli
> == app
>  CC cli-functions.o
> In file included from /home/root1/khem/pktgen-dpdk/app/pktgen.h:87:0,
>                 from /home/root1/khem/pktgen-dpdk/app/cli-functions.c:28:
> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h: In function
> ‘rte_eth_txconf_dump’:
> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h:289:5: error: ‘struct
> rte_eth_txconf’ has no member named ‘txq_flags’
>   tx->txq_flags);

Looks like you are using the HEAD of DPDK and that has changed for 18.08. use 18.05 version of DPDK for pktgen if you can. Pktgen and your application do not need to use the same version of DPDK unless you need some specific features in DPDK for Pktgen.

>     ^
> /home/root1/khem/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for target
> 'cli-functions.o' failed
> make[2]: *** [cli-functions.o] Error 1
> /home/root1/khem/dpdk/mk/rte.extapp.mk:19: recipe for target 'pktgen' failed
> make[1]: *** [pktgen] Error 2
> /home/root1/khem/dpdk/mk/rte.extsubdir.mk:21: recipe for target 'app' failed
> make: *** [app] Error 2
> root1@compute-201:~/khem/pktgen-dpdk$
> 
> Thanks & Regards
> khem

Regards,
Keith


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [Dpdk-pktgen]dpdk pktgen build failed on x86
  2018-07-11 13:21 ` Wiles, Keith
@ 2018-07-11 14:17   ` Wiles, Keith
  2018-07-11 14:26     ` khemendra kumar
  0 siblings, 1 reply; 6+ messages in thread
From: Wiles, Keith @ 2018-07-11 14:17 UTC (permalink / raw)
  To: khemendra kumar; +Cc: dev, Sirshak Das, Brian Brooks



> On Jul 11, 2018, at 8:21 AM, Wiles, Keith <keith.wiles@intel.com> wrote:
> 
> 
> 
>> On Jul 11, 2018, at 6:47 AM, khemendra kumar <khemendra.kumar13@gmail.com> wrote:
>> 
>> Hi All,
>> 
>> Kindly help to check below compile error in DPDK Pkt-gen on x86.
>> 
>> I am following instructions from "
>> http://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html"
>> 
>> *Below cmd I followed:*
>> sudo make config T=x86_64-native-linuxapp-gcc
>> sudo make
>> 
>> sudo make install
>> sudo make RTE_SDK=/home/root1/khem/dpdk
>> 
>> *Below is error log:*
>> INSTALL-APP dpdk-test-eventdev
>> INSTALL-MAP dpdk-test-eventdev.map
>> Build complete [x86_64-native-linuxapp-gcc]
>> root1@compute-201:~/khem/dpdk$ sudo make install
>> make[1]: Nothing to be done for 'pre_install'.
>> ================== Installing /usr/local/
>> Installation in /usr/local/ complete
>> root1@compute-201:~/khem/dpdk$ cd ../pktgen-dpdk/
>> root1@compute-201:~/khem/pktgen-dpdk$ sudo make
>> RTE_SDK=/home/root1/khem/dpdk
>> == lib
>> == common
>> == lua
>> == src
>> == cli
>> == app
>> CC cli-functions.o
>> In file included from /home/root1/khem/pktgen-dpdk/app/pktgen.h:87:0,
>>                from /home/root1/khem/pktgen-dpdk/app/cli-functions.c:28:
>> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h: In function
>> ‘rte_eth_txconf_dump’:
>> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h:289:5: error: ‘struct
>> rte_eth_txconf’ has no member named ‘txq_flags’
>>  tx->txq_flags);
> 
> Looks like you are using the HEAD of DPDK and that has changed for 18.08. use 18.05 version of DPDK for pktgen if you can. Pktgen and your application do not need to use the same version of DPDK unless you need some specific features in DPDK for Pktgen.
> 

I pushed a new version of Pktgen 3.5.2 that works back to at least DPDK version 18.02.

>>    ^
>> /home/root1/khem/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for target
>> 'cli-functions.o' failed
>> make[2]: *** [cli-functions.o] Error 1
>> /home/root1/khem/dpdk/mk/rte.extapp.mk:19: recipe for target 'pktgen' failed
>> make[1]: *** [pktgen] Error 2
>> /home/root1/khem/dpdk/mk/rte.extsubdir.mk:21: recipe for target 'app' failed
>> make: *** [app] Error 2
>> root1@compute-201:~/khem/pktgen-dpdk$
>> 
>> Thanks & Regards
>> khem
> 
> Regards,
> Keith

Regards,
Keith


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [Dpdk-pktgen]dpdk pktgen build failed on x86
  2018-07-11 14:17   ` Wiles, Keith
@ 2018-07-11 14:26     ` khemendra kumar
  2018-07-11 14:59       ` Wiles, Keith
  0 siblings, 1 reply; 6+ messages in thread
From: khemendra kumar @ 2018-07-11 14:26 UTC (permalink / raw)
  To: Wiles, Keith; +Cc: dev, Sirshak Das, Brian Brooks

Hi Keith,

Thanks for your quick help.

I am new to Pktgen and DPDK :(

Now I tried with DPDK18.02 version with Pktgen of 3.5.0 version.
This works on my x86 machine :)

Further I can use Pktgen 3.5.2 with DPDK 18.02. as you suggested.


Now I am trying *Pktgen on ARM machine*.
I am using *DPDK 18.02 and Pktgen3.5* stable.
But I met below error:
testuser@huawei-2:~/khem/VPP_Profile_setup/pktgen-3.5.0$ sudo make
RTE_SDK=/home/testuser/khem/VPP_Profile_setup/dpdk-stable-18.02.2
/home/testuser/khem/VPP_Profile_setup/dpdk-stable-18.02.2/mk/internal/
rte.extvars.mk:29: *** Cannot find .config in
/home/testuser/khem/VPP_Profile_setup/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc.
Stop.

I will check with Pktgen 3.5.2 also further.



Just to clarify my use case, I want to use *Pktgen as TG for send traffic
to VPP.*
*Both Pktgen and VPP will be running on 2 ARM machines (ARMv8).*


Thanks & Regards
Khem

On Wed, Jul 11, 2018 at 7:47 PM, Wiles, Keith <keith.wiles@intel.com> wrote:

>
>
> > On Jul 11, 2018, at 8:21 AM, Wiles, Keith <keith.wiles@intel.com> wrote:
> >
> >
> >
> >> On Jul 11, 2018, at 6:47 AM, khemendra kumar <
> khemendra.kumar13@gmail.com> wrote:
> >>
> >> Hi All,
> >>
> >> Kindly help to check below compile error in DPDK Pkt-gen on x86.
> >>
> >> I am following instructions from "
> >> http://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html"
> >>
> >> *Below cmd I followed:*
> >> sudo make config T=x86_64-native-linuxapp-gcc
> >> sudo make
> >>
> >> sudo make install
> >> sudo make RTE_SDK=/home/root1/khem/dpdk
> >>
> >> *Below is error log:*
> >> INSTALL-APP dpdk-test-eventdev
> >> INSTALL-MAP dpdk-test-eventdev.map
> >> Build complete [x86_64-native-linuxapp-gcc]
> >> root1@compute-201:~/khem/dpdk$ sudo make install
> >> make[1]: Nothing to be done for 'pre_install'.
> >> ================== Installing /usr/local/
> >> Installation in /usr/local/ complete
> >> root1@compute-201:~/khem/dpdk$ cd ../pktgen-dpdk/
> >> root1@compute-201:~/khem/pktgen-dpdk$ sudo make
> >> RTE_SDK=/home/root1/khem/dpdk
> >> == lib
> >> == common
> >> == lua
> >> == src
> >> == cli
> >> == app
> >> CC cli-functions.o
> >> In file included from /home/root1/khem/pktgen-dpdk/app/pktgen.h:87:0,
> >>                from /home/root1/khem/pktgen-dpdk/
> app/cli-functions.c:28:
> >> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h: In function
> >> ‘rte_eth_txconf_dump’:
> >> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h:289:5: error:
> ‘struct
> >> rte_eth_txconf’ has no member named ‘txq_flags’
> >>  tx->txq_flags);
> >
> > Looks like you are using the HEAD of DPDK and that has changed for
> 18.08. use 18.05 version of DPDK for pktgen if you can. Pktgen and your
> application do not need to use the same version of DPDK unless you need
> some specific features in DPDK for Pktgen.
> >
>
> I pushed a new version of Pktgen 3.5.2 that works back to at least DPDK
> version 18.02.
>
> >>    ^
> >> /home/root1/khem/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for
> target
> >> 'cli-functions.o' failed
> >> make[2]: *** [cli-functions.o] Error 1
> >> /home/root1/khem/dpdk/mk/rte.extapp.mk:19: recipe for target 'pktgen'
> failed
> >> make[1]: *** [pktgen] Error 2
> >> /home/root1/khem/dpdk/mk/rte.extsubdir.mk:21: recipe for target 'app'
> failed
> >> make: *** [app] Error 2
> >> root1@compute-201:~/khem/pktgen-dpdk$
> >>
> >> Thanks & Regards
> >> khem
> >
> > Regards,
> > Keith
>
> Regards,
> Keith
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [dpdk-dev] [Dpdk-pktgen]dpdk pktgen build failed on x86
  2018-07-11 14:26     ` khemendra kumar
@ 2018-07-11 14:59       ` Wiles, Keith
  0 siblings, 0 replies; 6+ messages in thread
From: Wiles, Keith @ 2018-07-11 14:59 UTC (permalink / raw)
  To: khemendra kumar; +Cc: dev, Sirshak Das, Brian Brooks



> On Jul 11, 2018, at 9:26 AM, khemendra kumar <khemendra.kumar13@gmail.com> wrote:
> 
> Hi Keith,
> 
> Thanks for your quick help.
> 
> I am new to Pktgen and DPDK :(
> 
> Now I tried with DPDK18.02 version with Pktgen of 3.5.0 version.
> This works on my x86 machine :)
> 
> Further I can use Pktgen 3.5.2 with DPDK 18.02. as you suggested.
> 
> 
> Now I am trying Pktgen on ARM machine. 
> I am using DPDK 18.02 and Pktgen3.5 stable.
> But I met below error:
> testuser@huawei-2:~/khem/VPP_Profile_setup/pktgen-3.5.0$ sudo make RTE_SDK=/home/testuser/khem/VPP_Profile_setup/dpdk-stable-18.02.2
> /home/testuser/khem/VPP_Profile_setup/dpdk-stable-18.02.2/mk/internal/rte.extvars.mk:29: *** Cannot find .config in /home/testuser/khem/VPP_Profile_setup/dpdk-stable-18.02.2/x86_64-native-linuxapp-gcc.  Stop.
> 

Normally that message happens when you do not have the RTE_SDK and RTE_TARGET set in the env. It also may mean you forgot to build DPDK using that SDK and TARGET. Look for the .config file in the $RTE_SDK/$RTE_TARGET directory as that is what it is complaining about.

> I will check with Pktgen 3.5.2 also further.
> 
> 
> 
> Just to clarify my use case, I want to use Pktgen as TG for send traffic to VPP.
> Both Pktgen and VPP will be running on 2 ARM machines (ARMv8).
> 
> 
> Thanks & Regards
> Khem
> 
> On Wed, Jul 11, 2018 at 7:47 PM, Wiles, Keith <keith.wiles@intel.com> wrote:
> 
> 
> > On Jul 11, 2018, at 8:21 AM, Wiles, Keith <keith.wiles@intel.com> wrote:
> > 
> > 
> > 
> >> On Jul 11, 2018, at 6:47 AM, khemendra kumar <khemendra.kumar13@gmail.com> wrote:
> >> 
> >> Hi All,
> >> 
> >> Kindly help to check below compile error in DPDK Pkt-gen on x86.
> >> 
> >> I am following instructions from "
> >> http://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html"
> >> 
> >> *Below cmd I followed:*
> >> sudo make config T=x86_64-native-linuxapp-gcc
> >> sudo make
> >> 
> >> sudo make install
> >> sudo make RTE_SDK=/home/root1/khem/dpdk
> >> 
> >> *Below is error log:*
> >> INSTALL-APP dpdk-test-eventdev
> >> INSTALL-MAP dpdk-test-eventdev.map
> >> Build complete [x86_64-native-linuxapp-gcc]
> >> root1@compute-201:~/khem/dpdk$ sudo make install
> >> make[1]: Nothing to be done for 'pre_install'.
> >> ================== Installing /usr/local/
> >> Installation in /usr/local/ complete
> >> root1@compute-201:~/khem/dpdk$ cd ../pktgen-dpdk/
> >> root1@compute-201:~/khem/pktgen-dpdk$ sudo make
> >> RTE_SDK=/home/root1/khem/dpdk
> >> == lib
> >> == common
> >> == lua
> >> == src
> >> == cli
> >> == app
> >> CC cli-functions.o
> >> In file included from /home/root1/khem/pktgen-dpdk/app/pktgen.h:87:0,
> >>                from /home/root1/khem/pktgen-dpdk/app/cli-functions.c:28:
> >> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h: In function
> >> ‘rte_eth_txconf_dump’:
> >> /home/root1/khem/pktgen-dpdk/app/pktgen-port-cfg.h:289:5: error: ‘struct
> >> rte_eth_txconf’ has no member named ‘txq_flags’
> >>  tx->txq_flags);
> > 
> > Looks like you are using the HEAD of DPDK and that has changed for 18.08. use 18.05 version of DPDK for pktgen if you can. Pktgen and your application do not need to use the same version of DPDK unless you need some specific features in DPDK for Pktgen.
> > 
> 
> I pushed a new version of Pktgen 3.5.2 that works back to at least DPDK version 18.02.
> 
> >>    ^
> >> /home/root1/khem/dpdk/mk/internal/rte.compile-pre.mk:114: recipe for target
> >> 'cli-functions.o' failed
> >> make[2]: *** [cli-functions.o] Error 1
> >> /home/root1/khem/dpdk/mk/rte.extapp.mk:19: recipe for target 'pktgen' failed
> >> make[1]: *** [pktgen] Error 2
> >> /home/root1/khem/dpdk/mk/rte.extsubdir.mk:21: recipe for target 'app' failed
> >> make: *** [app] Error 2
> >> root1@compute-201:~/khem/pktgen-dpdk$
> >> 
> >> Thanks & Regards
> >> khem
> > 
> > Regards,
> > Keith
> 
> Regards,
> Keith
> 
> 

Regards,
Keith


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-07-11 14:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-11 11:47 [dpdk-dev] [Dpdk-pktgen]dpdk pktgen build failed on x86 khemendra kumar
2018-07-11 13:04 ` Wiles, Keith
2018-07-11 13:21 ` Wiles, Keith
2018-07-11 14:17   ` Wiles, Keith
2018-07-11 14:26     ` khemendra kumar
2018-07-11 14:59       ` 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).