From: Chas Williams Date: Sun, 13 Aug 2006 17:41:54 +0000 (+0000) Subject: STABLE14-fix-congestion-tracking-20060813 X-Git-Tag: openafs-stable-1_4_2rc1~17 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2a9c655223d5b340a5394154113fe527e6f36938;p=packages%2Fo%2Fopenafs.git STABLE14-fix-congestion-tracking-20060813 FIXES 36951 fix congestion tracking (cherry picked from commit 031c1819239b5ece45027b25283d980ddc507c93) --- diff --git a/src/rx/rx.c b/src/rx/rx.c index 27d9e97c8..42a9b51ca 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -3710,10 +3710,11 @@ rxi_ReceiveAckPacket(register struct rx_call *call, struct rx_packet *np, * be unable to accept packets of the size that prior AFS versions would * send without asking. */ if (peer->maxMTU != tSize) { + if (peer->maxMTU > tSize) /* possible cong., maxMTU decreased */ + peer->congestSeq++; peer->maxMTU = tSize; peer->MTU = MIN(tSize, peer->MTU); call->MTU = MIN(call->MTU, tSize); - peer->congestSeq++; } if (np->length == rx_AckDataSize(ap->nAcks) + 3 * sizeof(afs_int32)) {