> On 28 Sep, 2018, at 1:19 pm, Rajkumar Manoharan <rmanohar@xxxxxxxxxxxxxx> wrote: > >> This is going to break fairness; we only want to increase deficits when >> all stations' deficits are negative. Hence the two loops. Did you see >> any problems with those specifically? > > No. I didn't see any issue but the loop won't exit until one txq becomes positive. > Till then the lock won't be released. Hence I converged into single iteration. The problem is that the fairness behaviour is changed when there are already positive txqs, but the first one happens to not be positive. That's why there were two loops. - Jonathan Morton