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 6043B41F41; Thu, 27 Jun 2024 10:48:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7192D40E40; Thu, 27 Jun 2024 10:48:05 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 64693402C6 for ; Thu, 27 Jun 2024 10:47:21 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 52DDE454C9; Thu, 27 Jun 2024 10:47:21 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/ethdev Bug 1473] [dpdk-24.07] vxlan/vxlan_ipv6_checksum_offload: IPV6-Vxlan TX droped by outer sw csum Date: Thu, 27 Jun 2024 08:47:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 24.07 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhiminx.huang@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=17194780410.836d8cea.421299 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 --17194780410.836d8cea.421299 Date: Thu, 27 Jun 2024 10:47:21 +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=3D1473 Bug ID: 1473 Summary: [dpdk-24.07] vxlan/vxlan_ipv6_checksum_offload: IPV6-Vxlan TX droped by outer sw csum Product: DPDK Version: 24.07 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: zhiminx.huang@intel.com Target Milestone: --- Environment: DPDK version: v24.07-rc1: 4a44d97f0a52a76258c6a6cb6a713f4380a8ab1f OS: Ubuntu 24.04 LTS/6.8.0-31-generic Compiler: gcc version 13.2.0=20 Hardware platform: Intel(R) Xeon(R) Gold 6139 CPU @ 2.30GHz NIC hardware: Intel Corporation Ethernet Controller XXV710 for 25GbE SFP28 [8086:158b] NIC firmware:=20 i40e: 2.25.7 FW: 9.50 0x8000f167 1.3597.0 Test Setup: 1. usertools/dpdk-devbind.py --force --bind=3Dvfio-pci 0000:af:00.0 2.=20 ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-5 -n 4 -a 0000:af:00.0 = -- -i --enable-rx-cksum set fwd csum rx_vxlan_port add 4789 0 port stop all csum set udp hw 0 csum set tcp hw 0 csum set sctp hw 0 csum parse-tunnel on 0 csum set outer-ip sw 0 port start all start 3. scapy: sendp([Ether(src=3D'00:00:10:00:00:00', dst=3D'3c:fd:fe:cf:33:74')/IPv6(src=3D'fe80::', dst=3D'fe80::1')/UDP(sport= =3D63, dport=3D4789)/VXLAN(vni=3D1)/Ether(src=3D'00:00:20:00:00:00', dst=3D'00:00:20:00:00:01')/IP(src=3D'192.168.2.1', dst=3D'192.168.2.2')/UDP()/Raw(load=3Db'XXXXXXXXXXXXXXXXXX')],iface=3D"ens2= f0",count=3D1,inter=3D0,verbose=3DFalse) 4.stop testpmd and check the output Show the output from the previous commands. ---------------------- Forward statistics for port 0 --------------------= -- RX-packets: 1 RX-dropped: 0 RX-total: 1 Bad-ipcsum: 0 Bad-l4csum: 0 Bad-outer-l4csum: 0 Bad-outer-ipcsum: 0 TX-packets: 0 TX-dropped: 1 TX-total: 1 -------------------------------------------------------------------------= ---=20 +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ RX-packets: 1 RX-dropped: 0 RX-total: 1 TX-packets: 0 TX-dropped: 1 TX-total: 1 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++ Expected Result: no tx-droped Is this issue a regression: (Y/N) Y commit 6b5e31f7fbd71675c8f3f6d8c0f74fd1f3a0dff5 Author: David Marchand Date: Thu Apr 18 10:20:19 2024 +0200 net/i40e: fix outer UDP checksum offload for X710 According to the X710 datasheet (and confirmed on the field..), X710 devices do not support outer checksum offload. """ 8.4.4.2 Transmit L3 and L4 Integrity Offload Tunneling UDP headers and GRE header are not offloaded while the X710/XXV710/XL710 leaves their checksum field as is. If a checksum is required, software should provide it as well as the in= ner checksum value(s) that are required for the outer checksum. """ Fix Tx offload capabilities according to the hardware. X722 may support such offload by setting I40E_TXD_CTX_QW0_L4T_CS_MASK. Bugzilla ID: 1406 Fixes: 8cc79a1636cd ("net/i40e: fix forward outer IPv6 VXLAN") Cc: stable@dpdk.org Reported-by: Jun Wang Signed-off-by: David Marchand Tested-by: Ali Alnubani --=20 You are receiving this mail because: You are the assignee for the bug.= --17194780410.836d8cea.421299 Date: Thu, 27 Jun 2024 10:47:21 +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 1473
Summary [dpdk-24.07] vxlan/vxlan_ipv6_checksum_offload: IPV6-Vxlan TX= droped by outer sw csum
Product DPDK
Version 24.07
Hardware x86
OS Linux
Status UNCONFIRMED
Severity normal
Priority Normal
Component ethdev
Assignee dev@dpdk.org
Reporter zhiminx.huang@intel.com
Target Milestone ---

Environment:
DPDK version: v24.07-rc1: 4a44d97f0a52a76258c6a6cb6a713f4380a8ab1f
OS: Ubuntu 24.04 LTS/6.8.0-31-generic
Compiler: gcc version 13.2.0=20
Hardware platform: Intel(R) Xeon(R) Gold 6139 CPU @ 2.30GHz
NIC hardware: Intel Corporation Ethernet Controller XXV710 for 25GbE SFP28
[8086:158b]
NIC firmware:=20
i40e: 2.25.7
FW: 9.50 0x8000f167 1.3597.0


Test Setup:
1.
usertools/dpdk-devbind.py --force --bind=3Dvfio-pci 0000:af:00.0

2.=20
./x86_64-native-linuxapp-gcc/app/dpdk-testpmd  -l 1-5 -n 4 -a 0000:af:00.0 =
 --
-i --enable-rx-cksum

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

3.
scapy:
sendp([Ether(src=3D'00:00:10:00:00:00',
dst=3D'3c:fd:fe:cf:33:74')/IPv6(src=3D'fe80::', dst=3D'fe80::1')/UDP(sport=
=3D63,
dport=3D4789)/VXLAN(vni=3D1)/Ether(src=3D'00:00:20:00:00:00',
dst=3D'00:00:20:00:00:01')/IP(src=3D'192.168.2.1',
dst=3D'192.168.2.2')/UDP()/Raw(load=3Db'XXXXXXXXXXXXXXXXXX')],iface=3D"=
;ens2f0",count=3D1,inter=3D0,verbose=3DFalse)

4.stop testpmd and check the output
Show the output from the previous commands.

 ---------------------- Forward statistics for port 0  --------------------=
--
  RX-packets: 1              RX-dropped: 0             RX-total: 1
  Bad-ipcsum: 0              Bad-l4csum: 0             Bad-outer-l4csum: 0
  Bad-outer-ipcsum: 0
  TX-packets: 0              TX-dropped: 1             TX-total: 1
  -------------------------------------------------------------------------=
---=20
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
  RX-packets: 1              RX-dropped: 0             RX-total: 1
  TX-packets: 0              TX-dropped: 1             TX-total: 1
  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=
+++

Expected Result:
no tx-droped

Is this issue a regression: (Y/N) Y

commit 6b5e31f7fbd71675c8f3f6d8c0f74fd1f3a0dff5
Author: David Marchand <david.marchand@redhat.com>
Date:   Thu Apr 18 10:20:19 2024 +0200

    net/i40e: fix outer UDP checksum offload for X710

    According to the X710 datasheet (and confirmed on the field..), X710
    devices do not support outer checksum offload.

    """
    8.4.4.2 Transmit L3 and L4 Integrity Offload

    Tunneling UDP headers and GRE header are not offloaded while the
    X710/XXV710/XL710 leaves their checksum field as is.
    If a checksum is required, software should provide it as well as the in=
ner
    checksum value(s) that are required for the outer checksum.
    """

    Fix Tx offload capabilities according to the hardware.

    X722 may support such offload by setting I40E_TXD_CTX_QW0_L4T_CS_MASK.

    Bugzilla ID: 1406
    Fixes: 8cc79a1636cd ("net/i40e: fix forward outer IPv6 VXLAN")
    Cc: stable@dpdk.org

    Reported-by: Jun Wang <jun=
wang01@cestc.cn>
    Signed-off-by: David Marchand <david.marchand@redhat.com>
    Tested-by: Ali Alnubani <a=
lialnu@nvidia.com>
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17194780410.836d8cea.421299--