DPDK usage discussions
 help / color / mirror / Atom feed
From: Krishnamurthy Srinivasan <kssrinivasan@google.com>
To: users@dpdk.org, Maciej Skrocki <maciejskrocki@google.com>
Subject: [dpdk-users] Help with error: *** Did not find any ports to use ***
Date: Mon, 14 Dec 2020 12:46:18 -0700	[thread overview]
Message-ID: <CAMj+VaiR=detzkzVRJ3m0f65pERy40C2rJdyhCmaxED+taEs1Q@mail.gmail.com> (raw)
In-Reply-To: <CAMj+VahF2nBvfe4cehmTDnvQDEXn3d81tnTs2zaq_gphunnvjw@mail.gmail.com>

I have seen that this error has been brought up before.  However, the
solutions discussed did not help resolve the error. I would appreciate any
help.

I am running DPDK version 20.11 with Pktgen 3.7.2 on Ubuntu 20.04/K8s.   My
server has Intel Ethernet Controller X710 for 10GbE.

Here, I have configured the pod with one interface with igb-uio driver.
The behavior is the same if I try pci-vfio DPDK driver.   My kubectl
description shows the network config to be OK:

Annotations:  k8s.v1.cni.cncf.io/network-status:
                [{
                    "name": "cilium",
                    "interface": "eth0",
                    "ips": [
                        "172.16.1.76"
                    ],
                    "mac": "36:22:fd:9e:b7:37",
                    "default": true,
                    "dns": {}
                },{
                    "name": "igb-uio-network",
                    "interface": "net1",
                    "ips": [
                        "172.16.1.120"
                    ],
                    "dns": {}
                }]

"dpdk-devbind -s" seems to list the interfaces correctly:

root@master-01:~# /opt/dpdk-stable-19.11.3/usertools/dpdk-devbind.py -s |
more

Network devices using DPDK-compatible driver
============================================
0000:41:0a.0 'Ethernet Virtual Function 700 Series 154c' drv=vfio-pci
unused=iavf,igb_uio
0000:41:0a.1 'Ethernet Virtual Function 700 Series 154c' drv=vfio-pci
unused=iavf,igb_uio
<additional igb-uio devices>
0000:41:0a.5 'Ethernet Virtual Function 700 Series 154c' drv=igb_uio
unused=iavf,vfio-pci
<additional vfio-pci devices>

Network devices using kernel driver
===================================
0000:41:00.0 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=enp65s0f0
drv=i40e unused=igb_uio,vfio-pci *Active*
0000:41:00.1 'Ethernet Controller X710 for 10GbE SFP+ 1572' if=enp65s0f1
drv=i40e unused=igb_uio,vfio-pci
0000:41:0b.2 'Ethernet Virtual Function 700 Series 154c' if=ens3f1v10
drv=iavf unused=igb_uio,vfio-pci
....

However, when I run packetgen, I get the error:

root@pktgen-68b4d77fdc-q67fk:/usr/src/pktgen/Builddir/app# ./pktgen -l
3,4,27,28 --socket-mem=1024 --master-lcore 3 -- -m [4/27-28].0

Copyright (c) <2010-2020>, Intel Corporation. All rights reserved. Powered
by DPDK
EAL: Detected 48 lcore(s)
EAL: Detected 1 NUMA nodes
Option --master-lcore is deprecated use main-lcore
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: No legacy callbacks, legacy socket not created

*** Copyright (c) <2010-2020>, Intel Corporation. All rights reserved.
*** Pktgen  created by: Keith Wiles -- >>> Powered by DPDK <<<

 Port: Name         IfIndex Alias        NUMA  PCI

!PANIC!: *** Did not find any ports to use ***
PANIC in pktgen_config_ports():
*** Did not find any ports to use ***
6: [./pktgen(+0xa7ee) [0x55ebeb9f97ee]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)
[0x7f37d11bf0b3]]
4: [./pktgen(+0xa355) [0x55ebeb9f9355]]
3: [./pktgen(+0x2f456) [0x55ebeba1e456]]
2: [/usr/local/lib/x86_64-linux-gnu/librte_eal.so.21(__rte_panic+0xcd)
[0x7f37d1436d2f]]
1: [/usr/local/lib/x86_64-linux-gnu/librte_eal.so.21(rte_dump_stack+0x32)
[0x7f37d145b182]]
Aborted (core dumped)

I would appreciate your help with this.

Thanks,

Srini

  reply	other threads:[~2020-12-14 19:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-14  5:03 Krishnamurthy Srinivasan
2020-12-14 19:46 ` Krishnamurthy Srinivasan [this message]
2020-12-14 20:52   ` David Marchand
2020-12-14 22:07     ` Krishnamurthy Srinivasan
2020-12-15 15:36       ` Krishnamurthy Srinivasan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMj+VaiR=detzkzVRJ3m0f65pERy40C2rJdyhCmaxED+taEs1Q@mail.gmail.com' \
    --to=kssrinivasan@google.com \
    --cc=maciejskrocki@google.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).