aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-11-14 11:25:49 -0500
committerDavid S. Miller <davem@davemloft.net>2017-11-15 00:09:52 -0500
commit6670e152447732ba90626f36dfc015a13fbf150e (patch)
tree0848d15b1d27139ee651c8ecae0136bb679f205a /include/net/tcp.h
parent11bf284f81b46f59d5f4a4522c13aa7852cfd560 (diff)
tcp: Namespace-ify sysctl_tcp_default_congestion_control
Make default TCP default congestion control to a per namespace value. This changes default congestion control to a pointer to congestion ops (rather than implicit as first element of available lsit). The congestion control setting of new namespaces is inherited from the current setting of the root namespace. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index ed71511e67a6..35cc7d0d3d47 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1002,8 +1002,8 @@ void tcp_unregister_congestion_control(struct tcp_congestion_ops *type);
1002void tcp_assign_congestion_control(struct sock *sk); 1002void tcp_assign_congestion_control(struct sock *sk);
1003void tcp_init_congestion_control(struct sock *sk); 1003void tcp_init_congestion_control(struct sock *sk);
1004void tcp_cleanup_congestion_control(struct sock *sk); 1004void tcp_cleanup_congestion_control(struct sock *sk);
1005int tcp_set_default_congestion_control(const char *name); 1005int tcp_set_default_congestion_control(struct net *net, const char *name);
1006void tcp_get_default_congestion_control(char *name); 1006void tcp_get_default_congestion_control(struct net *net, char *name);
1007void tcp_get_available_congestion_control(char *buf, size_t len); 1007void tcp_get_available_congestion_control(char *buf, size_t len);
1008void tcp_get_allowed_congestion_control(char *buf, size_t len); 1008void tcp_get_allowed_congestion_control(char *buf, size_t len);
1009int tcp_set_allowed_congestion_control(char *allowed); 1009int tcp_set_allowed_congestion_control(char *allowed);
@@ -1017,7 +1017,7 @@ void tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked);
1017extern struct tcp_congestion_ops tcp_reno; 1017extern struct tcp_congestion_ops tcp_reno;
1018 1018
1019struct tcp_congestion_ops *tcp_ca_find_key(u32 key); 1019struct tcp_congestion_ops *tcp_ca_find_key(u32 key);
1020u32 tcp_ca_get_key_by_name(const char *name, bool *ecn_ca); 1020u32 tcp_ca_get_key_by_name(struct net *net, const char *name, bool *ecn_ca);
1021#ifdef CONFIG_INET 1021#ifdef CONFIG_INET
1022char *tcp_ca_get_name_by_key(u32 key, char *buffer); 1022char *tcp_ca_get_name_by_key(u32 key, char *buffer);
1023#else 1023#else