Bug 423 - usertools/dpdk-setup.sh can not be used to run an application without compiling dpdk first
Summary: usertools/dpdk-setup.sh can not be used to run an application without compili...
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: other (show other bugs)
Version: unspecified
Hardware: All All
: Normal minor
Target Milestone: ---
Assignee: Thomas Monjalon
URL:
Depends on:
Blocks:
 
Reported: 2020-03-25 10:04 CET by Sarosh Arif
Modified: 2020-03-26 02:20 CET (History)
1 user (show)



Attachments

Description Sarosh Arif 2020-03-25 10:04:56 CET
When running an application using usertools/dpdk-setup.sh script, such as testpmd, the following command is executed "sudo $RTE_TARGET/app/testpmd". Where $RTE_TARGET is a variable, which is set when we compile dpdk using dpdk-setup script, otherwise it is empty. So lets say a person has pre-compiled dpdk and is just using the script to set hugepages and run testpmd, he would have to recompile just to set the variable. 

This issue can be resolved by asking the user to enter the name of his build directory if $RTE_TARGET is empty. The name entered by the user can then be stored in $RTE_TARGET.  

I can submit a patch if this solution seems appropriate.

Note You need to log in before you can comment on or make changes to this bug.