DPDK patches and discussions
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK Bug 1369] net/mlx5: RX packet metadata altered/incorrect after reception
Date: Thu, 25 Jan 2024 10:44:17 +0000	[thread overview]
Message-ID: <bug-1369-3@http.bugs.dpdk.org/> (raw)

[-- Attachment #1: Type: text/plain, Size: 2539 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1369

            Bug ID: 1369
           Summary: net/mlx5: RX packet metadata altered/incorrect after
                    reception
           Product: DPDK
           Version: 22.11
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: pt4hwmy@clavister.com
  Target Milestone: ---

Our platform operates with Mellanox ConnectX-5 (MT_0000000183) network
adapters, equipped with the latest firmware (version 16.35.3006). It utilizes
DPDK 22.11.3 and runs on Ubuntu 20.

Under heavy load, we occasionally observe the reception of packets where the
metadata is incorrect or altered at a later time. The incorrect data seem to
revolve around the "port" and "RSS" fields.

For packet reception, we use: 
rte_eth_rx_burst(port ..)

To detect the problem, we loop through the packets that have been received and
check if the "port" specified in the "mbuf" aligns with the interface
designated for the RX burst execution.

Occasionally, they will not match. Sometimes, the port appears to match
initially, only to change later during processing.

Attempts to modify the packet metadata after reception, such as changing the
port, result in its reverting to its previous state shortly after. 

The packet data for these anomalies seems accurate. For instance, if RX is
performed on port 1 and the packet mbuf indicates port 2, the IP data within
the packet still correlates with the IP ranges assigned to port 1.

Initially, we suspected a potential double free of packet buffers but found no
evidence supporting this. Also, our implementation functions correctly with
various other network adapters and drivers.

This implementation also worked with an older version of DPDK. We previously
used DPDK 20.02 without issue, but the problem emerged after upgrading to DPDK
22.11. Upgrading further to DPDK 23.11 did not resolve the issue.

We have tried different Mellanox firmware versions and even switched to
ConnectX-6 adapters, but the problem persisted. 

The only effective workaround so far has been to disable "hardware RX vector"
(rx_vec_en=0), which seem to make the problem go away.

Do you have any insights into what might be causing this problem, or
suggestions on how to proceed in resolving it?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 4458 bytes --]

                 reply	other threads:[~2024-01-25 10:44 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-1369-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).