forked from luck/tmp_suning_uos_patched
vlan: use this_cpu_ptr() in vlan_skb_recv()
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8d98efa84b
commit
af5ef24113
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user