diff options
author | Julius Volz <juliusv@google.com> | 2008-09-02 09:55:39 -0400 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-09-04 21:17:06 -0400 |
commit | b14198f6c1bea1687d20723db35d8effecd9d899 (patch) | |
tree | f521aa6fdaa6a70aa2240c6ac59321722a04a1c3 /include/net/ip_vs.h | |
parent | 3c2e0505d25cdc9425336f167fd4ff5f505aecff (diff) |
IPVS: Add IPv6 support flag to schedulers
Add 'supports_ipv6' flag to struct ip_vs_scheduler to indicate whether a
scheduler supports IPv6. Set the flag to 1 in schedulers that work with
IPv6, 0 otherwise. This flag is checked in a later patch while trying to
add a service with a specific scheduler. Adjust debug in v6-supporting
schedulers to work with both address families.
Signed-off-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r-- | include/net/ip_vs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 30baed0e696d..3d3b699dc022 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -516,6 +516,9 @@ struct ip_vs_scheduler { | |||
516 | char *name; /* scheduler name */ | 516 | char *name; /* scheduler name */ |
517 | atomic_t refcnt; /* reference counter */ | 517 | atomic_t refcnt; /* reference counter */ |
518 | struct module *module; /* THIS_MODULE/NULL */ | 518 | struct module *module; /* THIS_MODULE/NULL */ |
519 | #ifdef CONFIG_IP_VS_IPV6 | ||
520 | int supports_ipv6; /* scheduler has IPv6 support */ | ||
521 | #endif | ||
519 | 522 | ||
520 | /* scheduler initializing service */ | 523 | /* scheduler initializing service */ |
521 | int (*init_service)(struct ip_vs_service *svc); | 524 | int (*init_service)(struct ip_vs_service *svc); |