DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 625] MLX5: Jumbo frames are being received as rx error
@ 2021-01-24 10:34 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2021-01-24 10:34 UTC (permalink / raw)
  To: dev

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'UnHRTCfPDLyiuxvZLANJOMISLXdwsAvnJNGuWrmVbvoSgrLOZZrerhPrPqVBQxCtWpuDpNfTJjudHBpynTiNzUjVLSWUJcOTOZVrQBrHZskfhWiGFqTTojwFAlsCcVkijAPnDxFmAuUMZnGzHixCaxZyZWLJtsLlipINwedoWZrUjOhpJxZKopphomYILQZleBtxyDVnNbYidrWTVWvXXSFgIiedDbjnKYYgqdzSPexWlsfylkitOzlRgKDAaCgMxoBawORJJmNHREwZjSRpIbpuZjCdxSnbwRSXxaDVRJtshJRP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NfyMcafmlqhSvWsOEtYZsPWumXSYsGozjdFClQfdAulPCcMhWjiVuHhOymZtoRQDYkaypXDuDrmFDjMEbkIIENNHQxNJictbCoJHMcibUdGmtLbzViPOCrsPduErDJRtowWJYtrYLpkhOwTwmGdmUkzvqezMtRmxvBPHqDzewuQECdItsOfPMspTXUFhMTlhIDECfvnbYBcDMsZLPqlXEXqVthxhgGvKQzMFYgPCrcsfLpFuwMTuReBLMSbFILfImCwYeYesPImFTqjAcXUjyUjIuTQPeSKIuMVBgHbBxYAWCmoEtULPOOsLGQxJtKuCAuIEevNDXfsgUUPsAKqkMhggzlaQUXBEhdGZGmpBgYTWDXEazpyxnDzxYXqjHcgyWywIxxZOLIjFVlbMzgiyjfFyAwnTsDljierIXuUrntKxmZEulaOfjxObbuWTeVUOLPJYsjnOHYkLdDJaryezThEDACYGFeVPujPZpiSyIzDyWKStHHQZLcfthRbgjxhZPWRutxScpxGKvKNkQbwGssHbVdorflWUblauODVcrHmPJMSNaQoOFHyQAwvXrCJLWNmVjsgIONDdJOJJtUrZLorLbFnMaZatbEgRBSWTksWkNQtDGneemrJpfzgUlRNrxMQVYdeomkdNOnvGTaCpyhRifrcqjThCKYHmHAuCOgcDwUYwfhUQbVCDhBcvbyOoBhAnRRuyBTQfqixUdsFBmXQaJvJimCoonMUsWHzq')

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.

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

only message in thread, other threads:[~2021-01-24 10:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24 10:34 [dpdk-dev] [Bug 625] MLX5: Jumbo frames are being received as rx error 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).