]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/ip_input.c
[NET]: NET_CLS_ROUTE : convert ip_rt_acct to per_cpu variables
[linux-2.6-omap-h63xx.git] / net / ipv4 / ip_input.c
index 5b8a7603e606d8c2e16db93b76945b0d88e0374d..4068e178d747137ab3b7f6831437da8b039f1c90 100644 (file)
@@ -347,7 +347,7 @@ static int ip_rcv_finish(struct sk_buff *skb)
 
 #ifdef CONFIG_NET_CLS_ROUTE
        if (unlikely(skb->dst->tclassid)) {
-               struct ip_rt_acct *st = ip_rt_acct + 256*smp_processor_id();
+               struct ip_rt_acct *st = per_cpu_ptr(ip_rt_acct, smp_processor_id());
                u32 idx = skb->dst->tclassid;
                st[idx&0xFF].o_packets++;
                st[idx&0xFF].o_bytes+=skb->len;