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 E50B446ADF;
Thu, 3 Jul 2025 05:40:43 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
by mails.dpdk.org (Postfix) with ESMTP id 77AA240287;
Thu, 3 Jul 2025 05:40:43 +0200 (CEST)
Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178])
by mails.dpdk.org (Postfix) with ESMTP id DB51740285
for ; Thu, 3 Jul 2025 05:40:41 +0200 (CEST)
Received: by inbox.dpdk.org (Postfix, from userid 33)
id BA2A946AE0; Thu, 3 Jul 2025 05:40:41 +0200 (CEST)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/testpmd Bug 1737] [dpdk-25.07] [CNV]
ice_dcf_checksum_offload/checksum_offload_vlan_tunnel_enable: the udp_gtpu
packet will affect the hardware checksum of other udp packets
Date: Thu, 03 Jul 2025 03:40:41 +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: 25.03
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: songx.jiale@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=17515140410.5ba2.913421
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: https://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
--17515140410.5ba2.913421
Date: Thu, 3 Jul 2025 05:40:41 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
https://bugs.dpdk.org/show_bug.cgi?id=3D1737
Bug ID: 1737
Summary: [dpdk-25.07] [CNV]
ice_dcf_checksum_offload/checksum_offload_vlan_tunnel_
enable: the udp_gtpu packet will affect the hardware
checksum of other udp packets
Product: DPDK
Version: 25.03
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: testpmd
Assignee: dev@dpdk.org
Reporter: songx.jiale@intel.com
Target Milestone: ---
Environment
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
DPDK version: 5f37ee9c859f3ce08ca4364f1d8c0e70ec33ac83 version: 25.03.0-rc2
OS: Ubuntu24.04.1 LTS (Noble Numbat)/6.8.0-41-generic
Compiler: gcc version 13.2.0
Hardware platform: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz
NIC hardware: Intel Corporation Ethernet Controller E830-CC for QSFP
[8086:12d2][8086:1593])
NIC firmware:=20
driver: vfio-pci
kdriver: ice-1.17.8
firmware-version: 1.00 0x800161b7 1.3832.0
pkg: ice comms 1.3.53.0
scapy:2.4.4
Test Setup
Steps to reproduce
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1. reload ice
rmmod ice && modprobe ice
2. create 1 vf and set vf echo 1 >
/sys/bus/pci/devices/0000\:af\:00.0/sriov_numvfs
ip link set ens802f0np0 vf 0 trust on
ip link set ens802f0np0 vf 0 spoofchk off
modprobe vfio && modprobe vfio-pci
./usertools/dpdk-devbind.py -b vfio-pci 0000:af:01.0
3. start testpmd x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-2 -n 4 -a
0000:af:01.0,cap=3Ddcf -- -i --enable-rx-cksum
4. set testpmd
set verbose 1
set fwd csum
set promisc 0 on
port stop all
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
rx_vxlan_port add 4789 0
port start all
start
5. tcpdump captures packets forwarded by testpmd
tcpdump -ei enp5s0 -Q in -w 1.pcap
6. scapy send packets=20
p=3D[
Ether(dst=3D'00:11:22:33:44:55',
src=3D'52:00:00:00:00:00')/Dot1Q(vlan=3D100)/IPv6(src=3D'::1')/UDP(dport=3D=
2152)/GTP_U_Header(gtp_type=3D255,
teid=3D1193046)/IP(src=3D'10.0.0.1')/UDP(sport=3D29999,
dport=3D30000)/Raw(load=3Db'\xce\xfd\xe9\x04\xde\xa9V<\xb6*;J\x12\xb1\xde\x=
00\x1d`a\x03^\xc1\xb5\x07\xad\xc4\xad>\x996sXt\x82^\xe3\xbb\xf4K\x10";J^\xa=
6T\xc2\x8b\xe8@\xfd\xee\xa8\x07\x9eC\xa8\xcb\xcb`\xafh0\xb8'),
Ether(dst=3D'00:11:22:33:44:55',
src=3D'52:00:00:00:00:00')/Dot1Q(vlan=3D100)/IP(src=3D'10.0.0.1')/UDP(sport=
=3D4789,
dport=3D4789)/VXLAN()/Ether()/IP(src=3D'10.0.0.1')/UDP(sport=3D29999,
dport=3D30000)/Raw(load=3Db'\xce\xfd\xe9\x04\xde\xa9V<\xb6*;J\x12\xb1\xde\x=
00\x1d`a\x03^\xc1\xb5\x07\xad\xc4\xad>\x996sXt\x82^\xe3\xbb\xf4K\x10";J^\xa=
6T\xc2\x8b\xe8@\xfd\xee\xa8\x07\x9eC\xa8\xcb\xcb`\xafh0\xb8'),
Ether(dst=3D'00:11:22:33:44:55',
src=3D'52:00:00:00:00:00')/Dot1Q(vlan=3D100)/IP(src=3D'10.0.0.1')/UDP()/Raw=
(load=3Db'\xce\xfd\xe9\x04\xde\xa9V<\xb6*;J\x12\xb1\xde\x00\x1d`a\x03^\xc1\=
xb5\x07\xad\xc4\xad>\x996sXt\x82^\xe3\xbb\xf4K\x10";J^\xa6T\xc2\x8b\xe8@\xf=
d\xee\xa8\x07\x9eC\xa8\xcb\xcb`\xafh0\xb8'),
]
sendp(p, iface=3D'enp5s0', count=3D1)
7. ^C exit tcpdump and scapy or wireshark parsing data packets
pkt=3Drdpcap('1.pcap')
Results:=20
=3D=3D=3D=3D=3D=3D=3D=3D
The outer UDP checksum for p[1] and p[2] is incorrect.
>>> p[0]
\x996sXt\x82^\xe3\xbb\xf4K\x10";J^\xa6T\xc2\x8b\xe8@\xfd\=
xee\xa8\x07\x9eC\xa8\xcb\xcb`\xafh0\xb8'
|>>>>>>>>
>>> p[1]
\x996sXt\x82^\xe3\xbb\xf4K\x10";J^\xa6T\xc2\x8b\xe8@\xfd\=
xee\xa8\x07\x9eC\xa8\xcb\xcb`\xafh0\xb8'
|>>>>>>>>>
>>> p[2]
\x996sXt\x82^\x=
e3\xbb\xf4K\x10";J^\xa6T\xc2\x8b\xe8@\xfd\xee\xa8\x07\x9eC\xa8\xcb\xcb`\xaf=
h0\xb8'
|>>>>>>
Expected Result:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
p[1] outer udp checksum is 0xc5e6, p[2] outer udp checksum is 0x7c76
>>> p[0]
\x996sXt\x82^\xe3\xbb\xf4K\x10";J^\xa6T\xc2\x8b\xe8@\xfd\=
xee\xa8\x07\x9eC\xa8\xcb\xcb`\xafh0\xb8'
|>>>>>>>>
>>> p[1]
\x996sXt\x82^\xe3\xbb\xf4K\x10";J^\xa6T\xc2\x8b\xe8@\xfd\=
xee\xa8\x07\x9eC\xa8\xcb\xcb`\xafh0\xb8'
|>>>>>>>>>
>>> p[2]
\x996sXt\x82^\x=
e3\xbb\xf4K\x10";J^\xa6T\xc2\x8b\xe8@\xfd\xee\xa8\x07\x9eC\xa8\xcb\xcb`\xaf=
h0\xb8'
|>>>>>>
bad commit:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
commit b1f3a7a8c375fbb66be48aed078222686d16fdb5
Author: Dengdui Huang
Date: Tue Jun 3 20:06:22 2025 +0800
net: fix GTP packet parsing
After parsing the GTP packet header, the next protocol type should
be converted from RTE_GTP_TYPE_IPV4/IPV6 to RTE_ETHER_TYPE_IPV4/IPV6.
Otherwise, the next protocol cannot be parsed.
Bugzilla ID: 1672
Fixes: 64ed7f854cf4 ("net: add tunnel packet type parsing")
Cc: stable@dpdk.org
Signed-off-by: Dengdui Huang
Acked-by: Jie Hai
lib/net/rte_net.c | 8 +++++++-
1 file changed, 7 insertions, 1 deletion
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--17515140410.5ba2.913421
Date: Thu, 3 Jul 2025 05:40:41 +0200
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
Bug ID
1737
Summary
[dpdk-25.07] [CNV] ice_dcf_checksum_offload/checksum_offload_=
vlan_tunnel_enable: the udp_gtpu packet will affect the hardware checksum o=
f other udp packets
Product
DPDK
Version
25.03
Hardware
x86
OS
Linux
Status
UNCONFIRMED
Severity
normal
Priority
Normal
Component
testpmd
Assignee
dev@dpdk.org
Reporter
songx.jiale@intel.com
Target Milestone
---
You are receiving this mail because:
You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
=
--17515140410.5ba2.913421--