projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874c192
)
net: use qdisc_pkt_len_segs_init() in sch_handle_ingress()
author
Eric Dumazet
<edumazet@google.com>
Fri, 21 Nov 2025 08:32:46 +0000
(08:32 +0000)
committer
Paolo Abeni
<pabeni@redhat.com>
Tue, 25 Nov 2025 15:10:31 +0000
(16:10 +0100)
sch_handle_ingress() sets qdisc_skb_cb(skb)->pkt_len.
We also need to initialize qdisc_skb_cb(skb)->pkt_segs.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link:
https://patch.msgid.link/20251121083256.674562-5-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index
895c3e3
..
e19eb4e
100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-4434,7
+4434,7
@@
sch_handle_ingress(struct sk_buff *skb, struct packet_type **pt_prev, int *ret,
*pt_prev = NULL;
}
- qdisc_
skb_cb(skb)->pkt_len = skb->len
;
+ qdisc_
pkt_len_segs_init(skb)
;
tcx_set_ingress(skb, true);
if (static_branch_unlikely(&tcx_needed_key)) {