From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 625] MLX5: Jumbo frames are being received as rx error
Date: Sun, 24 Jan 2021 10:34:56 +0000 [thread overview]
Message-ID: <bug-625-3@http.bugs.dpdk.org/> (raw)
https://bugs.dpdk.org/show_bug.cgi?id=625
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=[0,1],txq_inline=647,rx_vec_en=1,dv_flow_en=1,dv_esw_en=1,dv_xmeta_en=3
-- --mbcache=512 -i --nb-cores=15 --rxq=5 --txq=5 --txd=1024 --rxd=1024
--burst=64 --enable-scatter --tx-offloads=0x8000 --forward-mode=rxonly
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 = Ether(dst='00:16:3e:26:f8:28', src='00:16:3e:4b:62:07',
type=2048)/IP(version=4, ihl=5, tos=28, len=2162, id=1, flags=0, frag=0,
ttl=183, proto=0, chksum=9433, src='173.214.92.106',
dst='183.162.20.179')/Raw(load=b'UnHRTCfPDLyiuxvZLANJOMISLXdwsAvnJNGuWrmVbvoSgrLOZZrerhPrPqVBQxCtWpuDpNfTJjudHBpynTiNzUjVLSWUJcOTOZVrQBrHZskfhWiGFqTTojwFAlsCcVkijAPnDxFmAuUMZnGzHixCaxZyZWLJtsLlipINwedoWZrUjOhpJxZKopphomYILQZleBtxyDVnNbYidrWTVWvXXSFgIiedDbjnKYYgqdzSPexWlsfylkitOzlRgKDAaCgMxoBawORJJmNHREwZjSRpIbpuZjCdxSnbwRSXxaDVRJtshJRPWoUcnxNvCqSXknClEXVchBcHJ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umXSYsGozjdFClQfdAulPCcMhWjiVuHhOymZtoRQDYkaypXDuDrmFDjMEbkIIENNHQxNJictbCoJHMcibUdGmtLbzViPOCrsPduErDJRtowWJYtrYLpkhOwTwmGdmUkzvqezMtRmxvBPHqDzewuQECdItsOfPMspTXUFhMTlhIDECfvnbYBcDMsZLPqlXEXqVthxhgGvKQzMFYgPCrcsfLpFuwMTuReBLMSbFILfImCwYeYesPImFTqjAcXUjyUjIuTQPeSKIuMVBgHbBxYAWCmoEtULPOOsLGQxJtKuCAuIEevNDXfsgUUPsAKqkMhggzlaQUXBEhdGZGmpBgYTWDXEazpyxnDzxYXqjHcgyWywIxxZOLIjFVlbMzgiyjfFyAwnTsDljierIXuUrntKxmZEulaOfjxObbuWTeVUOLPJYsjnOHYkLdDJaryezThEDACYGFeVPujPZpiSyIzDyWKStHHQZLcfthRbgjxhZPWRutxScpxGKvKNkQbwGssHbVdorflWUblauODVcrHmPJMSNaQoOFHyQAwvXrCJLWNmVjsgIONDdJOJJtUrZLorLbFnMaZatbEgRBSWTksWkNQtDGneemrJpfzgUlRNrxMQVYdeomkdNOnvGTaCpyhRifrcqjThCKYHmHAuCOgcDwUYwfhUQbVCDhBcvbyOoBhAnRRuyBTQfqixUdsFBmXQaJvJimCoonMUsWHzq')
sendp(packet, iface = 'ens5', count = 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 <stevex.yang@intel.com>
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 <stevex.yang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
--
You are receiving this mail because:
You are the assignee for the bug.
reply other threads:[~2021-01-24 10:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-625-3@http.bugs.dpdk.org/ \
--to=bugzilla@dpdk.org \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).