Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: use qdisc_pkt_len_segs_init() in sch_handle_ingress()

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>

authored by

Eric Dumazet and committed by
Paolo Abeni
f9e00e51 874c1928

+1 -1
+1 -1
net/core/dev.c
··· 4434 4434 *pt_prev = NULL; 4435 4435 } 4436 4436 4437 - qdisc_skb_cb(skb)->pkt_len = skb->len; 4437 + qdisc_pkt_len_segs_init(skb); 4438 4438 tcx_set_ingress(skb, true); 4439 4439 4440 4440 if (static_branch_unlikely(&tcx_needed_key)) {