Skip to content

Commit

Permalink
vlan: use this_cpu_ptr() in vlan_skb_recv()
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 28, 2010
1 parent 8d98efa commit af5ef24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af5ef24

Please sign in to comment.