iproute2 and kernel clock resolutions
Subsystems (2)
Hi,
While reading tc/tc_core.c, I'm having a hard time making sense of what tc_core_init() is actually supposed to do.
It looks just as if clock_res is not filled with the correct value from /proc/net/psched, taking into account the "compatibility hack" that follows. AFAICT from the historical kernel Git repository, the third value in /proc/net/psched has always been hardcoded as 1000000, so it seems that the condition clock_res == 1000000000 is always false. Shouldn't clock_res be filled with the fourth value instead of the third, by any chance?
Could also anyone explain to me what this hack is actually about?
Thanks,
Ignacy
Signature · 3 lines
Ignacy Gawędzki R&D Engineer Green Communications