Files
Frey Alfredsson 3f73da760a Fixed an operator precedence issue in codel_impl.h
The get_next_interval_sqrt function has the line:
__u64 val = (__u64)CODEL_EXCEED_INTERVAL << 16 / get_sqrt_sh16(cnt);

However, the division operator has higher precedence than the shift
operator. Therefore, 16 / get_sqrt_sh16(cnt) will always evaluate to zero.

Signed-off-by: Frey Alfredsson <freysteinn@freysteinn.com>
2022-10-13 17:19:40 +02:00
..