diff options
author | Patrick McHardy <kaber@trash.net> | 2010-11-16 04:21:27 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-11-16 04:21:27 -0500 |
commit | 2c2bf086146c7e4ff526247e9fd1db23dada88c3 (patch) | |
tree | 1b7dbed0c54ac596dbf958a4f24b018d202433ec /include/net/ip_vs.h | |
parent | 3bfd45f93c8bca7a5dc955235ff083602d95aa43 (diff) | |
parent | 8f1b03a4c18e8f3f0801447b62330faa8ed3bb37 (diff) |
Merge branch 'for-patrick' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/lvs-test-2.6
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r-- | include/net/ip_vs.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index b7bbd6c28cf..d5a32e47f9d 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -422,6 +422,7 @@ struct ip_vs_conn { | |||
422 | struct ip_vs_seq in_seq; /* incoming seq. struct */ | 422 | struct ip_vs_seq in_seq; /* incoming seq. struct */ |
423 | struct ip_vs_seq out_seq; /* outgoing seq. struct */ | 423 | struct ip_vs_seq out_seq; /* outgoing seq. struct */ |
424 | 424 | ||
425 | const struct ip_vs_pe *pe; | ||
425 | char *pe_data; | 426 | char *pe_data; |
426 | __u8 pe_data_len; | 427 | __u8 pe_data_len; |
427 | }; | 428 | }; |
@@ -814,8 +815,19 @@ void ip_vs_bind_pe(struct ip_vs_service *svc, struct ip_vs_pe *pe); | |||
814 | void ip_vs_unbind_pe(struct ip_vs_service *svc); | 815 | void ip_vs_unbind_pe(struct ip_vs_service *svc); |
815 | int register_ip_vs_pe(struct ip_vs_pe *pe); | 816 | int register_ip_vs_pe(struct ip_vs_pe *pe); |
816 | int unregister_ip_vs_pe(struct ip_vs_pe *pe); | 817 | int unregister_ip_vs_pe(struct ip_vs_pe *pe); |
817 | extern struct ip_vs_pe *ip_vs_pe_get(const char *name); | 818 | struct ip_vs_pe *ip_vs_pe_getbyname(const char *name); |
818 | extern void ip_vs_pe_put(struct ip_vs_pe *pe); | 819 | |
820 | static inline void ip_vs_pe_get(const struct ip_vs_pe *pe) | ||
821 | { | ||
822 | if (pe && pe->module) | ||
823 | __module_get(pe->module); | ||
824 | } | ||
825 | |||
826 | static inline void ip_vs_pe_put(const struct ip_vs_pe *pe) | ||
827 | { | ||
828 | if (pe && pe->module) | ||
829 | module_put(pe->module); | ||
830 | } | ||
819 | 831 | ||
820 | /* | 832 | /* |
821 | * IPVS protocol functions (from ip_vs_proto.c) | 833 | * IPVS protocol functions (from ip_vs_proto.c) |
@@ -904,7 +916,7 @@ extern char ip_vs_master_mcast_ifn[IP_VS_IFNAME_MAXLEN]; | |||
904 | extern char ip_vs_backup_mcast_ifn[IP_VS_IFNAME_MAXLEN]; | 916 | extern char ip_vs_backup_mcast_ifn[IP_VS_IFNAME_MAXLEN]; |
905 | extern int start_sync_thread(int state, char *mcast_ifn, __u8 syncid); | 917 | extern int start_sync_thread(int state, char *mcast_ifn, __u8 syncid); |
906 | extern int stop_sync_thread(int state); | 918 | extern int stop_sync_thread(int state); |
907 | extern void ip_vs_sync_conn(struct ip_vs_conn *cp); | 919 | extern void ip_vs_sync_conn(const struct ip_vs_conn *cp); |
908 | 920 | ||
909 | 921 | ||
910 | /* | 922 | /* |