From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 1312] When iterating through the mbufs, mbuf->nb_segs indicates there are 21 segments, but when reaching the 8th mbuf, its mbuf->next pointer is NULL
Date: Thu, 09 Nov 2023 12:34:01 +0000 [thread overview]
Message-ID: <bug-1312-3@http.bugs.dpdk.org/> (raw)
[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1312
Bug ID: 1312
Summary: When iterating through the mbufs, mbuf->nb_segs
indicates there are 21 segments, but when reaching the
8th mbuf, its mbuf->next pointer is NULL
Product: DPDK
Version: 20.11
Hardware: ARM
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: tingsong.zheng@gmail.com
Target Milestone: ---
The version of DPDK is 20.11.
When iterating through the mbufs, mbuf->nb_segs indicates there are 21
segments, but when reaching the 8th mbuf, its mbuf->next pointer is NULL.
I used ASAN tool to check and found no memory out-of-bounds errors before
encountering the NULL value in the mbuf's 'next' pointer.
My scenario involves sending approximately 30,000 large packets using a sender
via the kernel protocol stack, where the network card's MTU is 1500. On the
receiver side, I'm using DPDK to capture these packets. In Thread 1, I'm
receiving the packets using rte_eth_rx_burst, then processing them through the
IP fragment reassembly process. Upon receiving a complete packet, I enqueue the
mbuf into an 'rte_ring' named 'test'. In Thread 2, I dequeue the mbufs from the
'test' rte_ring. I then iterate through these mbufs to copy data from each
segment mbuf. However, I encounter an issue with some mbufs having a 'next'
pointer set as NULL."
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 3603 bytes --]
reply other threads:[~2023-11-09 12: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-1312-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).