]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/sctp/sm_sideeffect.c
sctp: Update SWS avaoidance receiver side algorithm
[karo-tx-linux.git] / net / sctp / sm_sideeffect.c
index eda4fe783be5a9d04f5531ce3de0421e75aad3bd..8ae67098e094bd639df49ddab503fa160b983e67 100644 (file)
@@ -217,8 +217,7 @@ static int sctp_gen_sack(struct sctp_association *asoc, int force,
                sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_RESTART,
                                SCTP_TO(SCTP_EVENT_TIMEOUT_SACK));
        } else {
-               if (asoc->a_rwnd > asoc->rwnd)
-                       asoc->a_rwnd = asoc->rwnd;
+               asoc->a_rwnd = asoc->rwnd;
                sack = sctp_make_sack(asoc);
                if (!sack)
                        goto nomem;