From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F1725A00C2 for ; Wed, 24 Aug 2022 10:29:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 949F140DFD; Wed, 24 Aug 2022 10:29:23 +0200 (CEST) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) by mails.dpdk.org (Postfix) with ESMTP id 88F854068E for ; Wed, 17 Aug 2022 12:18:38 +0200 (CEST) Received: by mail-ed1-f51.google.com with SMTP id r4so16831239edi.8 for ; Wed, 17 Aug 2022 03:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=bI/vMz/wGh+D/C02JkduOFjYTJMCXAG/Z7ah2mBFMu0=; b=qSEDQxPGOca07MQprSlB7+eX9APGYGNMNef2W3Ed8zwrHyQoptOBSTIJNB7a+zvfis Ank7U3zMpocbUDz3PmWgsyy+oMot7lUpDMZgD99cm8J8d8dWgnjZmqEowp760Iyx6FKs J+stOHR+rH2iDRYboXbrRCgiorhJZguipNcXv/IoxwP+17FFFWf2Q9D8adxHuVmIXoRH DJDCMekMYCcER9qfGpk80p4h/Ct+45EsCghUD0G4gB6EZRwehJUv2/f9AsARRKX0zkJx P3xT3YaCEjFbeBfcROtccLuDue/4sekx11vhF1x3gjbEHu/bkRDdS6+Z6g0yHitgWU7D Bj8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=bI/vMz/wGh+D/C02JkduOFjYTJMCXAG/Z7ah2mBFMu0=; b=hyAeC/85LeExbDo/MN7j5NN3lf9BwMB2tYxBa0wIpY6DnjUQx9ePQAswX1lb3Lfg78 y6XtmUGC5tmiqQnkGpDt8VH4hAtd2dh2tfkyh1wYXDWd9HcdIPvxcyfe0ceklqEDW0IQ vOyakvB6jXhTUSkELHUjkNF4GfnrHpCsrD21qBjX/igQUo5YONGl2Q0u7mXdtzYG9E9+ /MzReTTj7UlsqyI7l2NJCyG810AcfuAsdEs/uMAtZLgvtXjopsGOeBseQ9GZP7jn3ci4 fHyUSVq4tI6Jpiq/LSKgs/WT87DydGL/gwFiDlWEZOpPyPNiqUH8tXcZG6fDBsIGkM9H v2WQ== X-Gm-Message-State: ACgBeo3s5CHuNEO2J1FQx+rhBRqJLpSZFAoE+TOQfr/UZXZzDdQKmWJN 3x7mCkM5mCfQFk81yt5eO5x3lWAMCYnuquuZ7AcfIa+qd7g= X-Google-Smtp-Source: AA6agR7cZYUzSaHretEHP13tqUkm8ihYzzbuFtcIOxbObhz+8AmOUQ6uhKeUxAGxEsBo05tFZsnMgfgjS7Lr1sWPJqo= X-Received: by 2002:a05:6402:4386:b0:43e:90b:6e44 with SMTP id o6-20020a056402438600b0043e090b6e44mr22249985edc.310.1660731517658; Wed, 17 Aug 2022 03:18:37 -0700 (PDT) MIME-Version: 1.0 From: spoorthi hebbar Date: Wed, 17 Aug 2022 15:48:26 +0530 Message-ID: Subject: How to run testpmd with TSO enabled? To: users@dpdk.org Content-Type: multipart/alternative; boundary="0000000000002d6c7b05e66d300f" X-Mailman-Approved-At: Wed, 24 Aug 2022 10:29:22 +0200 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --0000000000002d6c7b05e66d300f Content-Type: text/plain; charset="UTF-8" Hi DPDK community, I am new DPDK and trying to run DPDK testpmd with TSO enabled on Tx port and checksum on Rx port just like how it is mentioned here: https://doc.dpdk.org/dts/test_plans/tso_test_plan.html but with --enable-rx-cksum argument, I get following error: root@localhost:~# dpdk-testpmd -l 4-7 -n 4 -- -i --nb-cores=2 --eth-peer=0,xx:xx:xx:xx:xx:xx --eth-peer=1,xx:xx:xx:xx:xx:xx --forward-mode=mac --rxq=2 --txq=2 --enable-rx-cksum --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=0x3 --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 EAL: Detected 8 lcore(s) EAL: Detected 1 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: No available hugepages reported in hugepages-2048kB EAL: Probing VFIO support... EAL: VFIO support initialized EAL: Invalid NUMA socket, default to 0 EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:06.0 (socket 0) EAL: using IOMMU type 8 (No-IOMMU) [63652.737684] vfio-pci 0000:00:06.0: vfio-noiommu device opened by user (dpdk-testpmd:2518) EAL: Ignore mapping IO port bar(0) EAL: Invalid NUMA socket, default to 0 EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:06.1 (socket 0) [63652.744250] vfio-pci 0000:00:06.1: vfio-noiommu device opened by user (dpdk-testpmd:2518) EAL: Ignore mapping IO port bar(0) EAL: Invalid NUMA socket, default to 0 EAL: Probe PCI driver: net_virtio (1af4:1041) device: 0000:01:00.0 (socket 0) EAL: No legacy callbacks, legacy socket not created Interactive-mode selected Set mac packet forwarding mode testpmd: create a new mbuf pool : n=159744, size=2176, socket=0 testpmd: preferred mempool ops selected: ring_mp_mc Configuring Port 0 (socket 0) Ethdev port_id=0 requested Rx offloads 0xe doesn't match Rx offloads capabilities 0xa1d in rte_eth_dev_configure() Fail to configure port 0 EAL: Error - exiting with code: 1 Cause: Start ports failed Can someone help me with pointers to resolve this? Also the documentation here https://doc.dpdk.org/dts/test_plans/tso_test_plan.html to obtain performance figures with TSO enabled misses a lot of details. A detailed description about how to measure performance with TSO enabled with a packet created using scapy would be much appreciated. Thanks! Spoorthi --0000000000002d6c7b05e66d300f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi DPDK community,

I am new = DPDK and trying to run DPDK testpmd with TSO enabled on Tx port and checksu= m on Rx port just like how it is mentioned here: https://doc.dpdk.org/dts/test_plan= s/tso_test_plan.html but with --enable-rx-= cksum argument, I get following error:

root@localhost:~# dpdk-testpmd -l 4-7 -n 4 -- -i --nb-cores=3D=
2 --eth-peer=3D0,xx:xx:xx:xx:xx:xx --eth-peer=3D1,xx:xx:xx:xx:xx:xx --forwa=
rd-mode=3Dmac --rxq=3D2 --txq=3D2 --enable-rx-cksum --rxd=3D512 --txd=3D512=
 --burst=3D32 --rxfreet=3D64 --mbcache=3D128 --portmask=3D0x3 --txpt=3D36 -=
-txht=3D0 --txwt=3D0 --txfreet=3D32 --txrst=3D32
EAL: Detected 8 lcore(s= )
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/= rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available = hugepages reported in hugepages-2048kB
EAL: Probing VFIO support...
E= AL: VFIO support initialized
EAL: =C2=A0 Invalid NUMA socket, default to= 0
EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:06.0 (s= ocket 0)
EAL: =C2=A0 using IOMMU type 8 (No-IOMMU)
[63652.737684] vfi= o-pci 0000:00:06.0: vfio-noiommu device opened by user (dpdk-testpmd:2518)<= br>EAL: Ignore mapping IO port bar(0)
EAL: =C2=A0 Invalid NUMA socket, d= efault to 0
EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:0= 0:06.1 (socket 0)
[63652.744250] vfio-pci 0000:00:06.1: vfio-noiommu dev= ice opened by user (dpdk-testpmd:2518)
EAL: Ignore mapping IO port bar(0= )
EAL: =C2=A0 Invalid NUMA socket, default to 0
EAL: Probe PCI driver= : net_virtio (1af4:1041) device: 0000:01:00.0 (socket 0)
EAL: No legacy = callbacks, legacy socket not created
Interactive-mode selected
Set ma= c packet forwarding mode
testpmd: create a new mbuf pool <mb_pool_0&g= t;: n=3D159744, size=3D2176, socket=3D0
testpmd: preferred mempool ops s= elected: ring_mp_mc
Configuring Port 0 (socket 0)
Ethdev port_id=3D0 = requested Rx offloads 0xe doesn't match Rx offloads capabilities 0xa1d = in rte_eth_dev_configure()
Fail to configure port 0
EAL: Error - exit= ing with code: 1
=C2=A0 Cause: Start ports failed
Can someone help me with pointers to resolv= e this? Also the documentation here https://doc.dpdk.org/dts/test_plans/tso_test_pl= an.html to obtain performance figures with TSO enabled misses a lot of = details.=C2=A0 A detailed description about how to measure performance with= TSO enabled with a packet created using scapy would be much appreciated.

Thanks!
Spoorthi
--0000000000002d6c7b05e66d300f--