Skip to content

Service curves fix#513

Merged
fcrisciani merged 1 commit intovishvananda:masterfrom
fbegyn:fix-service-curve
Jan 27, 2020
Merged

Service curves fix#513
fcrisciani merged 1 commit intovishvananda:masterfrom
fbegyn:fix-service-curve

Conversation

@fbegyn
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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