-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/home/ubuntu/MoonGen/build/../libmoon/lua/device.lua:100: there are only 0 ports, tried to configure port id 0 #310
Comments
Hi, did you find a solution for this issue? |
|
Refer to #301, You can try dpdk-19.05 branch. it's OK for me with Mellanox MT27800 100G nics. $ git checkout remotes/origin/dpdk-19.05 -b dpdk-19.05
$ diff ./libmoon/CMakeLists.txt.bak ./libmoon/CMakeLists.txt
index 99e1458..5064836 100644
--- ./libmoon/CMakeLists.txt.bak
+++ ./libmoon/CMakeLists.txt
@@ -43,6 +43,8 @@ SET(DPDK_LIBS
#Add Mellanox libraries if options are specified
if(USE_MLX5 OR USE_MLX4)
SET(DPDK_LIBS ${DPDK_LIBS} ibverbs)
+ SET(DPDK_LIBS ${DPDK_LIBS} mlx5)
+ SET(DPDK_LIBS ${DPDK_LIBS} mnl)
endif()
if(USE_MLX5)
$ ./build.sh --mlx5 |
Thank you sir, can you also please help me up with these queries
sudo ./moongen-simple start load-latency:0:1:rate=10Mp/s,time=3m
[INFO] Initializing DPDK. This will take a few seconds...
EAL: Detected 8 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
[INFO] Found 0 usable devices:
[ERROR] Invalid device number "0" for flow "load-latency".
[ERROR] Invalid device number "1" for flow "load-latency".
[ERROR] Need to pass at least one tx or rx device.
[ERROR] No valid flows remain
sudo ./build/MoonGen examples/l3-load-latency.lua 0 1
[INFO] Initializing DPDK. This will take a few seconds...
EAL: Detected 8 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
[INFO] Found 0 usable devices:
[FATAL] Lua error in task master
/home/ubuntu/MoonGen/build/../libmoon/lua/device.lua:100: there are only 0 ports, tried to configure port id 0
Stack Traceback
(2) Lua method 'fatal' at file '/home/ubuntu/MoonGen/build/../libmoon/lua/log.lua:129'
Local variables:
self = table: 0x411bcf98 {DEBUG:0, fatal:function: 0x4020bae0, writeToLog:function: 0x4020bac0, INFO:1 (more...)}
str = string: "there are only 0 ports, tried to configure port id 0"
(3) Lua field 'config' at file '/home/ubuntu/MoonGen/build/../libmoon/lua/device.lua:100'
Local variables:
args = table: 0x41f1b9f0 {rxQueues:3, txQueues:3, port:0}
(4) Lua function 'master' at file 'examples/l3-load-latency.lua:37' (best guess)
Local variables:
args = table: 0x4191f1a8 {rxDev:1, txDev:0, flows:4, rate:10000, size:60}
(5) global C function 'xpcall'
(6) Lua upvalue 'master' at file '/home/ubuntu/MoonGen/build/../libmoon/lua/main.lua:96'
Local variables:
_ = string: "./build/MoonGen"
file = string: "examples/l3-load-latency.lua"
args = table: 0x408824b0 {1:0, 2:1}
cfgFile = nil
ok = boolean: true
parsedArgs = table: 0x4191eec0 {1:table: 0x4191f1a8}
(7) Lua function 'main' at file '/home/ubuntu/MoonGen/build/../libmoon/lua/main.lua:146' (best guess)
Local variables:
task = string: "master"
/home/ubuntu/MoonGen/build/../libmoon/lua/device.lua:100: there are only 0 ports, tried to configure port id 0
Originally posted by @rohit172001-eng in #306 (comment)
The text was updated successfully, but these errors were encountered: