/* * tc_cbq.c CBQ maintanance routines. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * * Authors: Alexey Kuznetsov, * */ #include #include #include #include #include #include #include #include #include #include #include "tc_core.h" #include "tc_cbq.h" unsigned int tc_cbq_calc_maxidle(unsigned int bndw, unsigned int rate, unsigned int avpkt, int ewma_log, unsigned int maxburst) { double maxidle; double g = 1.0 - 1.0/(1< maxidle) maxidle = vxmt; } return tc_core_time2tick(maxidle*(1<