aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_vs.h
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-02-04 04:33:02 -0500
committerSimon Horman <horms@verge.net.au>2011-03-14 20:37:02 -0400
commitf2247fbdc41372d64c89505280419ceb45d80a31 (patch)
treebbbe8f8ea7ccae82a4348b2ebb0ded6624d12d97 /include/net/ip_vs.h
parent14e405461e664b777e2a5636e10b2ebf36a686ec (diff)
IPVS: Conditionally include sysctl members of struct netns_ipvs
There is now no need to include sysctl members of struct netns_ipvs unless CONFIG_SYSCTL is defined. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r--include/net/ip_vs.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 299aeb537899..272f59336b73 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -839,6 +839,17 @@ struct netns_ipvs {
839 struct ip_vs_stats tot_stats; /* Statistics & est. */ 839 struct ip_vs_stats tot_stats; /* Statistics & est. */
840 840
841 int num_services; /* no of virtual services */ 841 int num_services; /* no of virtual services */
842
843 rwlock_t rs_lock; /* real services table */
844 /* semaphore for IPVS sockopts. And, [gs]etsockopt may sleep. */
845 struct lock_class_key ctl_key; /* ctl_mutex debuging */
846 /* Trash for destinations */
847 struct list_head dest_trash;
848 /* Service counters */
849 atomic_t ftpsvc_counter;
850 atomic_t nullsvc_counter;
851
852#ifdef CONFIG_SYSCTL
842 /* 1/rate drop and drop-entry variables */ 853 /* 1/rate drop and drop-entry variables */
843 struct delayed_work defense_work; /* Work handler */ 854 struct delayed_work defense_work; /* Work handler */
844 int drop_rate; 855 int drop_rate;
@@ -848,18 +859,12 @@ struct netns_ipvs {
848 spinlock_t dropentry_lock; /* drop entry handling */ 859 spinlock_t dropentry_lock; /* drop entry handling */
849 spinlock_t droppacket_lock; /* drop packet handling */ 860 spinlock_t droppacket_lock; /* drop packet handling */
850 spinlock_t securetcp_lock; /* state and timeout tables */ 861 spinlock_t securetcp_lock; /* state and timeout tables */
851 rwlock_t rs_lock; /* real services table */
852 /* semaphore for IPVS sockopts. And, [gs]etsockopt may sleep. */
853 struct lock_class_key ctl_key; /* ctl_mutex debuging */
854 /* Trash for destinations */
855 struct list_head dest_trash;
856 /* Service counters */
857 atomic_t ftpsvc_counter;
858 atomic_t nullsvc_counter;
859 862
860 /* sys-ctl struct */ 863 /* sys-ctl struct */
861 struct ctl_table_header *sysctl_hdr; 864 struct ctl_table_header *sysctl_hdr;
862 struct ctl_table *sysctl_tbl; 865 struct ctl_table *sysctl_tbl;
866#endif
867
863 /* sysctl variables */ 868 /* sysctl variables */
864 int sysctl_amemthresh; 869 int sysctl_amemthresh;
865 int sysctl_am_droprate; 870 int sysctl_am_droprate;