Hi Qiming & dpdk dev team:

 

This is Amy from Advantech, we have a question about I226 DPDK loopback pktgen, could you please give us some advice?

 

We bind the I226 devices with vfio-pci driver and execute the DPDK pktgen. However, the link speed of both I226 are only 1G, we expected the link seepd is 2.5G.

Do you have any suggestions? Thanks!

 

Testing procedure & result:

 

root@FWA-1013-efi:~# modprobe uio

root@FWA-1013-efi:~# modprobe vfio-pci

root@FWA-1013-efi:~# echo 2048 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

root@FWA-1013-efi:~# mkdir -p /mnt/huge

root@FWA-1013-efi:~# mount -t hugetlbfs nodev /mnt/huge

root@FWA-1013-efi:~# dpdk-devbind.py -b vfio-pci 02:00.0

root@FWA-1013-efi:~# dpdk-devbind.py -b vfio-pci 03:00.0

root@FWA-1013-efi:~# pktgen --main-lcore 1 -c 0000001f -n 3 -a 02:00.0 -a 03:00.0 --socket-mem=512 --file-prefix=dpdk_pktgen -- -P -T --crc-strip -m '[0].0,[0].1'en -- -P -T --crc-strip -m '[0].0,[0].1'

Copyright(c) <2010-2021>, Intel Corporation. All rights reserved. Powered by DPDK

EAL: Detected CPU lcores: 8

EAL: Detected NUMA nodes: 1

EAL: Detected shared linkage of DPDK

EAL: Multi-process socket /var/run/dpdk/dpdk_pktgen/mp_socket

EAL: Selected IOVA mode 'VA'

EAL: VFIO support initialized

EAL: Using IOMMU type 1 (Type 1)

[  327.995182] vfio-pci 0000:02:00.0: vfio_ecap_init: hiding ecap 0x1f@0x1f0

[  328.003520] vfio-pci 0000:02:00.0: vfio_ecap_init: hiding ecap 0x1e@0x1e0

EAL: Probe PCI driver: net_igc (8086:125b) device: 0000:02:00.0 (socket 0)

[  328.275177] vfio-pci 0000:03:00.0: vfio_ecap_init: hiding ecap 0x1f@0x1f0

[  328.283404] vfio-pci 0000:03:00.0: vfio_ecap_init: hiding ecap 0x1e@0x1e0

EAL: Probe PCI driver: net_igc (8086:125b) device: 0000:03:00.0 (socket 0)

TELEMETRY: No legacy callbacks, legacy socket not created

>>> Strip CRC in hardware is the default

 

*** Copyright(c) <2010-2021>, Intel Corporation. All rights reserved.

*** Pktgen  created by: Keith Wiles -- >>> Powered by DPDK <<<

 

Port: Name         IfIndex Alias        NUMA  PCI

    0: net_igc         0                   0   8086:125b/02:00.0

    1: net_igc         0                   0   8086:125b/03:00.0

 

Initialize Port 0 -- TxQ 1, RxQ 1

Src MAC c4:00:ad:ed:8c:8c

<Promiscuous mode Enabled>

Initialize Port 1 -- TxQ 1, RxQ 1

Src MAC c4:00:ad:ed:8c:8d

<Promiscuous mode Enabled> <Promiscuous mode Enabled>

 

 

WARNING: Nothing to do on lcore 2: exiting

WARNING: Nothing to do on lcore 3: exiting

WARNING: Nothing to do on lcore 4: exiting

 

Best Regards,

Amy Shih

Advantech ICVG x86 Software

02-2792-7818 Ext. 1249

Server_iManager