diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-02-26 12:21:00 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-02-26 12:27:09 +0100 |
commit | 8cdb17d2c58d5c3ecb57bdaf1981cd72b4948db1 (patch) | |
tree | db150e1f116528e6b9f5b7f206e3feceaa065480 /config.c | |
parent | 1be329c66326c86d7a48ba71004fcef7691bbbf9 (diff) |
remove rps/xps configuration support
It is overly complex, yet does not cover common scenarios very well.
It will be replaced with a simpler shell script that provides a better
default policy
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -289,18 +289,6 @@ config_init_rules(void) iprule_update_complete(); } -static int -config_parse_global_ps_val(struct uci_section *globals, const char *option) -{ - const char *val = uci_lookup_option_string( - uci_ctx, globals, option); - int ret = 0; - - if (val) - ret = strtol(val, 0, 10); - - return ret; -} static void config_init_globals(void) @@ -313,15 +301,6 @@ config_init_globals(void) const char *ula_prefix = uci_lookup_option_string( uci_ctx, globals, "ula_prefix"); interface_ip_set_ula_prefix(ula_prefix); - - const char *default_ps = uci_lookup_option_string( - uci_ctx, globals, "default_ps"); - - if (default_ps) - device_set_default_ps(strcmp(default_ps, "1") ? false : true, - config_parse_global_ps_val(globals, "default_xps_val"), - config_parse_global_ps_val(globals, "default_rps_val"), - config_parse_global_ps_val(globals, "default_rps_flow_cnt")); } static void |