All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: netdev@vger.kernel.org
Cc: dhowells@redhat.com, linux-afs@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH net-next 3/7] rxrpc: Reduce ssthresh to peer's receive window
Date: Fri, 30 Sep 2016 22:40:32 +0100	[thread overview]
Message-ID: <147527163239.28826.14579823068242526142.stgit@warthog.procyon.org.uk> (raw)
In-Reply-To: <147527161156.28826.2148784664652062075.stgit@warthog.procyon.org.uk>

When we receive an ACK from the peer that tells us what the peer's receive
window (rwind) is, we should reduce ssthresh to rwind if rwind is smaller
than ssthresh.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 net/rxrpc/input.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
index 21746f0f7ae0..7993473e56bb 100644
--- a/net/rxrpc/input.c
+++ b/net/rxrpc/input.c
@@ -658,6 +658,8 @@ static void rxrpc_input_ackinfo(struct rxrpc_call *call, struct sk_buff *skb,
 	if (rwind > RXRPC_RXTX_BUFF_SIZE - 1)
 		rwind = RXRPC_RXTX_BUFF_SIZE - 1;
 	call->tx_winsize = rwind;
+	if (call->cong_ssthresh > rwind)
+		call->cong_ssthresh = rwind;
 
 	mtu = min(ntohl(ackinfo->rxMTU), ntohl(ackinfo->maxMTU));
 

  parent reply	other threads:[~2016-09-30 21:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-30 21:40 [PATCH net-next 0/7] rxrpc: More fixes and adjustments David Howells
2016-09-30 21:40 ` [PATCH net-next 1/7] rxrpc: Actually display the tx_data trace retransmission note David Howells
2016-09-30 21:40 ` [PATCH net-next 2/7] rxrpc: Switch to Congestion Avoidance mode at cwnd==ssthresh David Howells
2016-09-30 21:40 ` David Howells [this message]
2016-09-30 21:40 ` [PATCH net-next 4/7] rxrpc: The offset field in struct rxrpc_skb_priv is unnecessary David Howells
2016-09-30 21:40 ` [PATCH net-next 5/7] rxrpc: Remove error from struct rxrpc_skb_priv as it is unused David Howells
2016-09-30 21:40 ` [PATCH net-next 6/7] rxrpc: Keep the call timeouts as ktimes rather than jiffies David Howells
2016-09-30 21:41 ` [PATCH net-next 7/7] rxrpc: Fix the call timer handling David Howells
2016-10-03  6:02 ` [PATCH net-next 0/7] rxrpc: More fixes and adjustments David Miller
2016-10-04 16:01 ` David Howells
2016-10-05  0:10   ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=147527163239.28826.14579823068242526142.stgit@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=linux-afs@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.