[TCP]: Set default congestion control when no sysctl.
The setting of the default congestion control was buried in the sysctl code so it would not be done properly if SYSCTL was not enabled. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d55b4c631e
commit
b1736a7140
@@ -131,6 +131,14 @@ int tcp_set_default_congestion_control(const char *name)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Set default value from kernel configuration at bootup */
|
||||
static int __init tcp_congestion_default(void)
|
||||
{
|
||||
return tcp_set_default_congestion_control(CONFIG_DEFAULT_TCP_CONG);
|
||||
}
|
||||
late_initcall(tcp_congestion_default);
|
||||
|
||||
|
||||
/* Get current default congestion control */
|
||||
void tcp_get_default_congestion_control(char *name)
|
||||
{
|
||||
|
Reference in New Issue
Block a user