summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2011-03-14 01:39:18 +0200
committerSimon Horman <horms@verge.net.au>2011-03-15 09:36:53 +0900
commit87d68a15e2d5a6bd08e59ec80c7a5073bcabb7c3 (patch)
treecda7a6410e0ffc4991d5700fddd442601503b5fa
parent55a3d4e15c7c953ecc55b96b83d2679abf8a7899 (diff)
downloadlinux-3.10-87d68a15e2d5a6bd08e59ec80c7a5073bcabb7c3.tar.gz
linux-3.10-87d68a15e2d5a6bd08e59ec80c7a5073bcabb7c3.tar.bz2
linux-3.10-87d68a15e2d5a6bd08e59ec80c7a5073bcabb7c3.zip
ipvs: remove unused seqcount stats
Remove ustats_seq, IPVS_STAT_INC and IPVS_STAT_ADD because they are not used. They were replaced with u64_stats. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
-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 06f5af4b626..cf014abc23f 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -377,22 +377,6 @@ struct ip_vs_stats {
struct ip_vs_stats_user ustats0; /* reset values */
};
-/*
- * Helper Macros for per cpu
- * ipvs->tot_stats->ustats.count
- */
-#define IPVS_STAT_INC(ipvs, count) \
- __this_cpu_inc((ipvs)->ustats->count)
-
-#define IPVS_STAT_ADD(ipvs, count, value) \
- do {\
- write_seqcount_begin(per_cpu_ptr((ipvs)->ustats_seq, \
- raw_smp_processor_id())); \
- __this_cpu_add((ipvs)->ustats->count, value); \
- write_seqcount_end(per_cpu_ptr((ipvs)->ustats_seq, \
- raw_smp_processor_id())); \
- } while (0)
-
struct dst_entry;
struct iphdr;
struct ip_vs_conn;
@@ -853,7 +837,6 @@ struct netns_ipvs {
/* ip_vs_ctl */
struct ip_vs_stats tot_stats; /* Statistics & est. */
- seqcount_t *ustats_seq; /* u64 read retry */
int num_services; /* no of virtual services */
/* 1/rate drop and drop-entry variables */