DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] port 0 not present on board error
@ 2017-12-08  4:01 Pragash Vijayaragavan
  2017-12-08  4:18 ` Dave Boutcher
  0 siblings, 1 reply; 15+ messages in thread
From: Pragash Vijayaragavan @ 2017-12-08  4:01 UTC (permalink / raw)
  To: users

Hi Guys,

I am trying to run the l3fwd dpdk app on my machine.

I am getting the following error, can someone help me, Thanks.

pragash@revvit:~/dpdk-stable-17.05.2/examples/l3fwd/build$ ./l3fwd -l 0-4
--no-huge -- -p 0x1
EAL: Detected 20 lcore(s)
EAL: Probing VFIO support...
EAL: Started without hugepages support, physical addresses not available
EAL: PCI device 0000:02:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1583 net_i40e
EAL: Requested device 0000:02:00.0 cannot be used
EAL: PCI device 0000:02:00.1 on NUMA socket 0
EAL:   probe driver: 8086:1583 net_i40e
EAL: PCI device 0000:04:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1583 net_i40e
EAL: Requested device 0000:04:00.0 cannot be used
EAL: PCI device 0000:04:00.1 on NUMA socket 0
EAL:   probe driver: 8086:1583 net_i40e
EAL: PCI device 0000:08:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1521 net_e1000_igb
EAL: PCI device 0000:08:00.1 on NUMA socket 0
EAL:   probe driver: 8086:1521 net_e1000_igb
L3FWD: LPM or EM none selected, default LPM on
port 0 is not present on the board
EAL: Error - exiting with code: 1
  Cause: check_port_config failed




Thanks,

Pragash Vijayaragavan
Grad Student at Rochester Institute of Technology
email : pxv3620@rit.edu
ph : 585 764 4662

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [dpdk-users] port 0 not present on board error
@ 2017-12-08 12:11 Hristo.Trifonov
  2017-12-08 20:22 ` Pragash Vijayaragavan
  0 siblings, 1 reply; 15+ messages in thread
From: Hristo.Trifonov @ 2017-12-08 12:11 UTC (permalink / raw)
  To: users

Hi Pragash,

How many ports are assigned to dpdk?
Why is there only 1 port in the portmask (-p 0x1)?

Dpdk would typically use pair(s) of ports.
First port(0x1) in the portmask(0x3) is usually ingress traffic and the second port(0x2) of the pair is the egress traffic.
Try with -p 0x3 portmask but make sure you have at least 2 ports already assigned for use with a dpdk app.
If you have more than 2 ports adjust the portmask hex number to reflect the situation.

Hristo T.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [dpdk-users] port 0 not present on board error
@ 2017-12-11 11:21 Hristo.Trifonov
  2017-12-11 21:24 ` Pragash Vijayaragavan
  0 siblings, 1 reply; 15+ messages in thread
From: Hristo.Trifonov @ 2017-12-11 11:21 UTC (permalink / raw)
  To: users

Not showing "Active" status is perfectly normal.

The problem here is that you will probably need to supply extra parameters.
This is from your previous posts:

pragash at revvit<http://dpdk.org/ml/listinfo/users>:~/dpdk-stable-17.05.2/examples/l3fwd/build$ ./l3fwd -l 0-4 --no-huge -- -p 0x1

Try changing to:

pragash at revvit<http://dpdk.org/ml/listinfo/users>:~/dpdk-stable-17.05.2/examples/l3fwd/build$ ./l3fwd -l 1-4(core 0 is usually master lcore) --no-huge -- -p 0x3 -L(optional) -config="(0,0,1),(1,0,2)" --parse-type



This worked for me. You can check the docs here http://dpdk.org/doc/guides/sample_app_ug/l3_forward.html for all options.


If you don't specify the "config" option the app won't even start returning the "check port config" error. You must also supply the "-parse-type" cmd parameter otherwise app complaints and fails to start with the following error "port 0 cannot parse packet type, please add -parse-type"

Hristo T.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [dpdk-users] port 0 not present on board error
@ 2017-12-12 10:54 Hristo.Trifonov
  2017-12-12 12:21 ` Pragash Vijayaragavan
  0 siblings, 1 reply; 15+ messages in thread
From: Hristo.Trifonov @ 2017-12-12 10:54 UTC (permalink / raw)
  To: users

If your nb_ports = 0  shows that you haven't bind/provided any ports to dpdk.

Just verify that the ports that you want to use with dpdk (igb_uio) are available on the machine.
This means that they are not used for anything else but dpdk.

Before you attempt to bind any ports to igb_uio, from the terminal check what ports are available on the machine using nmcli d or any other utility.
Load the igb_uio kernel module using the dpdk_setup  script in dpdk/usertools
Then use the dpdk_dev_bind or dpdk_setup  script to bind the selected ports to igb_uio.
Verify that the ports are using the igb_uio with the dpdk_setup  script. There is an option there for that.

If you are using 2 ports (-p 0x3), use 2 lcores (-c 0xE) core 2 and core 3 in this case.
Complete the cmd like this:
pragash@revvit:~/dpdk-stable-17.05.2/examples/l3fwd/build$<mailto:pragash@revvit:~/dpdk-stable-17.05.2/examples/l3fwd/build$> ./l3fwd -c 0xE --no-huge -- -p 0x03 -L --config="(0,0,1),(1,0,2)" --parse-ptype

If you want to use more lcores you must then change the -config option to reflect the situation in terms of (port,queue,lcore)

Hristo T.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [dpdk-users] port 0 not present on board error
@ 2017-12-12 12:47 Hristo.Trifonov
  2017-12-12 13:33 ` Pragash Vijayaragavan
  0 siblings, 1 reply; 15+ messages in thread
From: Hristo.Trifonov @ 2017-12-12 12:47 UTC (permalink / raw)
  To: users

Please use only 2 ports with 1RX queue and 1 TX queue each to get l3fwd running. Try with these 2 below.
0000:02:00.0 'Ethernet Controller XL710 for 40GbE QSFP+ 1583' drv=igb_uio unused=vfio-pci
0000:02:00.1 'Ethernet Controller XL710 for 40GbE QSFP+ 1583' drv=igb_uio unused=vfio-pci

You can use more ports/queues but then you'll have to change the -config option depending on how many cores do you want to use.

The cmd that I've provided in my previous post is specifically for 2 ports with 1RX and TX queue each and 2 cores.

I suggest that you restart your machine, if possible, to unbind all ports from igb_uio and start from scratch.
Otherwise use the dpdk-seup.py script to do the clean-up.

Hristo T.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [dpdk-users] port 0 not present on board error
@ 2017-12-12 14:02 Hristo.Trifonov
  2017-12-12 14:13 ` Pragash Vijayaragavan
  0 siblings, 1 reply; 15+ messages in thread
From: Hristo.Trifonov @ 2017-12-12 14:02 UTC (permalink / raw)
  To: users

Unfortunately I don't have XL710 NIC available to test.

Off the top of my head:

-          Is this an issue only with the l3fwd app?

-          Did you try to run testpmd, skeleton or l2fwd?

-          Is the card working properly with the kernel driver?

-          Did you try previous version of dpdk?

Hristo T.

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

end of thread, other threads:[~2017-12-12 14:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-08  4:01 [dpdk-users] port 0 not present on board error Pragash Vijayaragavan
2017-12-08  4:18 ` Dave Boutcher
2017-12-08  4:21   ` Pragash Vijayaragavan
2017-12-08 12:11 Hristo.Trifonov
2017-12-08 20:22 ` Pragash Vijayaragavan
2017-12-11 11:21 Hristo.Trifonov
2017-12-11 21:24 ` Pragash Vijayaragavan
2017-12-12  6:17   ` Pragash Vijayaragavan
2017-12-12  7:17   ` Stephen Hemminger
2017-12-12 10:54 Hristo.Trifonov
2017-12-12 12:21 ` Pragash Vijayaragavan
2017-12-12 12:47 Hristo.Trifonov
2017-12-12 13:33 ` Pragash Vijayaragavan
2017-12-12 14:02 Hristo.Trifonov
2017-12-12 14:13 ` Pragash Vijayaragavan

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).