summaryrefslogtreecommitdiff
path: root/scripts/VyattaQosTrafficShaper.pm
AgeCommit message (Collapse)Author
2008-11-20Change perl module names from VyattaQosXXX to Vyatta::Qos:XXXStephen Hemminger
Use more multi-level directory hierarchy instead of having all modules at top level.
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-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-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-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-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-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-10add license text to scriptsStephen Hemminger
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 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-02-15Add new options to set queue type and queue limitStephen Hemminger
This adds ability to choose the underlying queue type for traffic shaper classes: drop-tail => fifo random-detect => red fair-queue => sfq priority => prio For Red, the values are computed based on the bandwidth so it is much simpler than raw tc usage.
2008-02-14get dsmark workingStephen Hemminger
This makes dsmark work. Need to round up to power of 2 and also pass parent down to handle nested case properly.
2008-02-14detect match conflicts during commitStephen Hemminger
Matching on 'ip' uses the u32 tc filter and other match types 'interface', 'vif' use the basic tc filter. Since kernel doesn't allow mixing filter types in the same classifier, need to catch and report the problem rather than failing in the actual commands.
2008-02-13update to qos functionalityStephen Hemminger
add preliminary support for dsmark (still needs testing). allow class 2 (compute default class as n+1)
2008-02-06fix update problemsStephen Hemminger
1. checking for name clash shouldn't see self 2. leftover from rate to bandwidth name change 3. leftover debug message.
2008-02-06rename rate to bandwidthStephen Hemminger
Make qos syntax more familar to IOS users.
2008-02-05add support for match based on incoming device and vlanStephen Hemminger
This is preliminary (still needs testing) but get the syntax and basic structure in place.
2008-02-05better error messages on errorsStephen Hemminger
Try for complete sentences for describing problem.
2008-02-04fix parsing of ethtool output for auto rate processingStephen Hemminger
Fix a number of perl scoping bugs that kept auto rate processing from working.
2008-02-04get rid of unused variableStephen Hemminger
2008-01-30format id for default class correctlyStephen Hemminger
Forgot to hexify the value. Tc takes classnames in hex.
2008-01-30Initial version of vyatta-cfg-qosdebian/0.1Stephen Hemminger
This the initial checkin prior to integration