DPDK patches and discussions
 help / color / mirror / Atom feed
From: Amy.Shih <Amy.Shih@advantech.com.tw>
To: "qiming.yang@intel.com" <qiming.yang@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: Rick.Lai <Rick.Lai@advantech.com.tw>
Subject: DPDK pktgen with I226 link speed only 1G
Date: Thu, 9 Feb 2023 06:39:47 +0000	[thread overview]
Message-ID: <3ca576bab54241588285d9269afdd677@advantech.com.tw> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2748 bytes --]

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[cid:image002.png@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/>


[-- Attachment #1.2: Type: text/html, Size: 14043 bytes --]

[-- Attachment #2: image001.jpg --]
[-- Type: image/jpeg, Size: 120350 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 307055 bytes --]

                 reply	other threads:[~2023-02-13 14:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3ca576bab54241588285d9269afdd677@advantech.com.tw \
    --to=amy.shih@advantech.com.tw \
    --cc=Rick.Lai@advantech.com.tw \
    --cc=dev@dpdk.org \
    --cc=qiming.yang@intel.com \
    /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).