aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/ip_vs.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 06f5af4b626d..cf014abc23fd 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -377,22 +377,6 @@ struct ip_vs_stats {
377 struct ip_vs_stats_user ustats0; /* reset values */ 377 struct ip_vs_stats_user ustats0; /* reset values */
378}; 378};
379 379
380/*
381 * Helper Macros for per cpu
382 * ipvs->tot_stats->ustats.count
383 */
384#define IPVS_STAT_INC(ipvs, count) \
385 __this_cpu_inc((ipvs)->ustats->count)
386
387#define IPVS_STAT_ADD(ipvs, count, value) \
388 do {\
389 write_seqcount_begin(per_cpu_ptr((ipvs)->ustats_seq, \
390 raw_smp_processor_id())); \
391 __this_cpu_add((ipvs)->ustats->count, value); \
392 write_seqcount_end(per_cpu_ptr((ipvs)->ustats_seq, \
393 raw_smp_processor_id())); \
394 } while (0)
395
396struct dst_entry; 380struct dst_entry;
397struct iphdr; 381struct iphdr;
398struct ip_vs_conn; 382struct ip_vs_conn;
@@ -853,7 +837,6 @@ struct netns_ipvs {
853 837
854 /* ip_vs_ctl */ 838 /* ip_vs_ctl */
855 struct ip_vs_stats tot_stats; /* Statistics & est. */ 839 struct ip_vs_stats tot_stats; /* Statistics & est. */
856 seqcount_t *ustats_seq; /* u64 read retry */
857 840
858 int num_services; /* no of virtual services */ 841 int num_services; /* no of virtual services */
859 /* 1/rate drop and drop-entry variables */ 842 /* 1/rate drop and drop-entry variables */