]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/tcp_nv.c
SUNRPC: Treat EFAULT as a truncated message in xs_read_stream_request()
[linux.git] / net / ipv4 / tcp_nv.c
index 0b5a05bd82e35895f1b69b255a6ae2fd0ac86b47..764298e52577f116ed5382845cc7f262a832a1b9 100644 (file)
@@ -146,7 +146,7 @@ static void tcpnv_init(struct sock *sk)
         * within a datacenter, where we have reasonable estimates of
         * RTTs
         */
-       base_rtt = tcp_call_bpf(sk, BPF_SOCK_OPS_BASE_RTT);
+       base_rtt = tcp_call_bpf(sk, BPF_SOCK_OPS_BASE_RTT, 0, NULL);
        if (base_rtt > 0) {
                ca->nv_base_rtt = base_rtt;
                ca->nv_lower_bound_rtt = (base_rtt * 205) >> 8; /* 80% */
@@ -364,7 +364,7 @@ static void tcpnv_acked(struct sock *sk, const struct ack_sample *sample)
                 */
                cwnd_by_slope = (u32)
                        div64_u64(((u64)ca->nv_rtt_max_rate) * ca->nv_min_rtt,
-                                 (u64)(80000 * tp->mss_cache));
+                                 80000ULL * tp->mss_cache);
                max_win = cwnd_by_slope + nv_pad;
 
                /* If cwnd > max_win, decrease cwnd