···205205 spin_lock(&ipt->tcf_lock);206206207207 ipt->tcf_tm.lastuse = jiffies;208208- ipt->tcf_bstats.bytes += skb->len;208208+ ipt->tcf_bstats.bytes += qdisc_pkt_len(skb);209209 ipt->tcf_bstats.packets++;210210211211 /* yes, we have to worry about both in and out dev
+2-2
net/sched/act_mirred.c
···164164 if (skb2 != NULL)165165 kfree_skb(skb2);166166 m->tcf_qstats.overlimits++;167167- m->tcf_bstats.bytes += skb->len;167167+ m->tcf_bstats.bytes += qdisc_pkt_len(skb);168168 m->tcf_bstats.packets++;169169 spin_unlock(&m->tcf_lock);170170 /* should we be asking for packet to be dropped?···184184 goto bad_mirred;185185 }186186187187- m->tcf_bstats.bytes += skb2->len;187187+ m->tcf_bstats.bytes += qdisc_pkt_len(skb2);188188 m->tcf_bstats.packets++;189189 if (!(at & AT_EGRESS))190190 if (m->tcfm_ok_push)