26 lines
813 B
Diff
26 lines
813 B
Diff
From d98cb71e63fed73197334b373cfb979b6a47e1ea Mon Sep 17 00:00:00 2001
|
|
From: yinbin <yinbin8@huawei.com>
|
|
Date: Fri, 15 Sep 2023 10:16:19 +0800
|
|
Subject: [PATCH] ethdev: fix pbuf chain tot_len incorrect p->tot_len = p->len
|
|
+ (p->next ? p->next->tot_len : 0)
|
|
|
|
---
|
|
src/lstack/netif/lstack_ethdev.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/lstack/netif/lstack_ethdev.c b/src/lstack/netif/lstack_ethdev.c
|
|
index 3ea8e52..e3e823b 100644
|
|
--- a/src/lstack/netif/lstack_ethdev.c
|
|
+++ b/src/lstack/netif/lstack_ethdev.c
|
|
@@ -96,6 +96,7 @@ void eth_dev_recv(struct rte_mbuf *mbuf, struct protocol_stack *stack)
|
|
break;
|
|
}
|
|
next->tot_len = pkt_len;
|
|
+ pkt_len -= len;
|
|
#if CHECKSUM_CHECK_IP_HW || CHECKSUM_CHECK_TCP_HW
|
|
next->ol_flags = m->ol_flags;
|
|
#endif
|
|
--
|
|
2.27.0
|
|
|