Make it possible to build IP stack as a module
This is not pretty, but it works.
This commit is contained in:
parent
9dc4573cce
commit
77b228276c
26 changed files with 1494 additions and 25 deletions
|
@ -137,12 +137,19 @@ int tcp_set_default_congestion_control(const char *name)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INET_MODULE
|
||||
int tcp_congestion_init(void)
|
||||
#else
|
||||
/* Set default value from kernel configuration at bootup */
|
||||
static int __init tcp_congestion_default(void)
|
||||
#endif
|
||||
{
|
||||
return tcp_set_default_congestion_control(CONFIG_DEFAULT_TCP_CONG);
|
||||
}
|
||||
|
||||
#ifndef CONFIG_INET_MODULE
|
||||
late_initcall(tcp_congestion_default);
|
||||
#endif
|
||||
|
||||
|
||||
/* Build string with list of available congestion control values */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue