mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
David S. Miller
parent
11bf284f81
commit
6670e15244
@@ -710,7 +710,7 @@ bool fib_metrics_match(struct fib_config *cfg, struct fib_info *fi)
|
||||
bool ecn_ca = false;
|
||||
|
||||
nla_strlcpy(tmp, nla, sizeof(tmp));
|
||||
val = tcp_ca_get_key_by_name(tmp, &ecn_ca);
|
||||
val = tcp_ca_get_key_by_name(fi->fib_net, tmp, &ecn_ca);
|
||||
} else {
|
||||
val = nla_get_u32(nla);
|
||||
}
|
||||
@@ -1030,7 +1030,7 @@ fib_convert_metrics(struct fib_info *fi, const struct fib_config *cfg)
|
||||
char tmp[TCP_CA_NAME_MAX];
|
||||
|
||||
nla_strlcpy(tmp, nla, sizeof(tmp));
|
||||
val = tcp_ca_get_key_by_name(tmp, &ecn_ca);
|
||||
val = tcp_ca_get_key_by_name(fi->fib_net, tmp, &ecn_ca);
|
||||
if (val == TCP_CA_UNSPEC)
|
||||
return -EINVAL;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user