aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2012-07-20 04:59:53 -0400
committerSimon Horman <horms@verge.net.au>2012-08-09 21:35:07 -0400
commit3654e61137db891f5312e6dd813b961484b5fdf3 (patch)
treef0006c4a286c5abe22aa3c5f9a66fb1c8b742a3a /include
parentf2edb9f7706dcb2c0d9a362b2ba849efe3a97f5e (diff)
ipvs: add pmtu_disc option to disable IP DF for TUN packets
Disabling PMTU discovery can increase the output packet rate but some users have enough resources and prefer to fragment than to drop traffic. By default, we copy the DF bit but if pmtu_disc is disabled we do not send FRAG_NEEDED messages anymore. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include')
-rw-r--r--include/net/ip_vs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 4b8f18ff4789..ee75ccdf5188 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -888,6 +888,7 @@ struct netns_ipvs {
888 unsigned int sysctl_sync_refresh_period; 888 unsigned int sysctl_sync_refresh_period;
889 int sysctl_sync_retries; 889 int sysctl_sync_retries;
890 int sysctl_nat_icmp_send; 890 int sysctl_nat_icmp_send;
891 int sysctl_pmtu_disc;
891 892
892 /* ip_vs_lblc */ 893 /* ip_vs_lblc */
893 int sysctl_lblc_expiration; 894 int sysctl_lblc_expiration;
@@ -974,6 +975,11 @@ static inline int sysctl_sync_sock_size(struct netns_ipvs *ipvs)
974 return ipvs->sysctl_sync_sock_size; 975 return ipvs->sysctl_sync_sock_size;
975} 976}
976 977
978static inline int sysctl_pmtu_disc(struct netns_ipvs *ipvs)
979{
980 return ipvs->sysctl_pmtu_disc;
981}
982
977#else 983#else
978 984
979static inline int sysctl_sync_threshold(struct netns_ipvs *ipvs) 985static inline int sysctl_sync_threshold(struct netns_ipvs *ipvs)
@@ -1016,6 +1022,11 @@ static inline int sysctl_sync_sock_size(struct netns_ipvs *ipvs)
1016 return 0; 1022 return 0;
1017} 1023}
1018 1024
1025static inline int sysctl_pmtu_disc(struct netns_ipvs *ipvs)
1026{
1027 return 1;
1028}
1029
1019#endif 1030#endif
1020 1031
1021/* 1032/*