Skip to content

Commit 87d68a1

Browse files
Julian Anastasovhorms
authored andcommitted
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>
1 parent 55a3d4e commit 87d68a1

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

‎include/net/ip_vs.h‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -377,22 +377,6 @@ struct ip_vs_stats {
377377
struct ip_vs_stats_user ustats0; /* reset values */
378378
};
379379

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-
396380
struct dst_entry;
397381
struct iphdr;
398382
struct ip_vs_conn;
@@ -853,7 +837,6 @@ struct netns_ipvs {
853837

854838
/* ip_vs_ctl */
855839
struct ip_vs_stats tot_stats; /* Statistics & est. */
856-
seqcount_t *ustats_seq; /* u64 read retry */
857840

858841
int num_services; /* no of virtual services */
859842
/* 1/rate drop and drop-entry variables */

0 commit comments

Comments
 (0)