From: Eric Dumazet Date: Sun, 26 Sep 2010 22:47:09 +0000 (+0000) Subject: vlan: use this_cpu_ptr() in vlan_skb_recv() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=af5ef241133b602a77b682009f112e7c3f7604e5;p=openwrt%2Fstaging%2Fblogic.git vlan: use this_cpu_ptr() in vlan_skb_recv() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index 94a1feddeb49..f6fbcc0f1af9 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c @@ -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;