diff options
author | Hans Schillstrom <hans.schillstrom@ericsson.com> | 2011-01-03 08:45:00 -0500 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2011-01-12 20:30:28 -0500 |
commit | f2431e6e9255461eb1476340a89ad32ad4b38b03 (patch) | |
tree | 934974c80d2c01b44768369ca9b188f64c6ab979 /include/net | |
parent | f6340ee0c6b9498ec918a7bb2f44e20abb8b2833 (diff) |
IPVS: netns, trash handling
trash list per namspace,
and reordering of some params in dst struct.
[ 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')
-rw-r--r-- | include/net/ip_vs.h | 4 | ||||
-rw-r--r-- | include/net/netns/ip_vs.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index fbe660f95873..b23bea62f708 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -662,8 +662,8 @@ struct ip_vs_dest { | |||
662 | struct list_head d_list; /* for table with all the dests */ | 662 | struct list_head d_list; /* for table with all the dests */ |
663 | 663 | ||
664 | u16 af; /* address family */ | 664 | u16 af; /* address family */ |
665 | union nf_inet_addr addr; /* IP address of the server */ | ||
666 | __be16 port; /* port number of the server */ | 665 | __be16 port; /* port number of the server */ |
666 | union nf_inet_addr addr; /* IP address of the server */ | ||
667 | volatile unsigned flags; /* dest status flags */ | 667 | volatile unsigned flags; /* dest status flags */ |
668 | atomic_t conn_flags; /* flags to copy to conn */ | 668 | atomic_t conn_flags; /* flags to copy to conn */ |
669 | atomic_t weight; /* server weight */ | 669 | atomic_t weight; /* server weight */ |
@@ -690,8 +690,8 @@ struct ip_vs_dest { | |||
690 | /* for virtual service */ | 690 | /* for virtual service */ |
691 | struct ip_vs_service *svc; /* service it belongs to */ | 691 | struct ip_vs_service *svc; /* service it belongs to */ |
692 | __u16 protocol; /* which protocol (TCP/UDP) */ | 692 | __u16 protocol; /* which protocol (TCP/UDP) */ |
693 | union nf_inet_addr vaddr; /* virtual IP address */ | ||
694 | __be16 vport; /* virtual port number */ | 693 | __be16 vport; /* virtual port number */ |
694 | union nf_inet_addr vaddr; /* virtual IP address */ | ||
695 | __u32 vfwmark; /* firewall mark of service */ | 695 | __u32 vfwmark; /* firewall mark of service */ |
696 | }; | 696 | }; |
697 | 697 | ||
diff --git a/include/net/netns/ip_vs.h b/include/net/netns/ip_vs.h index 41332619142c..67ca1cf55af8 100644 --- a/include/net/netns/ip_vs.h +++ b/include/net/netns/ip_vs.h | |||
@@ -82,6 +82,9 @@ struct netns_ipvs { | |||
82 | rwlock_t rs_lock; /* real services table */ | 82 | rwlock_t rs_lock; /* real services table */ |
83 | /* semaphore for IPVS sockopts. And, [gs]etsockopt may sleep. */ | 83 | /* semaphore for IPVS sockopts. And, [gs]etsockopt may sleep. */ |
84 | struct lock_class_key ctl_key; /* ctl_mutex debuging */ | 84 | struct lock_class_key ctl_key; /* ctl_mutex debuging */ |
85 | /* Trash for destinations */ | ||
86 | struct list_head dest_trash; | ||
87 | |||
85 | /* sys-ctl struct */ | 88 | /* sys-ctl struct */ |
86 | struct ctl_table_header *sysctl_hdr; | 89 | struct ctl_table_header *sysctl_hdr; |
87 | struct ctl_table *sysctl_tbl; | 90 | struct ctl_table *sysctl_tbl; |