From: Simon Wilkinson Date: Mon, 11 Oct 2010 18:08:00 +0000 (-0400) Subject: rx: Don't count unknown packets as missing X-Git-Tag: upstream/1.8.0_pre1^2~4674 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bdc8aa160b8eff397c2dcd7fa6760d0cae59d0fc;p=packages%2Fo%2Fopenafs.git rx: Don't count unknown packets as missing Just because a packet is in the transmit queue, don't assume that the other side has instantly seen it! Currently, if we receive an ACK packet which doesn't include the entire transmit queue, then we will end backing off, even if we haven't sent the packets. Restrict this behaviour to packets which are implicitly acked (or otherwise) by the sender. Change-Id: I2d63cd27d6d748007f87ff303f3fd64549a6208d Reviewed-on: http://gerrit.openafs.org/2959 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Jeffrey Altman --- diff --git a/src/rx/rx.c b/src/rx/rx.c index 082c2b89c..8a4bd33d4 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -4171,8 +4171,10 @@ rxi_ReceiveAckPacket(struct rx_call *call, struct rx_packet *np, missing = 1; } } else { - tp->flags &= ~RX_PKTFLAG_ACKED; - missing = 1; + if (tp->flags & RX_PKTFLAG_ACKED) { + tp->flags &= ~RX_PKTFLAG_ACKED; + missing = 1; + } } /*