[IPVS]: Switch to using ctl_paths.
The feature of ipvs ctls is that the net/ipv4/vs path is common for core ipvs ctls and for two schedulers, so I make it exported and re-use it in modules. Two other .c files required linux/sysctl.h to make the extern declaration of this path compile well. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: Simon Horman <horms@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b5ccd792fa
commit
90754f8ec0
@@ -9,6 +9,8 @@
|
||||
#include <asm/types.h> /* For __uXX types */
|
||||
#include <linux/types.h> /* For __beXX types in userland */
|
||||
|
||||
#include <linux/sysctl.h> /* For ctl_path */
|
||||
|
||||
#define IP_VS_VERSION_CODE 0x010201
|
||||
#define NVERSION(version) \
|
||||
(version >> 16) & 0xFF, \
|
||||
@@ -854,6 +856,7 @@ extern int sysctl_ip_vs_expire_quiescent_template;
|
||||
extern int sysctl_ip_vs_sync_threshold[2];
|
||||
extern int sysctl_ip_vs_nat_icmp_send;
|
||||
extern struct ip_vs_stats ip_vs_stats;
|
||||
extern struct ctl_path net_vs_ctl_path[];
|
||||
|
||||
extern struct ip_vs_service *
|
||||
ip_vs_service_get(__u32 fwmark, __u16 protocol, __be32 vaddr, __be16 vport);
|
||||
|
Reference in New Issue
Block a user