Hello, On Sun, Sep 10, 2023 at 8:05 PM <[email protected]> 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
