[SRU][F:linux-bluefield][PATCH 3/8] net/sched: fix miss init the mru in qdisc_skb_cb
Bodong Wang
bodong at nvidia.com
Mon Aug 23 22:37:00 UTC 2021
From: wenxu <wenxu at ucloud.cn>
BugLink: https://bugs.launchpad.net/bugs/1940872
The mru in the qdisc_skb_cb should be init as 0. Only defrag packets in the
act_ct will set the value.
Fixes: 038ebb1a713d ("net/sched: act_ct: fix miss set mru for ovs after defrag in act_ct")
Signed-off-by: wenxu <wenxu at ucloud.cn>
Signed-off-by: Jakub Kicinski <kuba at kernel.org>
(cherry picked from aadaca9e7c392dbf877af8cefb156199f1a67bbe)
Signed-off-by: Bodong Wang <bodong at nvidia.com>
---
net/core/dev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/core/dev.c b/net/core/dev.c
index 46f9b9d..242df5c 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3500,6 +3500,7 @@ int dev_loopback_xmit(struct net *net, struct sock *sk, struct sk_buff *skb)
return skb;
/* qdisc_skb_cb(skb)->pkt_len was already set by the caller. */
+ qdisc_skb_cb(skb)->mru = 0;
qdisc_skb_cb(skb)->post_ct = false;
mini_qdisc_bstats_cpu_update(miniq, skb);
@@ -4590,6 +4591,7 @@ static __latent_entropy void net_tx_action(struct softirq_action *h)
}
qdisc_skb_cb(skb)->pkt_len = skb->len;
+ qdisc_skb_cb(skb)->mru = 0;
qdisc_skb_cb(skb)->post_ct = false;
skb->tc_at_ingress = 1;
mini_qdisc_bstats_cpu_update(miniq, skb);
--
1.8.3.1
More information about the kernel-team
mailing list