| To: | Nicolas DICHTEL <nicolas.dichtel@xxxxxxxxx> |
|---|---|
| Subject: | Re: Question about QOS |
| From: | Thomas Graf <tgraf@xxxxxxx> |
| Date: | Tue, 26 Apr 2005 14:59:55 +0200 |
| Cc: | netdev@xxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx |
| In-reply-to: | <426E06F1.9000105@xxxxxxxxx> |
| References: | <426E06F1.9000105@xxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
* Nicolas DICHTEL <426E06F1.9000105@xxxxxxxxx> 2005-04-26 11:16 > I set CONFIG_NET_SCH_CLK_GETTIMEOFDAY in my kernel. The macro > PSCHED_TDIFF_SAFE calculates > the difference between two timestamps and uses the function > psched_tod_diff() to do this. > If the clock is readjusted (due to ntp for example), this function can > return a negative number > (if bound > 1000000) and then the flow is blocked by the kernel. Am I > right ? do_gettimeofday takes care of ntp adjustments so we _should_ be safe, however, it might be wise to enforce a range of 0..bound instead of INT_MIN..bound because qdiscs like red are relying on this. Assuming we have a delta of -4 seconds and return -4e6 red will horribly crash when acccessing the array with idle_time>>cell_log. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6.12-rc2] bonding: partially back out dev_set_mac_address, Herbert Xu |
|---|---|
| Next by Date: | Re: Re-routing packets via netfilter (ip_rt_bug), Patrick McHardy |
| Previous by Thread: | [PATCH net-drivers-2.6 11/11] ixgb: Driver version, white space, comments, device id (fwd), Malli Chilakala |
| Next by Thread: | Re: Question about QOS, Nicolas DICHTEL |
| Indexes: | [Date] [Thread] [Top] [All Lists] |