DPDK usage discussions
 help / color / mirror / Atom feed
* Zero ports detected issue for Solarflare (SFC9250) cards
@ 2023-09-10 18:04 avatli
  2023-09-11  8:05 ` David Marchand
  0 siblings, 1 reply; 2+ messages in thread
From: avatli @ 2023-09-10 18:04 UTC (permalink / raw)
  To: users


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*
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=

No 'Baseband' devices detected
==============================

No 'Crypto' devices detected
============================

No 'DMA' devices detected
=========================

No 'Eventdev' devices detected
==============================

No 'Mempool' devices detected
=============================

No 'Compress' devices detected
==============================

No 'Misc (rawdev)' devices detected
===================================

No 'Regex' devices detected
===========================



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

* Re: Zero ports detected issue for Solarflare (SFC9250) cards
  2023-09-10 18:04 Zero ports detected issue for Solarflare (SFC9250) cards avatli
@ 2023-09-11  8:05 ` David Marchand
  0 siblings, 0 replies; 2+ messages in thread
From: David Marchand @ 2023-09-11  8:05 UTC (permalink / raw)
  To: avatli; +Cc: users

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


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

end of thread, other threads:[~2023-09-11  8:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-10 18:04 Zero ports detected issue for Solarflare (SFC9250) cards avatli
2023-09-11  8:05 ` David Marchand

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