aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/datapath.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r--net/openvswitch/datapath.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 2aa13bd7f2b2..b92553c02279 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -1698,6 +1698,12 @@ static int ovs_dp_cmd_new(struct sk_buff *skb, struct genl_info *info)
1698 goto err_destroy_table; 1698 goto err_destroy_table;
1699 } 1699 }
1700 1700
1701 for_each_possible_cpu(i) {
1702 struct dp_stats_percpu *dpath_stats;
1703 dpath_stats = per_cpu_ptr(dp->stats_percpu, i);
1704 u64_stats_init(&dpath_stats->sync);
1705 }
1706
1701 dp->ports = kmalloc(DP_VPORT_HASH_BUCKETS * sizeof(struct hlist_head), 1707 dp->ports = kmalloc(DP_VPORT_HASH_BUCKETS * sizeof(struct hlist_head),
1702 GFP_KERNEL); 1708 GFP_KERNEL);
1703 if (!dp->ports) { 1709 if (!dp->ports) {