DPDK usage discussions
 help / color / mirror / Atom feed
From: David Marchand <david.marchand@redhat.com>
To: avatli@itu.edu.tr
Cc: users@dpdk.org
Subject: Re: Zero ports detected issue for Solarflare (SFC9250) cards
Date: Mon, 11 Sep 2023 10:05:11 +0200	[thread overview]
Message-ID: <CAJFAV8zzBu72vH4TDBHYbDKnoGjt4fUZ0V4ZVauOdKYZAZu+5A@mail.gmail.com> (raw)
In-Reply-To: <20230910210445.Horde.9iIS_HJ33KAW3d2mfHFDKy6@webmail.itu.edu.tr>

Hello,

On Sun, Sep 10, 2023 at 8:05 PM <avatli@itu.edu.tr> wrote:
>
>
> Hi all
>
> I'm trying to use Solarflare (SFC9250) cards with DPDK. I have
> compiled the skeleton/basicfwd application but when I run it with the
> following parameters, the number of ports becomes zero, and it can't
> detect the Solarflare ports on the system.
>
> $ sudo examples/dpdk-skeleton -l 0 -n 2
> EAL: Detected CPU lcores: 10
> EAL: Detected NUMA nodes: 1
> EAL: Detected static linkage of DPDK
> EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
> EAL: Selected IOVA mode 'PA'
> TELEMETRY: No legacy callbacks, legacy socket not created
> EAL: Error - exiting with code: 1
>    Cause: Error: number of ports (0) must be even
>
> Currently, the platform is using dpdk-stable-22.11.2 and CentOS 7
>
> What am I doing wrong? I would greatly appreciate your assistance
>
> > hft_005@hft_005:~/volspace/dpdk-stable-22.11.2$ usertools/dpdk-devbind.py -s
>
> Network devices using kernel driver
> ===================================
> 0000:01:00.0 'XtremeScale SFC9250 10/25/40/50/100G Ethernet Controller
> 0b03' if=enp1s0f0 drv=sfc unused= *Active*
> 0000:01:00.1 'XtremeScale SFC9250 10/25/40/50/100G Ethernet Controller
> 0b03' if=enp1s0f1 drv=sfc unused= *Active*

If you expect those two PCI devices above to be taken over by DPDK,
you need to unbind them from the kernel net driver sfc and bind them
to vfio-pci.
https://doc.dpdk.org/guides-22.11/linux_gsg/linux_drivers.html#binding-and-unbinding-network-ports-to-from-the-kernel-modules

Please keep in mind that you will lose connectivity to this system if
you are connected through enp1s0f0 or enp1s0f1 netdevs.


> 0000:06:00.0 'I210 Gigabit Network Connection 1533' if=enp6s0 drv=igb
> unused= *Active*
> 0000:07:00.0 'I210 Gigabit Network Connection 1533' if=enp7s0 drv=igb unused=
> 0000:08:00.0 'Ethernet Controller X710 for 10GBASE-T 15ff' if=enp8s0f0
> drv=i40e unused=
> 0000:08:00.1 'Ethernet Controller X710 for 10GBASE-T 15ff' if=enp8s0f1
> drv=i40e unused=


-- 
David Marchand


      reply	other threads:[~2023-09-11  8:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-10 18:04 avatli
2023-09-11  8:05 ` David Marchand [this message]

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=CAJFAV8zzBu72vH4TDBHYbDKnoGjt4fUZ0V4ZVauOdKYZAZu+5A@mail.gmail.com \
    --to=david.marchand@redhat.com \
    --cc=avatli@itu.edu.tr \
    --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).