diff options
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r-- | net/ipv4/ip_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index 5b8a7603e606..4068e178d747 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c | |||
@@ -347,7 +347,7 @@ static int ip_rcv_finish(struct sk_buff *skb) | |||
347 | 347 | ||
348 | #ifdef CONFIG_NET_CLS_ROUTE | 348 | #ifdef CONFIG_NET_CLS_ROUTE |
349 | if (unlikely(skb->dst->tclassid)) { | 349 | if (unlikely(skb->dst->tclassid)) { |
350 | struct ip_rt_acct *st = ip_rt_acct + 256*smp_processor_id(); | 350 | struct ip_rt_acct *st = per_cpu_ptr(ip_rt_acct, smp_processor_id()); |
351 | u32 idx = skb->dst->tclassid; | 351 | u32 idx = skb->dst->tclassid; |
352 | st[idx&0xFF].o_packets++; | 352 | st[idx&0xFF].o_packets++; |
353 | st[idx&0xFF].o_bytes+=skb->len; | 353 | st[idx&0xFF].o_bytes+=skb->len; |