svn commit: r333211 - head/sys/netinet/cc

Jonathan T. Looney jtl at freebsd.org
Thu May 3 19:38:21 UTC 2018


On Thu, May 3, 2018 at 11:01 AM, Sean Bruno <sbruno at freebsd.org> wrote:
>
> @@ -242,8 +241,8 @@ tf_cwnd(int ticks_since_cong, int rtt_ticks, unsigned
>  {
>
>         /* Equation 4 of I-D. */
> -       return (((wmax * CUBIC_BETA) + (((THREE_X_PT2 * ticks_since_cong *
> -           smss) << CUBIC_SHIFT) / TWO_SUB_PT2 / rtt_ticks)) >>
CUBIC_SHIFT);
> +       return (((wmax * CUBIC_BETA) + (((THREE_X_PT3 * ticks_since_cong *
> +           smss) << CUBIC_SHIFT) / TWO_SUB_PT3 / rtt_ticks)) >>
CUBIC_SHIFT);
>  }
>
>  #endif /* _NETINET_CC_CUBIC_H_ */
>

Did you analyze this to ensure that the intermediate steps in this
calculation would never overflow?

Jonathan


More information about the svn-src-head mailing list