diff options
author | Nick Chalk <nick@loadbalancer.org> | 2010-06-22 08:07:01 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-06-22 08:07:01 +0200 |
commit | 26ec037f9841e49cc5c615deb8e1e73e5beab2ca (patch) | |
tree | a7c4a77d173dd8759ed413a60b2941cbb1fca899 /include/linux/ip_vs.h | |
parent | c68cd6cc21eb329c47ff020ff7412bf58176984e (diff) | |
download | kernel_samsung_espresso10-26ec037f9841e49cc5c615deb8e1e73e5beab2ca.zip kernel_samsung_espresso10-26ec037f9841e49cc5c615deb8e1e73e5beab2ca.tar.gz kernel_samsung_espresso10-26ec037f9841e49cc5c615deb8e1e73e5beab2ca.tar.bz2 |
IPVS: one-packet scheduling
Allow one-packet scheduling for UDP connections. When the fwmark-based or
normal virtual service is marked with '-o' or '--ops' options all
connections are created only to schedule one packet. Useful to schedule UDP
packets from same client port to different real servers. Recommended with
RR or WRR schedulers (the connections are not visible with ipvsadm -L).
Signed-off-by: Nick Chalk <nick@loadbalancer.org>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux/ip_vs.h')
-rw-r--r-- | include/linux/ip_vs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ip_vs.h b/include/linux/ip_vs.h index dfc1703..9708de2 100644 --- a/include/linux/ip_vs.h +++ b/include/linux/ip_vs.h @@ -19,6 +19,7 @@ */ #define IP_VS_SVC_F_PERSISTENT 0x0001 /* persistent port */ #define IP_VS_SVC_F_HASHED 0x0002 /* hashed entry */ +#define IP_VS_SVC_F_ONEPACKET 0x0004 /* one-packet scheduling */ /* * Destination Server Flags @@ -85,6 +86,7 @@ #define IP_VS_CONN_F_SEQ_MASK 0x0600 /* in/out sequence mask */ #define IP_VS_CONN_F_NO_CPORT 0x0800 /* no client port set yet */ #define IP_VS_CONN_F_TEMPLATE 0x1000 /* template, not connection */ +#define IP_VS_CONN_F_ONE_PACKET 0x2000 /* forward only one packet */ #define IP_VS_SCHEDNAME_MAXLEN 16 #define IP_VS_IFNAME_MAXLEN 16 |