vlan: use this_cpu_ptr() in vlan_skb_recv()
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 26 Sep 2010 22:47:09 +0000 (22:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Sep 2010 04:30:41 +0000 (21:30 -0700)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c

index 94a1feddeb4961482e26cc4b23ce3911de35d65a..f6fbcc0f1af9e8694f8c55a5f277bc79d2f86539 100644 (file)
@@ -177,8 +177,8 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev,
        } else {
                skb->dev = vlan_dev;
 
-               rx_stats = per_cpu_ptr(vlan_dev_info(skb->dev)->vlan_rx_stats,
-                                       smp_processor_id());
+               rx_stats = this_cpu_ptr(vlan_dev_info(skb->dev)->vlan_rx_stats);
+
                u64_stats_update_begin(&rx_stats->syncp);
                rx_stats->rx_packets++;
                rx_stats->rx_bytes += skb->len;