forked from torvalds/linux
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
net/sched: cbs: fix calculation error of idleslope credits
in the function cbs_dequeue_soft, when q->credits< 0, (now- q->last) should be accounted for sendslope, not idleslope. so the solution is as follows: when q->credits is less than 0, directly calculate delay time, activate hrtimer and when hrtimer fires, calculate idleslope credits and update it to q->credits. Signed-off-by: Xiaoyong Yan <yanxiaoyong5@gmail.com>
- Loading branch information
1 parent
10b82d5
commit 6e3656a6f5879070aaee0343f90e633de7d2d85a
Showing
1 changed file
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters