]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
TCP: Fix setting of snd_ssthresh in tcp_mtu_probe_success
authorJohn Heffner <johnwheffner@gmail.com>
Thu, 7 Oct 2010 04:18:02 +0000 (21:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Oct 2010 04:18:02 +0000 (21:18 -0700)
This looks like a simple typo that has gone unnoticed for some time.  The
impact is relatively low but it's clearly wrong.

Signed-off-by: John Heffner <johnwheffner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c

index f6fdd727a23dcf85cf81a7a0bbfe361d1904e74d..e4fbdae066d5f3a41d874646edfb62f630541e12 100644 (file)
@@ -2874,7 +2874,7 @@ static void tcp_mtup_probe_success(struct sock *sk)
                       icsk->icsk_mtup.probe_size;
        tp->snd_cwnd_cnt = 0;
        tp->snd_cwnd_stamp = tcp_time_stamp;
-       tp->rcv_ssthresh = tcp_current_ssthresh(sk);
+       tp->snd_ssthresh = tcp_current_ssthresh(sk);
 
        icsk->icsk_mtup.search_low = icsk->icsk_mtup.probe_size;
        icsk->icsk_mtup.probe_size = 0;