diff options
| author | Simon Horman <horms@verge.net.au> | 2010-08-22 08:37:54 -0400 |
|---|---|---|
| committer | Simon Horman <horms@verge.net.au> | 2010-10-04 09:45:24 -0400 |
| commit | 0d1e71b04a04b6912e50926b9987c1e72facb1f3 (patch) | |
| tree | 1c431b2484ab9bb2911ba8e9e281783cbd922f06 /include | |
| parent | 8be67a6617b3403551fccb67b1c624c659419515 (diff) | |
IPVS: Allow configuration of persistence engines
Allow the persistence engine of a virtual service to be set, edited
and unset.
This feature only works with the netlink user-space interface.
Signed-off-by: Simon Horman <horms@verge.net.au>
Acked-by: Julian Anastasov <ja@ssi.bg>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ip_vs.h | 3 | ||||
| -rw-r--r-- | include/net/ip_vs.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ip_vs.h b/include/linux/ip_vs.h index 0a9c44d64292..5f43a3b2e3ad 100644 --- a/include/linux/ip_vs.h +++ b/include/linux/ip_vs.h | |||
| @@ -336,6 +336,9 @@ enum { | |||
| 336 | IPVS_SVC_ATTR_NETMASK, /* persistent netmask */ | 336 | IPVS_SVC_ATTR_NETMASK, /* persistent netmask */ |
| 337 | 337 | ||
| 338 | IPVS_SVC_ATTR_STATS, /* nested attribute for service stats */ | 338 | IPVS_SVC_ATTR_STATS, /* nested attribute for service stats */ |
| 339 | |||
| 340 | IPVS_SVC_ATTR_PE_NAME, /* name of ct retriever */ | ||
| 341 | |||
| 339 | __IPVS_SVC_ATTR_MAX, | 342 | __IPVS_SVC_ATTR_MAX, |
| 340 | }; | 343 | }; |
| 341 | 344 | ||
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index a6b93a26d4e2..52fbe2308c38 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
| @@ -444,6 +444,7 @@ struct ip_vs_service_user_kern { | |||
| 444 | 444 | ||
| 445 | /* virtual service options */ | 445 | /* virtual service options */ |
| 446 | char *sched_name; | 446 | char *sched_name; |
| 447 | char *pe_name; | ||
| 447 | unsigned flags; /* virtual service flags */ | 448 | unsigned flags; /* virtual service flags */ |
| 448 | unsigned timeout; /* persistent timeout in sec */ | 449 | unsigned timeout; /* persistent timeout in sec */ |
| 449 | u32 netmask; /* persistent netmask */ | 450 | u32 netmask; /* persistent netmask */ |
