Projects
openEuler:20.03:LTS:SP1
gazelle
_service:tar_scm_kernel_repo:0011-ethdev-fix-pb...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:0011-ethdev-fix-pbuf-chain-tot_len-incorrect.patch of Package gazelle
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.