X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=net%2Fsched%2Fact_simple.c;h=e7851ce92cfea56cef8ba52943cbbba5a1942b68;hb=4d36a9e65d4966b433b2f3424d9457468bc80e00;hp=1d421d059caf48aa7f2327acf0c011355deaf534;hpb=3de2403e6659d71b36ec820dc9b942762ddfe6eb;p=linux-2.6-omap-h63xx.git diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c index 1d421d059ca..e7851ce92cf 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