LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH 4/4] ipvs: remove unused seqcount stats

To: Simon Horman <horms@xxxxxxxxxxxx>
Subject: [PATCH 4/4] ipvs: remove unused seqcount stats
Cc: lvs-devel@xxxxxxxxxxxxxxx, Hans Schillström <hans.schillstrom@xxxxxxxxxxxx>
From: Julian Anastasov <ja@xxxxxx>
Date: Fri, 4 Mar 2011 12:23:59 +0200 (EET)

        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@xxxxxx>
---

diff -urp lvs-test-2.6-8a80c79/linux/include/net/ip_vs.h 
linux/include/net/ip_vs.h
--- lvs-test-2.6-8a80c79/linux/include/net/ip_vs.h      2011-03-03 
23:10:42.000000000 +0200
+++ linux/include/net/ip_vs.h   2011-03-03 23:15:22.520378136 +0200
@@ -376,22 +376,6 @@ struct ip_vs_stats {
        spinlock_t              lock;           /* spin lock */
 };

-/*
- * 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;
@@ -852,7 +836,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 */
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 4/4] ipvs: remove unused seqcount stats, Julian Anastasov <=