]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sched/act_nat.c
Merge branch 'spi/merge' of git://git.secretlab.ca/git/linux-2.6
[karo-tx-linux.git] / net / sched / act_nat.c
index 186eb837e600da750dd3347f96f033478d131b76..178a4bd7b7cbfd28accd393ef6b9700bc6f6d3f4 100644 (file)
@@ -125,8 +125,7 @@ static int tcf_nat(struct sk_buff *skb, struct tc_action *a,
        egress = p->flags & TCA_NAT_FLAG_EGRESS;
        action = p->tcf_action;
 
-       p->tcf_bstats.bytes += qdisc_pkt_len(skb);
-       p->tcf_bstats.packets++;
+       bstats_update(&p->tcf_bstats, skb);
 
        spin_unlock(&p->tcf_lock);