Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490762 > unrolled thread

[PATCH net-next 2/8] rxrpc: Send an immediate ACK if we fill in a hole

Started byDavid Howells <dhowells@redhat.com>
First post2016-09-25 01:30 +0200
Last post2016-09-25 01:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH net-next 2/8] rxrpc: Send an immediate ACK if we fill in a  hole David Howells <dhowells@redhat.com> - 2016-09-25 01:30 +0200

#1490762 — [PATCH net-next 2/8] rxrpc: Send an immediate ACK if we fill in a hole

FromDavid Howells <dhowells@redhat.com>
Date2016-09-25 01:30 +0200
Subject[PATCH net-next 2/8] rxrpc: Send an immediate ACK if we fill in a hole
Message-ID<sl4ym-7ou-23@gated-at.bofh.it>
Send an immediate ACK if we fill in a hole in the buffer left by an
out-of-sequence packet.  This may allow the congestion management in the peer
to avoid a retransmission if packets got reordered on the wire.

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

 net/rxrpc/input.c |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c
index 349698d87ad1..757c16f033a0 100644
--- a/net/rxrpc/input.c
+++ b/net/rxrpc/input.c
@@ -331,8 +331,16 @@ next_subpacket:
 	call->rxtx_annotations[ix] = annotation;
 	smp_wmb();
 	call->rxtx_buffer[ix] = skb;
-	if (after(seq, call->rx_top))
+	if (after(seq, call->rx_top)) {
 		smp_store_release(&call->rx_top, seq);
+	} else if (before(seq, call->rx_top)) {
+		/* Send an immediate ACK if we fill in a hole */
+		if (!ack) {
+			ack = RXRPC_ACK_DELAY;
+			ack_serial = serial;
+		}
+		immediate_ack = true;
+	}
 	if (flags & RXRPC_LAST_PACKET) {
 		set_bit(RXRPC_CALL_RX_LAST, &call->flags);
 		trace_rxrpc_receive(call, rxrpc_receive_queue_last, serial, seq);

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web