DPDK pktgen with I226 link speed only 1G

Amy.Shih Amy.Shih at advantech.com.tw
Thu Feb 9 07:39:47 CET 2023


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 at FWA-1013-efi:~# modprobe uio
root at FWA-1013-efi:~# modprobe vfio-pci
root at FWA-1013-efi:~# echo 2048 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
root at FWA-1013-efi:~# mkdir -p /mnt/huge
root at FWA-1013-efi:~# mount -t hugetlbfs nodev /mnt/huge
root at FWA-1013-efi:~# dpdk-devbind.py -b vfio-pci 02:00.0
root at FWA-1013-efi:~# dpdk-devbind.py -b vfio-pci 03:00.0
root at 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 at 0x1f0
[  328.003520] vfio-pci 0000:02:00.0: vfio_ecap_init: hiding ecap 0x1e at 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 at 0x1f0
[  328.283404] vfio-pci 0000:03:00.0: vfio_ecap_init: hiding ecap 0x1e at 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[cid:image002.png at 01D93C94.27BC0480]

Best Regards,
Amy Shih
Advantech ICVG x86 Software
02-2792-7818 Ext. 1249
[Server_iManager]<https://campaign.advantech.online/en/Cloud-IoT/software/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20230209/e07131df/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 120350 bytes
Desc: image001.jpg
URL: <http://mails.dpdk.org/archives/dev/attachments/20230209/e07131df/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 307055 bytes
Desc: image002.png
URL: <http://mails.dpdk.org/archives/dev/attachments/20230209/e07131df/attachment-0001.png>


More information about the dev mailing list