Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af5ef241 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

vlan: use this_cpu_ptr() in vlan_skb_recv()

parent 8d98efa8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;