Re: [PATCH] net/sched: cbs: fix calculation error of idleslope credits

2020-09-19 Thread kernel test robot
Hi Xiaoyong, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.9-rc5 next-20200918] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as docume

Re: [PATCH] net/sched: cbs: fix calculation error of idleslope credits

2020-09-18 Thread David Miller
From: Xiaoyong Yan Date: Fri, 18 Sep 2020 01:42:52 -0700 > + delay = delay_from_credits(q->credits, q->idleslope); > + cbs_timer_schedule(q, now+ delay); > + q->last = now; This indentation cannot be correct. Please fix this.

[PATCH] net/sched: cbs: fix calculation error of idleslope credits

2020-09-18 Thread Xiaoyong Yan
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

Re: [PATCH] [PATCH] net/sched : cbs : fix calculation error of idleslope credits

2020-09-17 Thread Cong Wang
On Wed, Sep 16, 2020 at 11:05 PM Xiaoyong Yan wrote: > > in the function cbs_dequeue_soft, when q->credits <0, [now - q->last] > should be accounted for sendslope,not idleslope. > > so the solution as follows: when q->credits is less than 0, directly > calculate delay time, activate hrtimer and wh

[PATCH] [PATCH] net/sched : cbs : fix calculation error of idleslope credits

2020-09-16 Thread Xiaoyong Yan
in the function cbs_dequeue_soft, when q->credits <0, [now - q->last] should be accounted for sendslope,not idleslope. so the solution 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-