DPDK patches and discussions
 help / color / mirror / Atom feed
* [DPDK/testpmd Bug 1813] [dpdk25.11] vxlan/vxlan_ipv6_checksum_offload: get incorrect checksum value for the inner L4
@ 2025-10-27  7:49 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2025-10-27  7:49 UTC (permalink / raw)
  To: dev

http://bugs.dpdk.org/show_bug.cgi?id=1813

            Bug ID: 1813
           Summary: [dpdk25.11] vxlan/vxlan_ipv6_checksum_offload: get
                    incorrect checksum value for the inner L4
           Product: DPDK
           Version: unspecified
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: testpmd
          Assignee: dev@dpdk.org
          Reporter: zhiminx.huang@intel.com
  Target Milestone: ---

Environment:
 DPDK version: dpdk-25.11-rc1:39b54f2dcf44ad1f91eabc7080cd5dea763607fd
 OS: Ubuntu 24.04.3 LTS/6.8.0-60-generic
 Compiler: gcc version 13.3.0
 Hardware platform: Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz
 NIC hardware: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ 
 [8086:1572]
 NIC firmware: 
   i40e: 6.8.0-60-generic
   firmware: 9.55 0x8000fdf4 1.3862.0

Steps to reproduce:

 1.bind pf to vfio-pci
 usertools/dpdk-devbind.py --force --bind=vfio-pci 0000:31:00.0

 2.start testpmd
 ./x86_64-native-linuxapp-clang/app/dpdk-testpmd  -l 1-5 -n 4 -a 0000:31:00.0
-- 
 force-max-simd-bitwidth=64   -- -i --enable-rx-cksum

 vlan set filter off 0
 set fwd csum
 port stop all
 csum set outer-ip hw 0
 csum set udp hw 0
 csum set outer-udp hw 0
 csum set tcp hw 0
 csum set sctp hw 0
 csum parse-tunnel on 0
 port start all
 rx_vxlan_port add 4789 0
 start

 3.launch the tcpdump
 tcpdump -i ens3f0  'ether[12:2] != 0x88cc'  -Q in -w /tmp/test.pcap

 4.send packet
 sendp([Ether(src='00:00:10:00:00:00', 
 dst='3c:fd:fe:b2:44:c8')/IPv6(src='fe80::',dst='fe80::1')/UDP(sport=63, 
 dport=4789)/VXLAN(vni=1)/Ether(src='00:00:20:00:00:00', 
 dst='00:00:20:00:00:01')/IP(src='192.168.2.1', 
dst='192.168.2.2')/UDP(chksum=1)/Raw(load=b'XXXXXXXXXXXXXXXXXX')],iface="ens3f0",count=1,inter=0,verbose=False)

 5.use scapy to check the checksum value for capture packet
 p = rdpcap("/tmp/test.pcap")
 p[0].show2()

Show the output from the previous commands:
 the inner udp checksum incorrect
 ###[ UDP ]###
                     sport     = domain
                     dport     = domain
                     len       = 26
                     chksum    = 0x1

 Expected Result:
 ###[ UDP ]###
                     sport     = domain
                     dport     = domain
                     len       = 26
                     chksum    = 0x5ee1 
Regression:
 Is this issue a regression: (Y/N) Y

 commit 496159613ffc7b6ba592432a1ba4d1a38f6935de
 Author: Dengdui Huang <huangdengdui@huawei.com>
 Date:   Sat Aug 30 09:29:13 2025 +0800

     app/testpmd: fix L4 protocol retrieval from L3 header

     Currently, when retrieving the L4 protocol from the L3 header,
     the case of IPv6 with extension headers is not handled correctly.
     This patch fixes it.

     Fixes: 76730c7b9b5a ("app/testpmd: use packet type parsing API")
     Cc: stable@dpdk.org

     Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>

  app/test-pmd/csumonly.c | 39 ++++++++++++++++-----------------------
  1 file changed, 16 insertions, 23 deletions

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-10-27  7:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-27  7:49 [DPDK/testpmd Bug 1813] [dpdk25.11] vxlan/vxlan_ipv6_checksum_offload: get incorrect checksum value for the inner L4 bugzilla

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).