From 8cdb17d2c58d5c3ecb57bdaf1981cd72b4948db1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 26 Feb 2018 12:21:00 +0100 Subject: 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 --- config.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'config.c') diff --git a/config.c b/config.c index 21791af..536b7d3 100644 --- a/config.c +++ b/config.c @@ -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 -- cgit v1.2.1