-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T6799: QoS: Improve Priority-Queue Policy #4175
base: current
Are you sure you want to change the base?
Conversation
👍 |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
@@ -163,11 +163,11 @@ def _build_base_qdisc(self, config : dict, cls_id : int): | |||
default_tc += f' red' | |||
|
|||
qparams = self._calc_random_detect_queue_params( | |||
avg_pkt=dict_search('average_packet', config), | |||
max_thr=dict_search('maximum_threshold', config), | |||
avg_pkt=dict_search('average_packet', config) or 1024, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not make it an XML dict default value? If usingin XML the user will know what the default is and it's not magically 1024 in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These parameters are configurable only for random-detect
policy:
vyos@vyos# set qos policy random-detect foo precedence 0
Possible completions:
average-packet Average packet size (bytes) (default: 1024)
mark-probability Mark probability for random detection (default: 10)
maximum-threshold Maximum threshold for random detection (default: 18)
minimum-threshold Minimum threshold for random detection
queue-limit Maximum queue size
but when we use red
qdisc as an internal queue we don't have these params in config tree but still should use default values
vyos@vyos# set qos policy priority-queue foo default queue-type random-detect
Possible completions:
<Enter> Execute the current command
vyos@vyos# set qos policy shaper foo default queue-type random-detect
Possible completions:
<Enter> Execute the current command
...
should I make these params configurable in this case? Then I can use default values from XML
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
- Fixed handling of flow isolation parameters. - Corrected support for `nat` and `nonat` in flow isolation. - Extended RTT values to cover the full range supported by `tc`.
Conflicts have been resolved. A maintainer will review the pull request shortly. |
CI integration 👍 passed! Details
|
Change Summary
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
Proposed changes
How to test
Please take a look at the tasks description.
Smoketest result
Checklist: