Skip to content
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

Service curves fix #513

Merged
merged 1 commit into from
Jan 27, 2020
Merged

Service curves fix #513

merged 1 commit into from
Jan 27, 2020

Conversation

fbegyn
Copy link
Contributor

@fbegyn fbegyn commented Jan 18, 2020

There was something off with the math for the ServiceCurves. The set value was 8 times too large and the returned one was 8 times too small. This is now fixed in class.go and class_linux.go so the user can just set the rate in bit and it will match the tc show output.

In light of this change I've also expanded the comments of the functions to offer more information as to how these work. Before the function gave the misleading impression that they behaved exactly like the tc command-line tool, which was not the case. This commit fixes this and correct the behaviour as intended.

There was something off with the math for the ServiceCurves. The set value was 8
times too large and the returned one was 8 times too small.

This is now fixed in `class.go` and `class_linux.go` so the user can just set the rate in bit and
it will match the tc show output.
Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fcrisciani
Copy link
Collaborator

LGTM

@fcrisciani fcrisciani merged commit 01d9156 into vishvananda:master Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants