aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2014-02-14 18:10:46 -0500
committerDavid S. Miller <davem@davemloft.net>2014-02-15 02:06:23 -0500
commitdf9d9fdf8fdad710949ce52a403684c991ced29b (patch)
tree7125ecbb89792ff156341d6ff18b215a93e718f4 /net/openvswitch
parent73ac0cd48ffcbca2a07ffc90bc8c166a813e03e2 (diff)
openvswitch: rename ->sync to ->syncp
Openvswitch defines u64_stats_sync as ->sync rather than ->syncp, so fails to compile with netdev_alloc_pcpu_stats(). So just rename it to ->syncp. Reported-by: kbuild test robot <fengguang.wu@intel.com> Fixes: 1c213bd24ad04f4430031 (net: introduce netdev_alloc_pcpu_stats() for drivers) Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Reviewed-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/datapath.c12
-rw-r--r--net/openvswitch/datapath.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 3a954067b6a4..36f8872cb072 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -256,10 +256,10 @@ void ovs_dp_process_received_packet(struct vport *p, struct sk_buff *skb)
256 256
257out: 257out:
258 /* Update datapath statistics. */ 258 /* Update datapath statistics. */
259 u64_stats_update_begin(&stats->sync); 259 u64_stats_update_begin(&stats->syncp);
260 (*stats_counter)++; 260 (*stats_counter)++;
261 stats->n_mask_hit += n_mask_hit; 261 stats->n_mask_hit += n_mask_hit;
262 u64_stats_update_end(&stats->sync); 262 u64_stats_update_end(&stats->syncp);
263} 263}
264 264
265static struct genl_family dp_packet_genl_family = { 265static struct genl_family dp_packet_genl_family = {
@@ -295,9 +295,9 @@ int ovs_dp_upcall(struct datapath *dp, struct sk_buff *skb,
295err: 295err:
296 stats = this_cpu_ptr(dp->stats_percpu); 296 stats = this_cpu_ptr(dp->stats_percpu);
297 297
298 u64_stats_update_begin(&stats->sync); 298 u64_stats_update_begin(&stats->syncp);
299 stats->n_lost++; 299 stats->n_lost++;
300 u64_stats_update_end(&stats->sync); 300 u64_stats_update_end(&stats->syncp);
301 301
302 return err; 302 return err;
303} 303}
@@ -606,9 +606,9 @@ static void get_dp_stats(struct datapath *dp, struct ovs_dp_stats *stats,
606 percpu_stats = per_cpu_ptr(dp->stats_percpu, i); 606 percpu_stats = per_cpu_ptr(dp->stats_percpu, i);
607 607
608 do { 608 do {
609 start = u64_stats_fetch_begin_bh(&percpu_stats->sync); 609 start = u64_stats_fetch_begin_bh(&percpu_stats->syncp);
610 local_stats = *percpu_stats; 610 local_stats = *percpu_stats;
611 } while (u64_stats_fetch_retry_bh(&percpu_stats->sync, start)); 611 } while (u64_stats_fetch_retry_bh(&percpu_stats->syncp, start));
612 612
613 stats->n_hit += local_stats.n_hit; 613 stats->n_hit += local_stats.n_hit;
614 stats->n_missed += local_stats.n_missed; 614 stats->n_missed += local_stats.n_missed;
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h
index 6be9fbb5e9cb..05317380fc03 100644
--- a/net/openvswitch/datapath.h
+++ b/net/openvswitch/datapath.h
@@ -55,7 +55,7 @@ struct dp_stats_percpu {
55 u64 n_missed; 55 u64 n_missed;
56 u64 n_lost; 56 u64 n_lost;
57 u64 n_mask_hit; 57 u64 n_mask_hit;
58 struct u64_stats_sync sync; 58 struct u64_stats_sync syncp;
59}; 59};
60 60
61/** 61/**