From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
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 <dev@dpdk.org>; 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: <bug-1473-3@http.bugs.dpdk.org/>
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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=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 <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 <junwang01@cestc.cn>
    Signed-off-by: David Marchand <david.marchand@redhat.com>
    Tested-by: Ali Alnubani <alialnu@nvidia.com>

--=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

<html>
    <head>
      <base href=3D"https://bugs.dpdk.org/">
    </head>
    <body><table border=3D"1" cellspacing=3D"0" cellpadding=3D"8" class=3D"=
bz_new_table">
        <tr>
          <th>Bug ID</th>
          <td><a class=3D"bz_bug_link=20
          bz_status_UNCONFIRMED "
   title=3D"UNCONFIRMED - [dpdk-24.07] vxlan/vxlan_ipv6_checksum_offload: I=
PV6-Vxlan TX droped by outer sw csum"
   href=3D"https://bugs.dpdk.org/show_bug.cgi?id=3D1473">1473</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[dpdk-24.07] vxlan/vxlan_ipv6_checksum_offload: IPV6-Vxlan TX=
 droped by outer sw csum
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DPDK
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>24.07
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>ethdev
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dev&#64;dpdk.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zhiminx.huang&#64;intel.com
          </td>
        </tr>

        <tr>
          <th>Target Milestone</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div class=3D"bz_comment_block">
          <pre class=3D"bz_comment_text">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 &#64; 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&quot=
;ens2f0&quot;,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 &lt;<a href=3D"mailto:david.marchand&#64;redhat.com"=
>david.marchand&#64;redhat.com</a>&gt;
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.

    &quot;&quot;&quot;
    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.
    &quot;&quot;&quot;

    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 (&quot;net/i40e: fix forward outer IPv6 VXLAN&quot;)
    Cc: <a href=3D"mailto:stable&#64;dpdk.org">stable&#64;dpdk.org</a>

    Reported-by: Jun Wang &lt;<a href=3D"mailto:junwang01&#64;cestc.cn">jun=
wang01&#64;cestc.cn</a>&gt;
    Signed-off-by: David Marchand &lt;<a href=3D"mailto:david.marchand&#64;=
redhat.com">david.marchand&#64;redhat.com</a>&gt;
    Tested-by: Ali Alnubani &lt;<a href=3D"mailto:alialnu&#64;nvidia.com">a=
lialnu&#64;nvidia.com</a>&gt;
          </pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
      <div itemscope itemtype=3D"http://schema.org/EmailMessage">
        <div itemprop=3D"action" itemscope itemtype=3D"http://schema.org/Vi=
ewAction">
=20=20=20=20=20=20=20=20=20=20
          <link itemprop=3D"url" href=3D"https://bugs.dpdk.org/show_bug.cgi=
?id=3D1473">
          <meta itemprop=3D"name" content=3D"View bug">
        </div>
        <meta itemprop=3D"description" content=3D"Bugzilla bug update notif=
ication">
      </div>
    </body>
</html>=

--17194780410.836d8cea.421299--