aboutsummaryrefslogtreecommitdiffstats
path: root/net/8021q
diff options
context:
space:
mode:
Diffstat (limited to 'net/8021q')
-rw-r--r--net/8021q/vlan_dev.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 8db1b985dbf1..762896ebfcf5 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -539,7 +539,7 @@ static const struct net_device_ops vlan_netdev_ops;
539static int vlan_dev_init(struct net_device *dev) 539static int vlan_dev_init(struct net_device *dev)
540{ 540{
541 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev; 541 struct net_device *real_dev = vlan_dev_priv(dev)->real_dev;
542 int subclass = 0; 542 int subclass = 0, i;
543 543
544 netif_carrier_off(dev); 544 netif_carrier_off(dev);
545 545
@@ -593,6 +593,13 @@ static int vlan_dev_init(struct net_device *dev)
593 if (!vlan_dev_priv(dev)->vlan_pcpu_stats) 593 if (!vlan_dev_priv(dev)->vlan_pcpu_stats)
594 return -ENOMEM; 594 return -ENOMEM;
595 595
596 for_each_possible_cpu(i) {
597 struct vlan_pcpu_stats *vlan_stat;
598 vlan_stat = per_cpu_ptr(vlan_dev_priv(dev)->vlan_pcpu_stats, i);
599 u64_stats_init(&vlan_stat->syncp);
600 }
601
602
596 return 0; 603 return 0;
597} 604}
598 605