|
@@ -51,8 +51,6 @@ MODULE_PARM_DESC(bic_scale, "scale (scaled by 1024) value for bic function (bic_
|
|
|
module_param(tcp_friendliness, int, 0644);
|
|
|
MODULE_PARM_DESC(tcp_friendliness, "turn on/off tcp friendliness");
|
|
|
|
|
|
-#include <asm/div64.h>
|
|
|
-
|
|
|
/* BIC TCP Parameters */
|
|
|
struct bictcp {
|
|
|
u32 cnt; /* increase cwnd by 1 after ACKs */
|
|
@@ -93,27 +91,6 @@ static void bictcp_init(struct sock *sk)
|
|
|
tcp_sk(sk)->snd_ssthresh = initial_ssthresh;
|
|
|
}
|
|
|
|
|
|
-/* 64bit divisor, dividend and result. dynamic precision */
|
|
|
-static inline u_int64_t div64_64(u_int64_t dividend, u_int64_t divisor)
|
|
|
-{
|
|
|
- u_int32_t d = divisor;
|
|
|
-
|
|
|
- if (divisor > 0xffffffffULL) {
|
|
|
- unsigned int shift = fls(divisor >> 32);
|
|
|
-
|
|
|
- d = divisor >> shift;
|
|
|
- dividend >>= shift;
|
|
|
- }
|
|
|
-
|
|
|
- /* avoid 64 bit division if possible */
|
|
|
- if (dividend >> 32)
|
|
|
- do_div(dividend, d);
|
|
|
- else
|
|
|
- dividend = (uint32_t) dividend / d;
|
|
|
-
|
|
|
- return dividend;
|
|
|
-}
|
|
|
-
|
|
|
/*
|
|
|
* calculate the cubic root of x using Newton-Raphson
|
|
|
*/
|