diff options
-rw-r--r-- | net/dccp/ccids/ccid3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index c3abd7695d55..d7d9ce737244 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c | |||
@@ -102,8 +102,8 @@ static inline u64 rfc3390_initial_rate(struct sock *sk) | |||
102 | static inline void ccid3_update_send_interval(struct ccid3_hc_tx_sock *hctx) | 102 | static inline void ccid3_update_send_interval(struct ccid3_hc_tx_sock *hctx) |
103 | { | 103 | { |
104 | /* Calculate new t_ipi = s / X_inst (X_inst is in 64 * bytes/second) */ | 104 | /* Calculate new t_ipi = s / X_inst (X_inst is in 64 * bytes/second) */ |
105 | hctx->ccid3hctx_t_ipi = scaled_div(hctx->ccid3hctx_s, | 105 | hctx->ccid3hctx_t_ipi = scaled_div32(((u64)hctx->ccid3hctx_s) << 6, |
106 | hctx->ccid3hctx_x >> 6); | 106 | hctx->ccid3hctx_x); |
107 | 107 | ||
108 | /* Calculate new delta by delta = min(t_ipi / 2, t_gran / 2) */ | 108 | /* Calculate new delta by delta = min(t_ipi / 2, t_gran / 2) */ |
109 | hctx->ccid3hctx_delta = min_t(u32, hctx->ccid3hctx_t_ipi / 2, | 109 | hctx->ccid3hctx_delta = min_t(u32, hctx->ccid3hctx_t_ipi / 2, |