diff options
author | Julian Anastasov <ja@ssi.bg> | 2010-09-17 08:18:16 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-09-17 08:18:16 -0400 |
commit | 3575792e005dc9994f15ae72c1c6f401d134177d (patch) | |
tree | 2383227df0b4ab3418ecb2167535063b7f829f4d /include/net | |
parent | b23909695c33f53df5f1d16696b1aa5b874c1904 (diff) |
ipvs: extend connection flags to 32 bits
- the sync protocol supports 16 bits only, so bits 0..15 should be
used only for flags that should go to backup server, bits 16 and
above should be allocated for flags not sent to backup.
- use IP_VS_CONN_F_DEST_MASK as mask of connection flags in
destination that can be changed by user space
- allow IP_VS_CONN_F_ONE_PACKET to be set in destination
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_vs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index f976885f686f..62698a9c1631 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -366,6 +366,7 @@ struct ip_vs_conn { | |||
366 | union nf_inet_addr caddr; /* client address */ | 366 | union nf_inet_addr caddr; /* client address */ |
367 | union nf_inet_addr vaddr; /* virtual address */ | 367 | union nf_inet_addr vaddr; /* virtual address */ |
368 | union nf_inet_addr daddr; /* destination address */ | 368 | union nf_inet_addr daddr; /* destination address */ |
369 | volatile __u32 flags; /* status flags */ | ||
369 | __be16 cport; | 370 | __be16 cport; |
370 | __be16 vport; | 371 | __be16 vport; |
371 | __be16 dport; | 372 | __be16 dport; |
@@ -378,7 +379,6 @@ struct ip_vs_conn { | |||
378 | 379 | ||
379 | /* Flags and state transition */ | 380 | /* Flags and state transition */ |
380 | spinlock_t lock; /* lock for state transition */ | 381 | spinlock_t lock; /* lock for state transition */ |
381 | volatile __u16 flags; /* status flags */ | ||
382 | volatile __u16 state; /* state info */ | 382 | volatile __u16 state; /* state info */ |
383 | volatile __u16 old_state; /* old state, to be used for | 383 | volatile __u16 old_state; /* old state, to be used for |
384 | * state transition triggerd | 384 | * state transition triggerd |