sqm-scripts: change default for qdisc target parameter
authorSebastian Moeller <moeller0@gmx.de>
Fri, 20 Mar 2015 21:13:37 +0000 (22:13 +0100)
committerToke Høiland-Jørgensen <toke@toke.dk>
Wed, 25 Mar 2015 09:38:03 +0000 (10:38 +0100)
commit6604f9ede0d1cdab3e750de98a756be01ebd97c2
treee147129eac061743d41e01b6fc1526d7543e5272
parentc13e819dfc62c745532b58d67441e5e68cc19028
sqm-scripts: change default for qdisc target parameter

Alan Jenkins noted a bug in the smq luci GUI that effectively
erased several configuration paramters if two checkboxes were deselected.
This behaviour seems consistent in luci but certainly has the potential
to confuse users. While confusion can not really be avoided generally
it seems wise to change the default interpretation for empty or non-existent
itarget and etarget variables from the qdisc's default (5ms in the case of
one of the codels) to automatic determination of tghis variable dependent on
the configured bandwidth, as codels target variable should be large enough
to contain at least one full packet. With this change sqm-scripts will
do the right thing by default, but will yet allow the user to specify
over-ridding values (as long as the user does not un-check the
entry-field exposing check boxes). Survives light testing...
This change set also changes the sqm-scripts luci gui to note the user
of the change. For compatibility with existing setups sqm-scripts
will still honor "auto" as an alternative explicit way of requesting
automatic target selection. This might turn into a warning in the future
and might be phased out...

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
net/luci-app-sqm/files/sqm-cbi.lua
net/sqm-scripts/files/usr/lib/sqm/functions.sh