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 2C5BEA052A; Sun, 24 Jan 2021 11:34:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A6F73140D5D; Sun, 24 Jan 2021 11:34:57 +0100 (CET) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 9023F140D5C for ; Sun, 24 Jan 2021 11:34:56 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 587B2A0A0B; Sun, 24 Jan 2021 11:34:56 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Sun, 24 Jan 2021 10:34:56 +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: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: wisamm@mellanox.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: 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 MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 625] MLX5: Jumbo frames are being received as rx error 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D625 Bug ID: 625 Summary: MLX5: Jumbo frames are being received as rx error Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: critical Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: wisamm@mellanox.com Target Milestone: --- ,How to reproduce start testpmd ./dpdk-testpmd -n 4 -w 0000:03:00.0,representor=3D[0,1],txq_inline=3D647,rx_vec_en=3D1,dv_flow_en= =3D1,dv_esw_en=3D1,dv_xmeta_en=3D3 -- --mbcache=3D512 -i --nb-cores=3D15 --rxq=3D5 --txq=3D5 --txd=3D1024 --= rxd=3D1024=20 --burst=3D64 --enable-scatter --tx-offloads=3D0x8000 --forward-mode=3Drxonly Then: port stop all port config all max-pkt-len 3072 port start all start port config mtu 0 3072 port config mtu 1 3072 port config mtu 2 3072 set verbose 1 start >From TG side, change MTU and send this packet: ifconfig ens5 mtu 5000 up packet =3D Ether(dst=3D'00:16:3e:26:f8:28', src=3D'00:16:3e:4b:62:07', type=3D2048)/IP(version=3D4, ihl=3D5, tos=3D28, len=3D2162, id=3D1, flags= =3D0, frag=3D0, ttl=3D183, proto=3D0, chksum=3D9433, src=3D'173.214.92.106', dst=3D'183.162.20.179')/Raw(load=3Db'UnHRTCfPDLyiuxvZLANJOMISLXdwsAvnJNGuWr= mVbvoSgrLOZZrerhPrPqVBQxCtWpuDpNfTJjudHBpynTiNzUjVLSWUJcOTOZVrQBrHZskfhWiGF= qTTojwFAlsCcVkijAPnDxFmAuUMZnGzHixCaxZyZWLJtsLlipINwedoWZrUjOhpJxZKopphomYI= LQZleBtxyDVnNbYidrWTVWvXXSFgIiedDbjnKYYgqdzSPexWlsfylkitOzlRgKDAaCgMxoBawOR= JJmNHREwZjSRpIbpuZjCdxSnbwRSXxaDVRJtshJRPWoUcnxNvCqSXknClEXVchBcHJbPCUMyEnL= pTRfQJLlYOsTnCeMruorXFtJHiXeApLdbKTHbLZFYKHpUtlVvYCviTZSKzYrZHMZIKvYyX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xNJictbCoJHMcibUdGmtLbzViPOCrsPduErDJRtowWJYtrYLpkh= OwTwmGdmUkzvqezMtRmxvBPHqDzewuQECdItsOfPMspTXUFhMTlhIDECfvnbYBcDMsZLPqlXEXq= VthxhgGvKQzMFYgPCrcsfLpFuwMTuReBLMSbFILfImCwYeYesPImFTqjAcXUjyUjIuTQPeSKIuM= VBgHbBxYAWCmoEtULPOOsLGQxJtKuCAuIEevNDXfsgUUPsAKqkMhggzlaQUXBEhdGZGmpBgYTWD= XEazpyxnDzxYXqjHcgyWywIxxZOLIjFVlbMzgiyjfFyAwnTsDljierIXuUrntKxmZEulaOfjxOb= buWTeVUOLPJYsjnOHYkLdDJaryezThEDACYGFeVPujPZpiSyIzDyWKStHHQZLcfthRbgjxhZPWR= utxScpxGKvKNkQbwGssHbVdorflWUblauODVcrHmPJMSNaQoOFHyQAwvXrCJLWNmVjsgIONDdJO= JJtUrZLorLbFnMaZatbEgRBSWTksWkNQtDGneemrJpfzgUlRNrxMQVYdeomkdNOnvGTaCpyhRif= rcqjThCKYHmHAuCOgcDwUYwfhUQbVCDhBcvbyOoBhAnRRuyBTQfqixUdsFBmXQaJvJimCoonMUs= WHzq') sendp(packet, iface =3D 'ens5', count =3D 1) Results: Waiting for lcores to finish... ---------------------- Forward statistics for port 0 -------------------= --- RX-packets: 0 RX-dropped: 0 RX-total: 0 RX-error: 1 RX-nombufs: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 -------------------------------------------------------------------------= --- ---------------------- Forward statistics for port 1 -------------------= --- RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 -------------------------------------------------------------------------= --- ---------------------- Forward statistics for port 2 -------------------= --- RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 -------------------------------------------------------------------------= --- +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++= ++ RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++ Done. Packet recevied as rx-error The issue is created by: commit 761c4d66900fd7db6927f57eb610f543cc0908e4 Author: Steve Yang Date: Mon Jan 18 07:04:08 2021 +0000 app/testpmd: fix max Rx packet length for VLAN packets When the max rx packet length is smaller than the sum of mtu size and ether overhead size, it should be enlarged, otherwise the VLAN packets will be dropped. Removed the rx_offloads assignment for jumbo frame during command line parsing, and set the correct jumbo frame flag if MTU size is larger than the default value 'RTE_ETHER_MTU' within 'init_config()'. Fixes: 384161e00627 ("app/testpmd: adjust on the fly VLAN configuration= ") Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines") Fixes: ce17eddefc20 ("ethdev: introduce Rx queue offloads API") Fixes: 150c9ac2df13 ("app/testpmd: update Rx offload after setting MTU") Cc: stable@dpdk.org Signed-off-by: Steve Yang Reviewed-by: Ferruh Yigit --=20 You are receiving this mail because: You are the assignee for the bug.=