Message ID | 1633734216-7613-3-git-send-email-bodong@nvidia.com |
---|---|
State | New |
Headers | show |
Series | Fix byte count on fragmented packets in tc ct action | expand |
diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c index 8c0b6727..df6c4eb 100644 --- a/net/sched/act_ct.c +++ b/net/sched/act_ct.c @@ -953,6 +953,7 @@ static int tcf_ct_act(struct sk_buff *skb, const struct tc_action *a, tmpl = p->tmpl; tcf_lastuse_update(&c->tcf_tm); + tcf_action_update_bstats(&c->common, skb); if (clear) { qdisc_skb_cb(skb)->post_ct = false; @@ -1044,7 +1045,6 @@ static int tcf_ct_act(struct sk_buff *skb, const struct tc_action *a, qdisc_skb_cb(skb)->post_ct = true; out_clear: - tcf_action_update_bstats(&c->common, skb); if (defrag) qdisc_skb_cb(skb)->pkt_len = skb->len; return retval;