[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200908250237.05017.denys@visp.net.lb>
Date: Tue, 25 Aug 2009 02:37:04 +0300
From: Denys Fedoryschenko <denys@...p.net.lb>
To: netdev@...r.kernel.org
Subject: iproute2 / tbf with large burst seems broken again
Found issue, it seems tc_core_time2tick will overflow with increased
resolution on large bucket values. But no idea how to fix it :-(
I add a warning, something like
unsigned tc_core_time2tick(unsigned time)
{
+ long long temp = time*tick_in_usec;
+ if (temp > INT_MAX)
+ printf("tc_core_time2tick() overflow!\n");
return time*tick_in_usec;
}
Maybe it is good to add in iproute2 mainstream, so user will be warned if
buffer set too large? (and it will not set incorrect values, that lead to
unpredictable results.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists