Re: [PATCH 3/5] CCID 4: Enforce a minimum sending rate of 10 ms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2007/9/20, Tommi Saviranta <wnd@xxxxxx>:
> Signed-off-by: Tommi Saviranta <wnd@xxxxxx>
>
> ---
> diff -Nrup a/net/dccp/ccids/ccid4.c b/net/dccp/ccids/ccid4.c
> --- a/net/dccp/ccids/ccid4.c    2007-09-20 13:32:42.000000000 +0300
> +++ b/net/dccp/ccids/ccid4.c    2007-09-20 13:50:52.000000000 +0300
> @@ -100,8 +100,11 @@ static inline u64 rfc3390_initial_rate(s
>  static inline void ccid4_update_send_interval(struct ccid4_hc_tx_sock *hctx)
>  {
>         /* Calculate new t_ipi = s / X_inst (X_inst is in 64 * bytes/second) */
> -       hctx->ccid4hctx_t_ipi = scaled_div32(((u64)hctx->ccid4hctx_s) << 6,
> -                                            hctx->ccid4hctx_x);
> +       /* TFRC-SP enforces a minimum interval of 10 milliseconds */
> +       hctx->ccid4hctx_t_ipi =
> +               max_t(u32, scaled_div32(((u64)hctx->ccid4hctx_s) << 6,
> +                                       hctx->ccid4hctx_x),
> +                     10000);
>
>         /* Calculate new delta by delta = min(t_ipi / 2, t_gran / 2) */
>         hctx->ccid4hctx_delta = min_t(u32, hctx->ccid4hctx_t_ipi / 2,
> -
> To unsubscribe from this list: send the line "unsubscribe dccp" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

Acked-by: Leandro Sales <leandro@xxxxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe dccp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [IETF DCCP]     [Linux Networking]     [Git]     [Security]     [Linux Assembly]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux