X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsched%2Fact_simple.c;h=e7851ce92cfea56cef8ba52943cbbba5a1942b68;hb=1730554f253deb65fe5112c54b2f898d5318a328;hp=1d421d059caf48aa7f2327acf0c011355deaf534;hpb=d9a9a23ff2b00463f25e880d13364938b321ab8a;p=linux-2.6 diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c index 1d421d059c..e7851ce92c 100644 --- a/net/sched/act_simple.c +++ b/net/sched/act_simple.c @@ -41,7 +41,7 @@ static int tcf_simp(struct sk_buff *skb, struct tc_action *a, struct tcf_result spin_lock(&d->tcf_lock); d->tcf_tm.lastuse = jiffies; - d->tcf_bstats.bytes += skb->len; + d->tcf_bstats.bytes += qdisc_pkt_len(skb); d->tcf_bstats.packets++; /* print policy string followed by _ then packet count