Skip to content

Fix NewHtbClass#561

Merged
vishvananda merged 1 commit intovishvananda:masterfrom
chenchun:htb
Sep 15, 2020
Merged

Fix NewHtbClass#561
vishvananda merged 1 commit intovishvananda:masterfrom
chenchun:htb

Conversation

@chenchun
Copy link
Copy Markdown
Contributor

  • Prio and Quantum should be set equal to the input params
  • Fix buffer and cbuffer due to incorrect hz

@chenchun
Copy link
Copy Markdown
Contributor Author

Fixes #560

@chenchun
Copy link
Copy Markdown
Contributor Author

Add a second commit to fix Xmittime which is also not equal the behavior of c library. C library converts time to uint32 to drop precision before multiply tick_in_usec. ref https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/tree/tc/tc_core.c#n62

@vishvananda
Copy link
Copy Markdown
Owner

this lgtm, but can you squash it into commit please?

- Prio and Quantum should be set equal to the input params
- Fix buffer and cbuffer due to incorrect hz
- Fix Xmittime which is also not equal the behavior of c library.
C library converts time to uint32 to drop precision before multiply
tick_in_usec. ref https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/tree/tc/tc_core.c#n62
@chenchun
Copy link
Copy Markdown
Contributor Author

done

@vishvananda vishvananda merged commit 339a215 into vishvananda:master Sep 15, 2020
@chenchun chenchun deleted the htb branch September 16, 2020 01:34
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.

2 participants