Bug 423

Summary: usertools/dpdk-setup.sh can not be used to run an application without compiling dpdk first
Product: DPDK Reporter: Sarosh Arif (sarosh.arif)
Component: otherAssignee: Thomas Monjalon (thomas)
Status: UNCONFIRMED ---    
Severity: minor CC: ajit.khaparde
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

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.