]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-fix-congestion-tracking-20060813
authorChas Williams <chas@cmf.nrl.navy.mil>
Sun, 13 Aug 2006 17:43:28 +0000 (17:43 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 13 Aug 2006 17:43:28 +0000 (17:43 +0000)
FIXES 36951

fix congestion tracking

(cherry picked from commit 031c1819239b5ece45027b25283d980ddc507c93)

src/rx/rx.c

index ff973735fe653be0122dd12e5aac9aedff3c3fd3..6891a2c92ad7a161eab7cb7664f8db9370fea0b6 100644 (file)
@@ -3771,10 +3771,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)) {