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 2F50742CF3; Mon, 19 Jun 2023 07:36:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08926410D7; Mon, 19 Jun 2023 07:36:25 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id E866E410D3 for ; Mon, 19 Jun 2023 07:36:23 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id D729442CF5; Mon, 19 Jun 2023 07:36:23 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1253] [dpdk-23.07] vf_offload/test_tso_tunnel: IPv6/UDP/GTPU packet of iavf cannot be forwarded in 32bit Date: Mon, 19 Jun 2023 05:36:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: 23.07 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: linglix.chen@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: multipart/alternative; boundary=16871529830.7edb.1878976 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --16871529830.7edb.1878976 Date: Mon, 19 Jun 2023 07:36:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1253 Bug ID: 1253 Summary: [dpdk-23.07] vf_offload/test_tso_tunnel: IPv6/UDP/GTPU packet of iavf cannot be forwarded in 32bit Product: DPDK Version: 23.07 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: linglix.chen@intel.com Target Milestone: --- Environment OS: Ubuntu 22.04.2 LTS/5.15.0-70-generic DPDK version: dpdk-23.07-rc1: 050de60d8a5cef8b7c10b4471905ca8bf69d670e Compiler: gcc version 11.3.0 NIC hardware: Ethernet Controller E810-XXV for SFP 159b NIC driver: ice-1.12.0_rc135_1_g7290fc452_dirty NIC firmware: 4.30 0x80019922 1.3403.0 ddp: ice comms 1.3.45.0 Test Setup 1.Bind the iavf port to dpdk driver=20=20 echo 1 > /sys/bus/pci/devices/0000\:31\:00.0/sriov_numvfs echo 1 > /sys/bus/pci/devices/0000\:31\:00.1/sriov_numvfs ip link set ens5f0 vf 0 spoofchk off ip link set ens5f1 vf 0 spoofchk off ./usertools/dpdk-devbind.py -b vfio-pci 0000:31:01.0 0000:31:11.0=20=20 2.build dpdk export CFLAGS=3D-m32 export PKG_CONFIG_LIBDIR=3D/usr/lib/i386-linux-gnu/pkgconfig/=20=20 CC=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib --default-library=3Dsta= tic i686-native-linuxapp-gcc ninja -C i686-native-linuxapp-gcc 3.launch testpmd=20 i686-native-linuxapp-gcc/app/dpdk-testpmd -l 0-7 -n 1 -- -i --portmask=3D0= x3 --enable-rx-cksum --max-pkt-len=3D9000=20=20 set fwd csum set promisc 0 on set promisc 1 on csum mac-swap off 0 csum mac-swap off 1 port stop 0 csum set ip hw 0 csum set udp hw 0 csum set tcp hw 0 csum set sctp hw 0 csum set outer-ip hw 0 csum set outer-udp hw 0 csum parse-tunnel on 0 tso set 800 0 tunnel_tso set 800 0 port start 0 port stop 1 csum set ip hw 1 csum set udp hw 1 csum set tcp hw 1 csum set sctp hw 1 csum set outer-ip hw 1 csum set outer-udp hw 1 csum parse-tunnel on 1 tso set 800 1 tunnel_tso set 800 1 port start 1 start=20 4. Send packet on tester=20=20=20 ifconfig ens160f0 mtu 9000 sendp([Ether(dst=3D"D6:5B:05:90:7C:E0",src=3D"52:00:00:00:00:00")/IPv6(src = =3D "FE80:0:0:0:200:1FF:FE00:200", dst =3D "3555:5555:6666:6666:7777:7777:8888:= 8888") / UDP(dport =3D 2152) / GTP_U_Header(gtp_type=3D255, teid=3D0x123456)/IPv6(src=3D"FE80:0:0:0:200:1FF:FE00:200", dst=3D"3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=3D1021,dport=3D1= 021)/Raw(RandString(size=3D8500))], iface=3D"ens160f0", count=3D1000) Show the output from the previous commands testpmd> stop=20 Telling cores to stop...=20 Waiting for lcores to finish... ---------------------- Forward statistics for port 0 --------------------= --=20=20=20 RX-packets: 1000 RX-dropped: 0 RX-total: 1000=20=20=20 Bad-ipcsum: 0=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Bad-l4csum: 0 Bad-outer-l4csum: 0 Bad-outer-ipcsum: 0=20=20=20 TX-packets: 0 TX-dropped: 0 TX-total: 0=20=20=20 ---------------------------------------------------------------------------= -=20=20=20=20 ---------------------- Forward statistics for port 1 ---------------------= -=20=20=20 RX-packets: 0 RX-dropped: 0 RX-total: 0=20=20=20 Bad-ipcsum: 0=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Bad-l4csum: 0 Bad-outer-l4csum: 0 Bad-outer-ipcsum: 0=20=20=20 TX-packets: 0 TX-dropped: 11000 TX-total: 11000=20=20= =20 ---------------------------------------------------------------------------= -=20=20=20 +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++= =20=20=20 RX-packets: 1000 RX-dropped: 0 RX-total: 1000=20=20=20 TX-packets: 0 TX-dropped: 11000 TX-total: 11000=20=20 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +=20 Expected Result testpmd> stop Telling cores to stop... Waiting for lcores to finish...=20 ---------------------- Forward statistics for port 0 -------------------= ---=20=20 RX-packets: 1000 RX-dropped: 0 RX-total: 1000=20=20 Bad-ipcsum: 0=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Bad-l4csum: 0 Bad-outer-l4csum: 0 Bad-outer-ipcsum: 0=20=20 TX-packets: 0 TX-dropped: 0 TX-total: 0=20=20 ---------------------------------------------------------------------------- ---------------------- Forward statistics for port 1 -------------------= ---=20=20 RX-packets: 0 RX-dropped: 0 RX-total: 0=20=20 Bad-ipcsum: 0=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Bad-l4csum: 0 Bad-outer-l4csum: 0 Bad-outer-ipcsum: 0=20=20 TX-packets: 11000 TX-dropped: 0 TX-total: 11000=20=20 ---------------------------------------------------------------------------- +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++= ++=20=20 RX-packets: 1000 RX-dropped: 0 RX-total: 1000=20=20 TX-packets: 11000 TX-dropped: 0 TX-total: 11000=20 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +=20=20 Regression Is this issue a regression: (Y/N)Y commit dd827fa42a30a9b0aa87a1d5614af83ea32b19e0 Author: Raslan Darawsheh Date: Sun Apr 2 15:26:19 2023 +0300 app/testpmd: fix GTP L2 length in checksum engine GTP header can be followed by an optional 32 bits extension. But, l2_len value statically set to RTE_ETHER_GTP_HLEN which is defined to be (sizeof(struct rte_udp_hdr) + sizeof(struct rte_gtp_hdr)) This fixes the l2_len to take into consideration the extension size. Fixes: d8e5e69f3a9b ("app/testpmd: add GTP parsing and Tx checksum offload") Cc: stable@dpdk.org Signed-off-by: Raslan Darawsheh Acked-by: Aman Singh --=20 You are receiving this mail because: You are the assignee for the bug.= --16871529830.7edb.1878976 Date: Mon, 19 Jun 2023 07:36:23 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1253
Summary [dpdk-23.07] vf_offload/test_tso_tunnel: IPv6/UDP/GTPU packet= of iavf cannot be forwarded in 32bit
Product DPDK
Version 23.07
Hardware All
OS All
Status UNCONFIRMED
Severity normal
Priority Normal
Component testpmd
Assignee dev@dpdk.org
Reporter linglix.chen@intel.com
Target Milestone ---

Environment
OS: Ubuntu 22.04.2 LTS/5.15.0-70-generic
DPDK version: dpdk-23.07-rc1: 050de60d8a5cef8b7c10b4471905ca8bf69d670e
Compiler: gcc version 11.3.0
NIC hardware: Ethernet Controller E810-XXV for SFP 159b
NIC driver: ice-1.12.0_rc135_1_g7290fc452_dirty
NIC firmware: 4.30 0x80019922 1.3403.0
ddp: ice comms 1.3.45.0

Test Setup
1.Bind the iavf port to dpdk driver=20=20
echo 1 > /sys/bus/pci/devices/0000\:31\:00.0/sriov_numvfs
echo 1 > /sys/bus/pci/devices/0000\:31\:00.1/sriov_numvfs
ip link set ens5f0 vf 0 spoofchk off
ip link set ens5f1 vf 0 spoofchk off
./usertools/dpdk-devbind.py -b vfio-pci 0000:31:01.0  0000:31:11.0=20=20

2.build dpdk
export CFLAGS=3D-m32
export PKG_CONFIG_LIBDIR=3D/usr/lib/i386-linux-gnu/pkgconfig/=20=20
CC=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib --default-library=3Dsta=
tic
i686-native-linuxapp-gcc
ninja -C i686-native-linuxapp-gcc

3.launch testpmd=20
 i686-native-linuxapp-gcc/app/dpdk-testpmd -l 0-7 -n 1 -- -i --portmask=3D0=
x3
--enable-rx-cksum --max-pkt-len=3D9000=20=20

set fwd csum
set promisc 0 on
set promisc 1 on
csum mac-swap off 0
csum mac-swap off 1
port stop 0
csum set ip hw 0
csum set udp hw 0
csum set tcp hw 0
csum set sctp hw 0
csum set outer-ip hw 0
csum set outer-udp hw 0
csum parse-tunnel on 0
tso set 800 0
tunnel_tso set 800 0
port start 0

port stop 1
csum set ip hw 1
csum set udp hw 1
csum set tcp hw 1
csum set sctp hw 1
csum set outer-ip hw 1
csum set outer-udp hw 1
csum parse-tunnel on 1
tso set 800 1
tunnel_tso set 800 1
port start 1
start=20

4. Send packet on tester=20=20=20
ifconfig ens160f0 mtu 9000
sendp([Ether(dst=3D"D6:5B:05:90:7C:E0",src=3D"52:00:00:00:00=
:00")/IPv6(src =3D
"FE80:0:0:0:200:1FF:FE00:200", dst =3D "3555:5555:6666:6666:=
7777:7777:8888:8888")
/ UDP(dport =3D 2152) / GTP_U_Header(gtp_type=3D255,
teid=3D0x123456)/IPv6(src=3D"FE80:0:0:0:200:1FF:FE00:200",
dst=3D"3555:5555:6666:6666:7777:7777:8888:8888")/TCP(sport=3D1021=
,dport=3D1021)/Raw(RandString(size=3D8500))],
iface=3D"ens160f0", count=3D1000)

Show the output from the previous commands
testpmd> stop=20
Telling cores to stop...=20
Waiting for lcores to finish...
 ---------------------- Forward statistics for port 0  --------------------=
--=20=20=20
RX-packets: 1000           RX-dropped: 0          RX-total: 1000=20=20=20
Bad-ipcsum: 0=20=20=20=20=20=20=20=20=20=20=20=20=20=20
Bad-l4csum: 0        Bad-outer-l4csum: 0   Bad-outer-ipcsum: 0=20=20=20
TX-packets: 0              TX-dropped: 0       TX-total: 0=20=20=20
---------------------------------------------------------------------------=
-=20=20=20=20
---------------------- Forward statistics for port 1  ---------------------=
-=20=20=20
RX-packets: 0              RX-dropped: 0         RX-total: 0=20=20=20
Bad-ipcsum: 0=20=20=20=20=20=20=20=20=20=20=20=20=20=20
Bad-l4csum: 0        Bad-outer-l4csum: 0   Bad-outer-ipcsum: 0=20=20=20
TX-packets: 0              TX-dropped: 11000         TX-total: 11000=20=20=
=20
---------------------------------------------------------------------------=
-=20=20=20
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++=
=20=20=20
RX-packets: 1000           RX-dropped: 0       RX-total: 1000=20=20=20
TX-packets: 0              TX-dropped: 11000   TX-total: 11000=20=20
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=
+=20

Expected Result
testpmd> stop
Telling cores to stop...
Waiting for lcores to finish...=20

  ---------------------- Forward statistics for port 0  -------------------=
---=20=20
RX-packets: 1000           RX-dropped: 0             RX-total: 1000=20=20
Bad-ipcsum: 0=20=20=20=20=20=20=20=20=20=20=20=20=20=20
Bad-l4csum: 0             Bad-outer-l4csum: 0  Bad-outer-ipcsum: 0=20=20
TX-packets: 0              TX-dropped: 0             TX-total: 0=20=20
----------------------------------------------------------------------------


  ---------------------- Forward statistics for port 1  -------------------=
---=20=20
RX-packets: 0              RX-dropped: 0             RX-total: 0=20=20
Bad-ipcsum: 0=20=20=20=20=20=20=20=20=20=20=20=20=20=20
Bad-l4csum: 0             Bad-outer-l4csum: 0  Bad-outer-ipcsum: 0=20=20
TX-packets: 11000          TX-dropped: 0             TX-total: 11000=20=20
----------------------------------------------------------------------------


  +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++=
++=20=20
RX-packets: 1000           RX-dropped: 0             RX-total: 1000=20=20
TX-packets: 11000          TX-dropped: 0             TX-total: 11000=20
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=
+=20=20

 Regression
Is this issue a regression: (Y/N)Y
commit dd827fa42a30a9b0aa87a1d5614af83ea32b19e0
Author: Raslan Darawsheh <rasl=
and@nvidia.com>
Date:   Sun Apr 2 15:26:19 2023 +0300

    app/testpmd: fix GTP L2 length in checksum engine

    GTP header can be followed by an optional 32 bits extension.

    But, l2_len value statically set to RTE_ETHER_GTP_HLEN
    which is defined to be
            (sizeof(struct rte_udp_hdr) + sizeof(struct rte_gtp_hdr))

    This fixes the l2_len to take into consideration the extension size.

    Fixes: d8e5e69f3a9b ("app/testpmd: add GTP parsing and Tx checksum
offload")
    Cc: stable@dpdk.org

    Signed-off-by: Raslan Darawsheh <rasland@nvidia.com>
    Acked-by: Aman Singh <aman.deep.singh@intel.com>
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16871529830.7edb.1878976--