X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tc%2Ftc_cbq.c;fp=tc%2Ftc_cbq.c;h=0abcc9da2d49e319de2611877765e6c75f657f2e;hb=4f7d3057911ebc5df78113896cb02e1b4ffbfabe;hp=0000000000000000000000000000000000000000;hpb=8a59994861a17eb92c11553d88631757ee8e63c3;p=iproute2.git diff --git a/tc/tc_cbq.c b/tc/tc_cbq.c new file mode 100644 index 0000000..0abcc9d --- /dev/null +++ b/tc/tc_cbq.c @@ -0,0 +1,57 @@ +/* + * 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 tc_cbq_calc_maxidle(unsigned bndw, unsigned rate, unsigned avpkt, + int ewma_log, unsigned maxburst) +{ + double maxidle; + double g = 1.0 - 1.0/(1< maxidle) + maxidle = vxmt; + } + return tc_core_usec2tick(maxidle*(1<