ipvs: SCTP Trasport Loadbalancing Support
Enhance IPVS to load balance SCTP transport protocol packets. This is done based on the SCTP rfc 4960. All possible control chunks have been taken care. The state machine used in this code looks some what lengthy. I tried to make the state machine easy to understand. Signed-off-by: Venkata Mohan Reddy Koppula <mohanreddykv@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
committed by
Patrick McHardy
parent
477c608673
commit
2906f66a56
@ -224,6 +224,26 @@ enum {
|
||||
IP_VS_ICMP_S_LAST,
|
||||
};
|
||||
|
||||
/*
|
||||
* SCTP State Values
|
||||
*/
|
||||
enum ip_vs_sctp_states {
|
||||
IP_VS_SCTP_S_NONE,
|
||||
IP_VS_SCTP_S_INIT_CLI,
|
||||
IP_VS_SCTP_S_INIT_SER,
|
||||
IP_VS_SCTP_S_INIT_ACK_CLI,
|
||||
IP_VS_SCTP_S_INIT_ACK_SER,
|
||||
IP_VS_SCTP_S_ECHO_CLI,
|
||||
IP_VS_SCTP_S_ECHO_SER,
|
||||
IP_VS_SCTP_S_ESTABLISHED,
|
||||
IP_VS_SCTP_S_SHUT_CLI,
|
||||
IP_VS_SCTP_S_SHUT_SER,
|
||||
IP_VS_SCTP_S_SHUT_ACK_CLI,
|
||||
IP_VS_SCTP_S_SHUT_ACK_SER,
|
||||
IP_VS_SCTP_S_CLOSED,
|
||||
IP_VS_SCTP_S_LAST
|
||||
};
|
||||
|
||||
/*
|
||||
* Delta sequence info structure
|
||||
* Each ip_vs_conn has 2 (output AND input seq. changes).
|
||||
@ -741,7 +761,7 @@ extern struct ip_vs_protocol ip_vs_protocol_udp;
|
||||
extern struct ip_vs_protocol ip_vs_protocol_icmp;
|
||||
extern struct ip_vs_protocol ip_vs_protocol_esp;
|
||||
extern struct ip_vs_protocol ip_vs_protocol_ah;
|
||||
|
||||
extern struct ip_vs_protocol ip_vs_protocol_sctp;
|
||||
|
||||
/*
|
||||
* Registering/unregistering scheduler functions
|
||||
|
Reference in New Issue
Block a user