summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2009-02-17Ignore description in match specificationStephen Hemminger
Bugfix 3976 Need to ignore description when checking (Backport from jenner)
2008-11-10Change input rate limiting to use token bucketStephen Hemminger
There are two ways to input rate limit. One uses the generic rate estimator which is supposed to measure average rate, the other is to use a token bucket based packet counter. Well the generic rate estimator doesn't work correctly in current kernels (no effect), so switch to using rate and burst. Bugfix 3881
2008-10-27Fix QoS on VifStephen Hemminger
Handle Vif on serial. Can't have update and create tag.
2008-10-24Better message on missing bandwidthStephen Hemminger
Bugfix 3834 Rather than "is not a valid bandwidth", say "bandwidth must be defined for ..."
2008-10-02Fix list-policy problem with ingressStephen Hemminger
Command completeion for policy name was broken by changes to add in and out type.
2008-09-30Validate ingress bandwidth valueStephen Hemminger
The bandwidth value needs to be validated and converted if necessary.
2008-09-23Add incoming traffic limiting to QosStephen Hemminger
This adds support for Qos using incoming policing. It is accepts the syntax and processes commands, but is not fully debugged. Bugfix: 3664
2008-09-05Workaround CLI regex problemStephen Hemminger
Recent CLI changes seem to have broken working templates that do regex matching. Workaround this by doing the syntax checking all in the perl script Bugfix: 3553
2008-08-29Add drop-tail (aka FIFO) QoS policyStephen Hemminger
Add new configuration support for plain fifo queueing. Better code for the table in perl script that loads queue objects.
2008-07-23Handle auto bandwidth value betterStephen Hemminger
Need to handle the case of devices that don't know their current speed. In this case, ethtool will print "Unknown!" which the old code wasn't handling right. Move the default speed stuff down into traffic shaper code as well, so any future policies using auto can make other choices as to what to do in this case. Bugfix: 3450
2008-07-17Don't get classes confused and cause internal errorStephen Hemminger
When validating the class rates, need to leave the array of classes in original form for later command processing. Bugfix 3458
2008-07-15Look for changes in QoS after commitStephen Hemminger
Since configuration system doesn't correctly notify on addition/deletion, have to introduce this extra verbosity to have each traffic-shaper type check for changes. Bugfix for 3452
2008-07-15Merge branch 'hollywood' of suva.vyatta.com:/git/vyatta-cfg-qos into hollywoodStephen Hemminger
2008-07-11Retry to find interface speedStephen Hemminger
Bugfix 3450 If device is offline, can't find speed. So use a sensible default and try a few times.
2008-07-11Fix error message when ceiling < rateStephen Hemminger
Should say "greater or equal" not "less than" Bug 2919
2008-07-08validate traffic shaper rates at commit time if possibleStephen Hemminger
Bugfix 2919 As long as the bandwidth isn't auto, then validate at commit time.
2008-06-11Fix formatting of error messageStephen Hemminger
Add newline in right spot so words don't run together.
2008-06-10Fix error messages for misconfigurationStephen Hemminger
One more try at explaining why rates must be correct.
2008-06-09Fix speed detection on vlan interfaceStephen Hemminger
Use speed of underlying interface. Bug 3137
2008-06-06Fix mixing of set-dscp and dscp matchStephen Hemminger
Use tcindex to get original dsfield value. Fixes bug: 3033
2008-06-03Apply filters always to root.Stephen Hemminger
This might resolve issues with set-dscp and later dscp matches.
2008-05-14new qos-policy type rate-limitStephen Hemminger
Add new QoS policy type "rate-limit" which is a wrapper around the the Token Bucket Filter (TBF) qdisc. Rate limit provides a simple way to do basic bandwidth limitation without the complexity of the doing multiple classes in the traffic shaper policy.
2008-05-14remove unused uninitialized variableStephen Hemminger
One of the parameters to TrafficShaper::_define was not being passed or used.
2008-05-08Fail on commit if ceiling is less than bandwidthStephen Hemminger
Change the existing warning into a failure. No one reads warnings, and the shaping is unstable if ceiling < bandwidth.
2008-04-12change error message when speed can not be determinedStephen Hemminger
Slightly better message for the case of using auto value for bandwidth on a device does not support it. Bug: 3104
2008-04-10fix QoS traffic shaper priority-queue setupStephen Hemminger
Yet another place where id needs to be converted to hex. Should fix bug 3078.
2008-04-10fix bug with interpretation of ceilingStephen Hemminger
This fixes problem which causes QoS not to fail on commit if ceiling is a percentage. The ceiling maybe a percentage (not fixed) value so it needs to be interpreted before passing to tc.
2008-04-09Fix match rule formattingStephen Hemminger
Internal TC commands use hex for identifiers and one place in perl script forgot to reformat. Bugfix for 3142 from Chris Smith <chris.smith@conceptcoders.com>
2008-04-02set ceiling on classStephen Hemminger
ceiling parameter was not being forwarded to kernel.
2008-03-31bandwidth problems should be nonfatalStephen Hemminger
If the customer has incorrectly assigned bandwidth and rate ceilings for QOS, the problem can not be detected until commit. At that point (possibly during boot), it is better to print a warning rather than failing. This addresses Bug 2919.
2008-03-20Fix error messages from ethtool leaking outStephen Hemminger
This reverts commit ff77155be360216289e1e73af50dc4b82383cc68.
2008-03-20Put back the bugfix for numeric inputStephen Hemminger
Revert "More unfrozen stuff" This reverts commit f1e5d5991c8fc1420d00ef51c826f77b2d8c2bbd.
2008-03-19More unfrozen stuffStephen Hemminger
Revert "Better validation of numeric input" This reverts commit e1624917ba2ed574fe350b470762a732a9820cbd.
2008-03-19Wait for the eternal freeze to liftStephen Hemminger
Revert "silence ethtool messages when auto bandwidth used" This reverts commit c1b530e7bfa5c33a8f51f634f906d2412f187e90.
2008-03-19silence ethtool messages when auto bandwidth usedStephen Hemminger
If device doesn't support full ethtool, then ethtool error messages were leaking out to console, when QOS bandwidth was detecting interface speed.
2008-03-19Better validation of numeric inputStephen Hemminger
Fix for Bug 2763 and related problems. Need better handling of numeric inputs. Real perl programmers don't use a switch, but hash instead.
2008-03-14fix script problem when updating interfaceStephen Hemminger
Bugfix for 3010
2008-03-10add license text to scriptsStephen Hemminger
2008-03-07clear old policy before applying new QOSStephen Hemminger
Need to cleanup old qdisc/class/filters before applying new one. Bugfix: 2932
2008-03-07fix filtering rules when using set-dscpStephen Hemminger
The generated filtering rules were using wrong id's when set-dscp was being used. Need to put dsmark rules on root, and htb rules on start of that tree, and the id needs to be printed in hex not decimal. Bugfix: 2947
2008-03-06better syntax/semantic checking of qos-policyStephen Hemminger
Add a bunch of checks. * Check policy configuration at commit time * Add check for duplicate names * Allow _ in policy name Bugfix: 2907
2008-03-06better error messages for configuration problemsStephen Hemminger
Bugfix: 2919 But configuration level in error message
2008-03-05use object factory rather than hardcoded switch for policy configStephen Hemminger
Having a hardcoded switch statement is harder to update than using a hash.
2008-03-05fix handling of hash-intervalStephen Hemminger
Script was using old value, and default be undefined not 0.
2008-03-04fix parsing problems during updateStephen Hemminger
Fix parsing problems for update-interface that caused problems during boot. Bugfix: 2914
2008-03-04remove dead code in qos scriptStephen Hemminger
The function validate_name is no longer used.
2008-03-03QOS perl script policy management changesStephen Hemminger
The delete-policy option requires two arguments (for consistency), and the validate-name option is no longer used.
2008-03-03DSCP values should be scaledStephen Hemminger
For compatiablity use DSCP values in the 0..63 range and scale in the script, rather than uses raw header values. This makes configuration more familar to IOS users.
2008-02-28cleanup variable names for clarityStephen Hemminger
No functional change just change listName to listPolicy to make it clearer what is going on.
2008-02-15default scaling for bandwidth fixStephen Hemminger
If no suffix is given, the bandwidth value should be in "bits/sec" (not bytes/sec), to be compatiable with other routers.