aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/associola.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r--net/sctp/associola.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index 7eed77a39d0d..8e755ebff3b8 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -512,7 +512,13 @@ void sctp_assoc_set_primary(struct sctp_association *asoc,
512 * to this destination address earlier. The sender MUST set 512 * to this destination address earlier. The sender MUST set
513 * CYCLING_CHANGEOVER to indicate that this switch is a 513 * CYCLING_CHANGEOVER to indicate that this switch is a
514 * double switch to the same destination address. 514 * double switch to the same destination address.
515 *
516 * Really, only bother is we have data queued or outstanding on
517 * the association.
515 */ 518 */
519 if (!asoc->outqueue.outstanding_bytes && !asoc->outqueue.out_qlen)
520 return;
521
516 if (transport->cacc.changeover_active) 522 if (transport->cacc.changeover_active)
517 transport->cacc.cycling_changeover = changeover; 523 transport->cacc.cycling_changeover = changeover;
518 524