* [PATCH] net/i40e: fix segment num in reassemble process
@ 2017-01-09 3:31 Chenghu Yao
2017-01-09 11:55 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Chenghu Yao @ 2017-01-09 3:31 UTC (permalink / raw)
To: helin.zhang, jingjing.wu; +Cc: dev, Chenghu Yao
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net/i40e: fix segment num in reassemble process
2017-01-09 3:31 [PATCH] net/i40e: fix segment num in reassemble process Chenghu Yao
@ 2017-01-09 11:55 ` Ferruh Yigit
2017-01-09 12:04 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2017-01-09 11:55 UTC (permalink / raw)
To: Chenghu Yao, helin.zhang, jingjing.wu; +Cc: dev
On 1/9/2017 3:31 AM, Chenghu Yao wrote:
> 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>
Fixes: 0e0da28cd888 ("i40e: add vector scatter Rx")
CC:stable@dpdk.org
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net/i40e: fix segment num in reassemble process
2017-01-09 11:55 ` Ferruh Yigit
@ 2017-01-09 12:04 ` Ferruh Yigit
0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2017-01-09 12:04 UTC (permalink / raw)
To: Chenghu Yao, helin.zhang, jingjing.wu; +Cc: dev
On 1/9/2017 11:55 AM, Ferruh Yigit wrote:
> On 1/9/2017 3:31 AM, Chenghu Yao wrote:
>> 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>
>
> Fixes: 0e0da28cd888 ("i40e: add vector scatter Rx")
>
> CC:stable@dpdk.org
>
> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-01-09 12:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-09 3:31 [PATCH] net/i40e: fix segment num in reassemble process Chenghu Yao
2017-01-09 11:55 ` Ferruh Yigit
2017-01-09 12:04 ` Ferruh Yigit
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.