From: Chenghu Yao <yao.chenghu@zte.com.cn>
To: helin.zhang@intel.com, jingjing.wu@intel.com
Cc: dev@dpdk.org, Chenghu Yao <yao.chenghu@zte.com.cn>
Subject: [dpdk-dev] [PATCH] net/i40e: fix segment num in reassemble process
Date: Mon, 9 Jan 2017 11:31:04 +0800 [thread overview]
Message-ID: <1483932664-38718-1-git-send-email-yao.chenghu@zte.com.cn> (raw)
When freeing up last mbuf, start->nb_segs should be decremented
by one. See also ixgbe process.
Signed-off-by: Chenghu Yao <yao.chenghu@zte.com.cn>
---
drivers/net/i40e/i40e_rxtx_vec_common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/i40e/i40e_rxtx_vec_common.h b/drivers/net/i40e/i40e_rxtx_vec_common.h
index 6cb5dce..990520f 100644
--- a/drivers/net/i40e/i40e_rxtx_vec_common.h
+++ b/drivers/net/i40e/i40e_rxtx_vec_common.h
@@ -71,6 +71,7 @@
/* free up last mbuf */
struct rte_mbuf *secondlast = start;
+ start->nb_segs--;
while (secondlast->next != end)
secondlast = secondlast->next;
secondlast->data_len -= (rxq->crc_len -
--
1.8.3.1
next reply other threads:[~2017-01-09 3:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-09 3:31 Chenghu Yao [this message]
2017-01-09 11:55 ` Ferruh Yigit
2017-01-09 12:04 ` Ferruh Yigit
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=1483932664-38718-1-git-send-email-yao.chenghu@zte.com.cn \
--to=yao.chenghu@zte.com.cn \
--cc=dev@dpdk.org \
--cc=helin.zhang@intel.com \
--cc=jingjing.wu@intel.com \
/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).