aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorHans Schillstrom <hans.schillstrom@ericsson.com>2011-01-03 08:44:59 -0500
committerSimon Horman <horms@verge.net.au>2011-01-12 20:30:28 -0500
commitf6340ee0c6b9498ec918a7bb2f44e20abb8b2833 (patch)
tree46e0f99416479f31bbd8093e18c360171e86fd59 /include/net/netns
parenta0840e2e165a370ca24a59545e564e9881a55891 (diff)
IPVS: netns, defense work timer.
This patch makes defense work timer per name-space, A net ptr had to be added to the ipvs struct, since it's needed by defense_work_handler. [ horms@verge.net.au: Use cancel_delayed_work_sync() instead of cancel_rearming_delayed_work(). Found during merge conflict resoliution ] Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/ip_vs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/netns/ip_vs.h b/include/net/netns/ip_vs.h
index c4b1abf258e4..41332619142c 100644
--- a/include/net/netns/ip_vs.h
+++ b/include/net/netns/ip_vs.h
@@ -71,6 +71,7 @@ struct netns_ipvs {
71 71
72 int num_services; /* no of virtual services */ 72 int num_services; /* no of virtual services */
73 /* 1/rate drop and drop-entry variables */ 73 /* 1/rate drop and drop-entry variables */
74 struct delayed_work defense_work; /* Work handler */
74 int drop_rate; 75 int drop_rate;
75 int drop_counter; 76 int drop_counter;
76 atomic_t dropentry; 77 atomic_t dropentry;
@@ -129,6 +130,8 @@ struct netns_ipvs {
129 /* multicast interface name */ 130 /* multicast interface name */
130 char master_mcast_ifn[IP_VS_IFNAME_MAXLEN]; 131 char master_mcast_ifn[IP_VS_IFNAME_MAXLEN];
131 char backup_mcast_ifn[IP_VS_IFNAME_MAXLEN]; 132 char backup_mcast_ifn[IP_VS_IFNAME_MAXLEN];
133 /* net name space ptr */
134 struct net *net; /* Needed by timer routines */
132}; 135};
133 136
134#endif /* IP_VS_H_ */ 137#endif /* IP_VS_H_ */