Skip to content
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

libmoon can't find qlogic QL41000 nic while dpdk example app can work #99

Open
xztong opened this issue May 25, 2020 · 2 comments
Open

Comments

@xztong
Copy link

xztong commented May 25, 2020

I can succesfully run the dpdk example application (e.g. l2fwd) with this qlogic 41000 seriese nic card, howerver I can't get it work with libmoon example application. It shows "there are only 0 ports, tried to configure port id 0".

Please help, I 've been stuck with this issue for almost a week.

"dpdk-devbind -s "
Network devices using DPDK-compatible driver

0000:19:00.0 'FastLinQ QL41000 Series 10/25/40/50GbE Controller 8070' drv=igb_uio unused=
0000:19:00.1 'FastLinQ QL41000 Series 10/25/40/50GbE Controller 8070' drv=igb_uio unused=
0000:19:00.2 'FastLinQ QL41000 Series 10/25/40/50GbE Controller 8070' drv=igb_uio unused=
0000:19:00.3 'FastLinQ QL41000 Series 10/25/40/50GbE Controller 8070' drv=igb_uio unused=
0000:86:00.0 'FastLinQ QL41000 Series 10/25/40/50GbE Controller 8070' drv=igb_uio unused=
0000:86:00.1 'FastLinQ QL41000 Series 10/25/40/50GbE Controller 8070' drv=igb_uio unused=

=====libmoon example app fails =========================
build/libmoon examples/l2-forward.lua 0 1
[INFO] Initializing DPDK. This will take a few seconds...
EAL: Detected 40 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
[INFO] Found 0 usable devices:
[FATAL] Lua error in task master
/home/ct_tongxz/libmoon/lua/device.lua:100: there are only 0 ports, tried to configure port id 0

======dpdk example app succeeds=========================

./l2fwd -- -port 0x3

EAL: Detected 40 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: PCI device 0000:19:00.0 on NUMA socket 0
EAL: probe driver: 1077:8070 net_qede
EAL: PCI device 0000:19:00.1 on NUMA socket 0
EAL: probe driver: 1077:8070 net_qede
EAL: PCI device 0000:19:00.2 on NUMA socket 0
EAL: probe driver: 1077:8070 net_qede
EAL: PCI device 0000:19:00.3 on NUMA socket 0
EAL: probe driver: 1077:8070 net_qede
EAL: PCI device 0000:86:00.0 on NUMA socket 1
EAL: probe driver: 1077:8070 net_qede
EAL: PCI device 0000:86:00.1 on NUMA socket 1
EAL: probe driver: 1077:8070 net_qede
MAC updating enabled
Lcore 0: RX port 0
Lcore 1: RX port 1
Lcore 2: RX port 2
Lcore 3: RX port 3
Lcore 4: RX port 4
Lcore 5: RX port 5
Initializing port 0... done:
Port 0, MAC address: 34:80:0D:43:32:1C

Initializing port 1... done:
Port 1, MAC address: 34:80:0D:43:32:1D

Initializing port 2... done:
Port 2, MAC address: 34:80:0D:43:32:1E

Initializing port 3... done:
Port 3, MAC address: 34:80:0D:43:32:1F

Initializing port 4... done:
Port 4, MAC address: 34:80:0D:4A:FC:82

Initializing port 5... done:
Port 5, MAC address: 34:80:0D:4A:FC:83

Checking link status..........................................................................................done
Port 0 Link Down
Port 1 Link Down
Port 2 Link Up - speed 1000 Mbps - full-duplex
Port 3 Link Up - speed 1000 Mbps - full-duplex
Port 4 Link Down
Port 5 Link Down
L2FWD: entering main loop on lcore 1
L2FWD: -- lcoreid=1 portid=1
L2FWD: entering main loop on lcore 3
L2FWD: -- lcoreid=3 portid=3
L2FWD: entering main loop on lcore 2
L2FWD: lcore 7 has nothing to do
L2FWD: entering main loop on lcore 4
L2FWD: -- lcoreid=4 portid=4
L2FWD: lcore 6 has nothing to do
L2FWD: lcore 14 has nothing to do
L2FWD: lcore 8 has nothing to do
L2FWD: -- lcoreid=2 portid=2
L2FWD: lcore 12 has nothing to do
L2FWD: lcore 13 has nothing to do
L2FWD: lcore 9 has nothing to do
L2FWD: lcore 15 has nothing to do
L2FWD: entering main loop on lcore 5
L2FWD: -- lcoreid=5 portid=5
L2FWD: lcore 11 has nothing to do
L2FWD: lcore 10 has nothing to do
L2FWD: lcore 16 has nothing to do
L2FWD: lcore 17 has nothing to do
L2FWD: lcore 18 has nothing to do
L2FWD: lcore 19 has nothing to do
L2FWD: lcore 21 has nothing to do
L2FWD: lcore 22 has nothing to do
L2FWD: lcore 28 has nothing to do
L2FWD: lcore 30 has nothing to do
L2FWD: lcore 25 has nothing to do
L2FWD: lcore 27 has nothing to do
L2FWD: lcore 23 has nothing to do
L2FWD: lcore 35 has nothing to do
L2FWD: lcore 20 has nothing to do
L2FWD: lcore 32 has nothing to do
L2FWD: lcore 33 has nothing to do
L2FWD: lcore 24 has nothing to do
L2FWD: lcore 36 has nothing to do
L2FWD: lcore 31 has nothing to do
L2FWD: lcore 26 has nothing to do
L2FWD: entering main loop on lcore 0
L2FWD: -- lcoreid=0 portid=0

Port statistics ====================================
Statistics for port 0 ------------------------------
Packets sent: 0
Packets received: 0
Packets dropped: 0
Statistics for port 1 ------------------------------
Packets sent: 0
Packets received: 0
Packets dropped: 0
Statistics for port 2 ------------------------------
Packets sent: 0
Packets received: 6296
Packets dropped: 0
Statistics for port 3 ------------------------------
Packets sent: 6298
Packets received: 0
Packets dropped: 0
Statistics for port 4 ------------------------------

@GrehXscape
Copy link

Have you already fixed that?

@emmericp
Copy link
Member

we do not have access to qlogic hardware, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants