From patchwork Thu Oct 7 03:41:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Heffner X-Patchwork-Id: 66994 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7843DB6F01 for ; Thu, 7 Oct 2010 14:42:15 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754781Ab0JGDl6 (ORCPT ); Wed, 6 Oct 2010 23:41:58 -0400 Received: from mail-qw0-f46.google.com ([209.85.216.46]:40775 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752430Ab0JGDl5 (ORCPT ); Wed, 6 Oct 2010 23:41:57 -0400 Received: by qwf7 with SMTP id 7so123400qwf.19 for ; Wed, 06 Oct 2010 20:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :date:message-id:x-mailer; bh=aRlL543w/vKw4ktwPIq1vIw+zUSdWk4CasNOBlW+D0s=; b=iycIsihxRDJR2MiFin19cTNWKPp/KCD0/CLEoS0gMevLT03sDV9Xt6XDCpzova/lmy +GH6ccP8dUVjp3hOlDK+y/tlm4KRj4GfqHathWURK+dcFIRLu+rEgERBDUxTsWycdk34 P4ebb0PROEjWMvaWXovOHRvs8pMdnZ+PBP8C8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=scJk3uQap3oguo5TSK4PR0p+4zifrrBklE6r6iGazzKtHwMmX72k5AUnk3uiUfQBZ5 m7N704YUIDbZkw54j/F0S/jsvvMQ6SEYGHKejytQX0Q943x1qZF7U2b/in6bPxWuXYNy vjgmY0h1VxaeL4ikQ7fHvgDHD5LFlS8k5foN8= Received: by 10.229.214.13 with SMTP id gy13mr188657qcb.155.1286422916371; Wed, 06 Oct 2010 20:41:56 -0700 (PDT) Received: from mini.localhost (pool-74-111-168-70.pitbpa.fios.verizon.net [74.111.168.70]) by mx.google.com with ESMTPS id r38sm789693qcs.38.2010.10.06.20.41.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 06 Oct 2010 20:41:55 -0700 (PDT) Received: by mini.localhost (Postfix, from userid 502) id D5DB647A54D; Wed, 6 Oct 2010 23:41:53 -0400 (EDT) From: John Heffner To: davem@davemloft.net Cc: netdev@vger.kernel.org Subject: [PATCH] TCP: Fix setting of snd_ssthresh in tcp_mtu_probe_success Date: Wed, 6 Oct 2010 23:41:53 -0400 Message-Id: <1286422913-30034-1-git-send-email-johnwheffner@gmail.com> X-Mailer: git-send-email 1.6.6.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- net/ipv4/tcp_input.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index f6fdd72..e4fbdae 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -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;